[gradsusr] Templating 3B42_daily.*nc TRMM files
Charles Seman
Charles.Seman at noaa.gov
Thu May 6 14:26:09 EDT 2010
Matei,
One possibility is in your VARS "hrf" definition: try "t,z,y,x"... or
better yet, have you tried the "sdfopen" templating method? Please see
a recent post I sent containing an email attachment with an email
Guilherme Martins sent me for an example of how to do this... For more
info on sdfopen templating:
http://grads.iges.org/grads/gadoc/gradcomdsdfopen.html If neither of
these work, a "chsub" templating method worked for our TRMM 3B42
3-hourly regridded precipitation datasets
(http://grads.iges.org/grads/gadoc/templates.html, GrADS template ctl
file attached).
Hope this helps,
Chuck
Matei Georgescu wrote:
> Greetings all,
>
> My question relates to the use and templating of netcdf daily TRMM precipitation data (3B42), with opengrads 2.0.a7.oga.3. I've noticed a few threads on this subject but haven't been able to locate anything that helps me.
>
> I can successfully open individual files. For example:
> ga-> sdfopen 3B42_daily.2005.07.01.6.nc
> Scanning self-describing file: 3B42_daily.2005.07.01.6.nc
> SDF file 3B42_daily.2005.07.01.6.nc is open as file 1
> LON set to 0 360
> LAT set to -49.875 49.875
> LEV set to 0 0
> Time values set: 2005:7:1:0 2005:7:1:0
> E set to 1 1
> ga-> d hrf
> Contouring: 0 to 330 interval 30
>
> Everything has the proper appearance.
>
> I can do this for several files ... but I need to open tens of files at once, and need to template.
>
> I created the following control file (control.ctl) based on users' suggestions, to template all my netcdf files (to start, for just 1 month):
>
> DSET ^3B42_daily.2005.07.%d2.6.nc
> DTYPE netcdf
> OPTIONS template
> UNDEF -9999.0
> xdef 1440 linear -179.875 0.25
> ydef 400 linear -49.875 0.25
> ZDEF 1 linear 1 1
> TDEF 31 linear 00Z1JUL2005 1dy
> VARS 1
> hrf 1 z,x,y daily precipitation [mm]
> ENDVARS
>
> Upon opening:
> ga-> sdfopen control.ctl
> Scanning self-describing file: control.ctl
> gaopnc error: nc_open failed to open file control.ctl
> read_metadata: gaopnc failed
> gadsdf: Couldn't ingest SDF metadata.
>
> Or else:
> ga-> open control.ctl
> Scanning description file: control.ctl
> Data file 3B42_daily.2005.07.%d2.6.nc is open as file 1
> LON set to 0 360
> LAT set to -50 49.75
> LEV set to 1 1
> Time values set: 2005:7:1:0 2005:7:1:0
> E set to 1 1
> ga-> d hrf
> NetCDF Error (gancrow, nc_get_vara_double): NetCDF: Start+count exceeds dimension bound
> Data Request Error: Error for variable 'hrf'
> Error ocurred at column 1
> DISPLAY error: Invalid expression
> Expression = hrf
>
> No doubt I'm doing something silly ... I would appreciate any suggestions.
>
> thank you,
> matt
>
> -----
> Matei ("Matt") Georgescu
> Post-doctoral Fellow
> Program on Food Security and the Environment
> Stanford University
> Y2E2 Bldg - MC4205
> 473 Via Ortega
> Stanford, CA 94305
> homepage - http://stanford.edu/~mateig
> _______________________________________________
> 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 voice: (609) 452-6547
201 Forrestal Road fax: (609) 987-5063
Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
********************************************************************
"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."
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: regrid.3B42.980101.template.ctl
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20100506/fffaaa19/attachment-0003.pl
More information about the gradsusr
mailing list