[Thread Prev][Thread Next][Index]

Re: [ferret_users] let/like='z' --- use of quoted names



Dear Ryo,
G'day
I hope It might help you.

https://ferret.pmel.noaa.gov/Ferret/faq/reserved-keywords

https://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2016/msg00385.html

Cheers, Saurabh

On Tue, Mar 24, 2020 at 1:55 PM Ryo Furue <furue@xxxxxxxxxx> wrote:
Dear Ferret fans,

It seems that "let/like=" and "show attributes" cannot use a quoted name:

yes? let/like='z' rose = 'z'
 **ERROR: required variable not in data set: 'z'
yes? show attributes 'z'
 **ERROR: variable unknown or not in data set: 'z'

(See below for a full description of the situation.)

Probably I need to find the attributes by "ncdump -h" and copy them manually.

I've downloaded the topography data ETOPO1_Ice_c_gmt4.grd from

https://www.ngdc.noaa.gov/mgg/global/global.html

The name of the depth/altitude variable is, unfortunately, "z". Although you can plot it by

yes? fill/x=30:31/y=20N:21N 'z'

it doesn't conform to the other ETOPO datasets Ferret includes.  So, I wanted to convert the name to the familiar "rose" .

Regards,
Ryo
--------
$ pyferret
  NOAA/PMEL TMAP
  PyFerret v7.5 (optimized)
  Darwin 17.7.0 - 11/14/19
  24-Mar-20 11:44

yes? set data ETOPO1_Ice_c_gmt4.grd
yes? show data
     currently SET data sets:
    1> ./ETOPO1_Ice_c_gmt4.grd  (default)
 name     title                             I         J         K         L
 Z        z                                1:21600   1:10800   ...       ...

yes? let/like='z' rose = 'z'
 **ERROR: required variable not in data set: 'z'
yes? show attributes 'z'
 **ERROR: variable unknown or not in data set: 'z'
yes?


--


REGARDS

Saurabh Rathore
Research Scholar (PhD.)
Centre For Oceans, Rivers, Atmosphere & Land Science Technology
Indian Institute Of Technology, Kharagpur
contact :- 91- 8345984434

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement