[gradsusr] Control File (Template) Entire Grid Undefined

Charles Seman - NOAA Federal charles.seman at noaa.gov
Wed Feb 22 18:21:16 EST 2017


Melissa,

Referring to:

http://cola.gmu.edu/grads/gadoc/pdef.html
http://cola.gmu.edu/grads/gadoc/wrfvars.ctl

I would try 3 things to start:

1) "1 1" in the pdef line:

pdef  310 189 lcc  17.81886 -127.3326  1   1  39.00000  39.00000 
-98.00000  20000.000  20000.000

2) "0" for this variable (don't know if it matters?):

TG=>tg  0 t,y,x Ground Temperature [K]

and

3) to keep it as simple as possible, try for just one dataset (no 
options template, and change your dset and tdef lines in the ctl file)...

Hope this helps,
Chuck

On 02/22/2017 05:29 PM, Melissa Wagner wrote:
> Hello Grad Users,
>
> I am still having the same issue of the control file not reading the
> data correctly. I still get the "entire grid undefined". I have removed
> the byteswpped as well as tried other options like big_indian. This does
> not work.
>
> I did an ncdump -h filename and get the following:
>
> // global attributes:
>                 :TITLE = "OUTPUT FROM HRLDAS v20140513" ;
>                 :missing_value = -1.e+33f ;
>                 :START_DATE = "2008-06-01_00:00:00" ;
>                 :MAP_PROJ = 1 ;
>                 :LAT1 = 17.81886f ;
>                 :LON1 = -127.3326f ;
>                 :DX = 20000.f ;
>                 :DY = 20000.f ;
>                 :TRUELAT1 = 39.f ;
>                 :TRUELAT2 = 39.f ;
>                 :STAND_LON = -98.f ;
>                 :MMINLU = "MODIFIED_IGBP_MODIS_NOAH" ;
>
>
> I have changed my control file to this:
>
> dset ^%y4%m2%d2%h2.LDSAOUT_DOMAIN1
> options TEMPLATE
> dtype netcdf
> undef -1.e33
> title  OUTPUT FROM HRLDAS v20140513
> pdef  310 189 lcc  17.81886 -127.3326  0   0  39.00000  39.00000
>  -98.00000  20000.000  20000.000
> xdef  980 linear -127.3326   0.09009010
> ydef  440 linear  17.81886   0.09009010
> zdef    1 linear 1 1
> tdef 24 linear 00Z01JUN2008     60MN
> VARS 1
> TG=>tg  1 t,y,x Ground Temperature [K]
> ENDVARS
>
> But it still does not read the data. Could someone please help me
> troubleshoot this issue.
>
> Best,
> Melissa
>
>
> On 21 February 2017 at 13:24, James T. Potemra <jimp at hawaii.edu
> <mailto:jimp at hawaii.edu>> wrote:
>
>     Melissa,
>
>     I don't think it makes sense to have "options byteswapped" with a
>     netcdf file.  Second, since you don't define xdef, ydef, zdef, tdef,
>     I think these will need to be defined as
>     longitude,latitude,depth,time in your file (the complete output from
>     ncdump -h might help).
>
>     Jim
>
>
>     On 2/20/17 5:50 PM, Melissa Wagner wrote:
>>     Hello Grads Users,
>>
>>     I am writing because my control file (template) will not display
>>     the Noah-MP offline data. Grads v2.0.a8 opens the control file
>>      but reads "Entire Grid Undefined" when I try to display the
>>     variable. I would greatly appreciate any help you may have to offer.
>>
>>     Best,
>>     Melissa
>>
>>     My control file is:
>>
>>     dset ^%y4%m2%d2%h2.LDSAOUT_DOMAIN1
>>     options  byteswapped
>>     options TEMPLATE
>>     dtype netcdf
>>     undef -1.e33
>>     title  OUTPUT FROM HRLDAS v20140513
>>     pdef  309 189 lcc  17.1886 -127.3326  1   1  39.00000  39.00000
>>      -98.00000  20000.000  20000.000
>>     xdef  310 linear -127.3326   0.18983819
>>     ydef  190 linear  17.81886   0.18983819
>>     zdef    4 linear 1 1
>>     tdef 24 linear 00Z01JUN2008     60MN
>>     VARS 1
>>     TG=>tg  1 t,y,x Ground Temperature [K]
>>     ENDVARS
>>
>>     ncdump -h yields the following global attribute info.
>>
>>      :TITLE = "OUTPUT FROM HRLDAS v20140513" ;
>>                     :missing_value = -1.e+33f ;
>>                     :START_DATE = "2008-06-01_00:00:00" ;
>>                     :MAP_PROJ = 1 ;
>>                     :LAT1 = 17.81886f ;
>>                     :LON1 = -127.3326f ;
>>                     :DX = 20000.f ;
>>                     :DY = 20000.f ;
>>                     :TRUELAT1 = 39.f ;
>>                     :TRUELAT2 = 39.f ;
>>                     :STAND_LON = -98.f ;
>>                     :MMINLU = "MODIFIED_IGBP_MODIS_NOAH" ;
>>
>>
>>
>>     _______________________________________________
>>     gradsusr mailing list
>>     gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>>     http://gradsusr.org/mailman/listinfo/gradsusr
>>     <http://gradsusr.org/mailman/listinfo/gradsusr>
>
>
>     _______________________________________________
>     gradsusr mailing list
>     gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>     http://gradsusr.org/mailman/listinfo/gradsusr
>     <http://gradsusr.org/mailman/listinfo/gradsusr>
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>

-- 

Please note that Charles.Seman at noaa.gov should be considered my NOAA
email address, not cjs at gfdl.noaa.gov.

********************************************************************
  Charles Seman                                Charles.Seman at noaa.gov
  U.S. Department of Commerce / NOAA / OAR
  Geophysical Fluid Dynamics Laboratory
  201 Forrestal Road                            voice: (609) 452-6547
  Princeton, NJ  08540-6649                       fax: (609) 987-5063
********************************************************************

"The contents of this message are mine personally and do not reflect any
official or unofficial position of the United States Federal Government,
the United States Department of Commerce, or NOAA."


More information about the gradsusr mailing list