NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

SET ATTRIBUTE fails after a SET DATA/SAVE and SET DATA/RESTORE #870

Closed karlmsmith closed 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 12 Sep 2008 21:57 UTC comes up in the LAS save-data script for curvilinear data. The dataset is saved with SET DATA/SAVE while the curv-to-rectilinear mapping file is opened up and used to determine the bounds of the requested subset. Then SET DATA/RESTORE is used, and later a SET ATTRIBUTE command fails.

yes? use etopo60

yes? set data/save
yes? use coads_climatology
yes? can data coads_climatology
yes? set data/restore

yes? define att  rose.newatt  = 5
yes? set att/output  rose.newatt

 **ERROR: variable unknown or not in data set: rose.newatt
 **ERROR: invalid command: variable, axis, or attribute does not exist rose.newat

This is because the dataset number is not initialized in xeq_set.F so it continues to have an invalid old number of 2 when it should be undefined and then the routine would correctly define it.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1598

karlmsmith commented 6 years ago

Modified by @AnsleyManke on 5 Jan 2011 22:12 UTC

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 17 Feb 2015 18:41 UTC This has been fixed for a while.