CHSUB in ctl file giving problems
Jennifer Adams
jma at COLA.IGES.ORG
Wed Aug 17 07:09:27 EDT 2005
Uma --
Use the 'open' command instead of 'xdfopen' for dtype netcdf
descriptor files. That should fix both problems.
--Jennifer
On Aug 16, 2005, at 8:34 PM, Uma Bhatt wrote:
> Dear Grads Users,
> I am using v1.9b4 on a Macintosh running Tiger. so I believe the
> string template option should
> work in grads. The error message I get is pasted below. I tried
> both gradsnc and gradshdf.
> ga-> xdfopen Q.ddf
> Scanning Descriptor File: Q.ddf
> XDFOpen Error: Unknown keyword in description file
> --> The invalid description file record is:
> --> chsub 1 124 b30.040e.cam2.h3.q.2010-08-01_cat_2010-08-31.nc
> The data file was not opened.
>
> Question: Here is my ctl file (Q.ddf), any obvious problems?
> DSET %ch
> CHSUB 1 124 b30.040e.cam2.h3.Q.2010-08-01_cat_2010-08-31.nc
> CHSUB 125 244 b30.040e.cam2.h3.Q.2010-09-01_cat_2010-09-30.nc
> ...snip... 10 more lines of input files
> OPTIONS TEMPLATE 365_DAY_CALENDAR
> DTYPE NETCDF
> TITLE future run BC for MM5 Glacier Project
> UNDEF 1.e+33
> XDEF lon 256 LINEAR 0. 1.40625
> YDEF lat 128 LEVELS -88.9277353522959 -87.5387052130272
> -86.1414721015279
> ..snip..
> ZDEF lev 26 LEVELS 3.5 7.4 13.97 23.9 37.2 53.1 70.1 85.4
> ..snip..
> TDEF time 244 LINEAR 00Z01aug2010 6hr
> *
> VARS 1
> Q=>q 26 99 Specific Humidity kg/kg
> ENDVARS
>
> This may be of importance, but I am not sure. When using Grads on
> another netcdf file that had
> 'DTYPE NETCDF' in the ctl file I got an error message containing
> 'Unknown keyword in description
> file' and it listed the DTYPE statement . If I comment this
> statement out then my ddf file worked
> just fine at reading in the data.
>
> Any thoughts are appreciated.
> Regards,
> Uma Bhatt
> bhatt at gi.alaska.edu
>
>
More information about the gradsusr
mailing list