[gradsusr] opening CAM netcdf files with grads

Jennifer Adams jma at cola.iges.org
Fri Nov 2 06:42:07 EDT 2012


Did you use xdfopen? Please send the complete text of your GrADS session, including the version number. You will need the 'options 365_day_calendar' entry to your descriptor. --Jennifer


On Nov 1, 2012, at 9:34 PM, Cara-Lyn Lappen wrote:

> Removing lon and lat did not work
> 
> I get the same error message.
> 
> The other suggestion to add the line : "options template 365_day_calendar" also did not work.
> 
> any other ideas? Im open…
> 
> Cara-Lyn
> 
> 
> 
> On Nov 1, 2012, at 7:25 PM, Rupak Rajbhandari <rupak.rajbhandari at gmail.com> wrote:
> 
>> remove 'lon' & 'lat' from xdef and ydef line in a descriptor file.
>> 
>> -rupak
>> 
>> 
>> On Fri, Nov 2, 2012 at 2:24 AM, Sagar Parajuli <psagar at utexas.edu> wrote:
>> Hi Cara-lyn
>> In your script please include the following and use xdfopen to open the
>> file, it should work:
>> options template 365_day_calendar
>> 
>> 
>> 
>> ,
>> 
>> Sagar Prasad Parajuli
>> Graduate Student/Research Assistant
>> University of Texas at Austin
>> Jackson School of Geosciences
>> 1 University Station C1100, JGB 5.322
>> Austin, TX 78712
>> Contact: psagar at utexas.edu
>> Cell: 512 965 4093
>> 
>> 
>> 
>> -----Original Message-----
>> From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org]
>> On Behalf Of Cara-Lyn Lappen
>> Sent: Thursday, November 01, 2012 3:10 PM
>> To: gradsusr at gradsusr.org
>> Subject: [gradsusr] opening CAM netcdf files with grads
>> 
>> hi all,
>> 
>> I am fairly new to GraDs. I am trying to use GraDs to open a netcdf file
>> created by the NCAR CAM model. I have tried everything and I can't get it to
>> work.
>> sdfopen doesn't work because it has a 365 day calendar. So, I tried xdfopen
>> with a model descriptor file that looks like this (test.ctl)
>> 
>> DSET ^tiltedheat_daily_1980_1997_FLNT_anom.nc
>> TITLE This is only a test
>> UNDEF -999
>> XDEF lon 144    LINEAR 0.0 2.5
>> YDEF lat 96 LINEAR -90. 1.9
>> TDEF 6206 LINEAR 00Z1jan1980 1dy
>> VARS 1
>> OLR=>FLNT_anom 0 x,y OLR
>> ENDVARS
>> 
>> -----------------------------------------------------------
>> 
>> The ncdump -h output for this file looks like this:
>> 
>> netcdf tiltedheat_daily_1980_1997_FLNT_anom {
>> dimensions:
>>         time = UNLIMITED ; // (6206 currently)
>>         lat = 38 ;
>>         lon = 144 ;
>> variables:
>>         double time(time) ;
>>                 time:long_name = "time" ;
>>                 time:units = "days since 1980-01-01 00:00:00" ;
>>                 time:calendar = "noleap" ;
>>                 time:bounds = "time_bnds" ;
>>         double lat(lat) ;
>>                 lat:long_name = "latitude" ;
>>                 lat:units = "degrees_north" ;
>>         double lon(lon) ;
>>                 lon:long_name = "longitude" ;
>>                 lon:units = "degrees_east" ;
>>         float FLNT_anom(time, lat, lon) ;
>>                 FLNT_anom:_FillValue = -999.f ;
>>                 FLNT_anom:long_name = "OLR Anomalies from Raw Daily
>> Climatology" ;
>>                 FLNT_anom:units = "W/m2" ;
>>         float FLNT_anom_sm(time, lat, lon) ;
>>                 FLNT_anom_sm:_FillValue = -999.f ;
>>                 FLNT_anom_sm:long_name = "FLNT Anomalies from Smooth Daily
>> Climatology" ;
>>                 FLNT_anom_sm:units = "W/m2" ;
>> 
>> // global attributes:
>>                 :creation_date = "Wed Sep  5 13:44:55 CDT 2012" ;
>>                 :title = "FLNT: Daily Anomalies: 1980-1997" ; }
>> 
>> ----------------------------------------------------
>> 
>> The error I keep getting when I type "open test.ctl" is:
>> 
>> Scanning description file:  test.ctl
>> Open Error:  Missing or invalid dimension size.
>>   --> The invalid description file record is:
>>   --> XDEF lon 144      LINEAR 0.0 2.5
>>   The data file was not opened.
>> 
>> 
>> What is wrong with the xdef line? it seems so basic to implement, but it
>> won't work.
>> 
>> any help that anyone has would be much appreciated,
>> 
>> thanks,
>> 
>> Cara-Lyn
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Cara-Lyn
>> 
>> 
>> ***************************************************
>> Dr. Cara-Lyn Lappen
>> Dept. of Atmos. Sciences              ,__o
>> Texas A&M University                 _ -\ _<;
>> Phone: (970) 382-2290              (*) /' (*)
>> Cell Phone: (970) 946-6134
>> Email: lappen7 at gmail.com
>> ***************************************************
>> 
>> 
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>> 
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>> 
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr

--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20121102/37294f25/attachment-0003.html 


More information about the gradsusr mailing list