[Thread Prev][Thread Next][Index]

Re: [ferret_users] ERROR :: variable unknown or not in data set.



Hi 
The output of your SHOW DATA says that POTTMP is in dataset 2, as they have been opened. Your definitions have it in dataset 1.  (Maybe one of the datasets was already opened? Starting a script with CANCEL DATA ALL is a good idea).


In general when debugging a Ferret script, a good technique is to put in commands like SHOW DATA, and maybe a PLOT or LIST command to look at the variables as you define each one. Then you'll see right away what's causing a problem.  Once everything is working take out those extra commands.

Ansley


On Tue, Apr 28, 2015 at 2:03 AM, Satyam Srivastava <satyam.srivastava.au@xxxxxxxxx> wrote:
Hi Folks,

I am trying to calculate something and I am getting an unexpected error and i am unable to figure that out please help me with that,



yes? set mode metafile
yes? use t1.5s90e_mon(1).cdf
yes? use pottmp.2008.nc
yes? set memory/size=1000
 Cached data cleared from memory
yes? set reg/x=90W/y=2S/t=10-jan-2008:31-dec-2008/z=200
yes? let/units="Deg C" pottmp_c = pottmp - 272.15
yes? let dT=pottmp_c[d=1]-T_20[d=2,g=pottmp_c[d=1]]
yes? go multi_view 2, 1, .8, .1, 0, .2, .1, .1
yes? set view v11 ; ppl axlabp  1,-1
yes? plot pottmp_c[d=1],T_20[d=2]
 **ERROR: variable unknown or not in data set: POTTMP
yes? plot pottmp_c[d=1]
 **ERROR: variable unknown or not in data set: POTTMP
yes? plot t_20[d=2]
 **ERROR: variable unknown or not in data set: T_20[D=2]
yes? use t1.5s90e_mon(1).cdf
yes? sh d
     currently SET data sets:
    1> ./t1.5s90e_mon(1).cdf  (default)
 name     title                             I         J         K         L         M         N
 T_20     TEMPERATURE (C)                  1:1       1:1       1:12      1:14      ...       ...
 QT_5020  TEMPERATURE QUALITY              1:1       1:1       1:12      1:14      ...       ...
 
    2> ./pottmp.2008.nc
 name     title                             I         J         K         L         M         N
 DATE                                      ...       ...       ...       1:12      ...       ...
 TIMEPLOT                                  ...       ...       ...       1:12      ...       ...
 POTTMP   Potential temperature            1:360     1:418     1:40      1:12      ...       ...
 
yes?

I am getting this error only when i am trying the new script with the previous JNL files it is not giving me any error like this.

--
Regards,

Satyam Srivastava,
J.R.F,
K. Banerjee Centre of Ocean Sciences, 
University of Allahabad,
Allahabad.
+918756123444



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

Privacy Policy | Disclaimer | Accessibility Statement