Hi Ryo,
Thanks for narrowing this down. This is definitely a bug. As you say the solution should be renaming the variable. It seems the attribute-access code isn't doing its job for these renamed variables. We'll look into that.
If you don't need attributes other than the ones Ferret has always automatically kept, the rename would work:
yes? use input_data.nc
yes? set variable/name=rose 'z'
yes? shade/x=100:112/y=0:8 rose
would be labeled with the correct units and title. And SAVE etc
would keep the units and title. But the attributes GMT_version,
node_offset, and Conventions would not be on the variable "rose".
Hi Saurabh,
set var/name=newname 'problematic_name'
should be the best solution. And it almost works:
yes? set data ETOPO1_Ice_c_gmt4.grdyes? set var/name=rose 'z'yes? show attributes rose**ERROR: variable unknown or not in data set: roseyes? let/like=rose zzz = roseyes? show attributes zzzattributes for user-defined variableszzz.missing_value = -1.E+34zzz.Conventions = COARDS/CF-1.0zzz.title = ETOPO1_Ice_c_gmt4.grdzzz.GMT_version = 4.4.0zzz.node_offset = 1yes?As you can see, one more level of indirection (zzz == rose == 'z') gives the desired results. This seems to be the best workaround.
Cheers,Ryo
-- Ansley Manke Science Data Integration Group NOAA Pacific Marine Environmental Laboratory 7600 Sand Point Way NE Seattle WA 98115 I am currently teleworking and am available Tue-Wed-Thu.