[ncl-talk] Problem reading NETCDF-4 file created in v6.1.2

Vollaro, David dvollaro at albany.edu
Tue Jun 2 12:18:39 MDT 2015


Hi,

I have created a NETCDF-4 file w/NCL v6.1.2.  I am having a problem using
cd_inv_calendar when reading this file.  I get the following error:

fatal:Argument type mismatch on argument (6) of (cd_inv_calendar) can not be coerced

When I create the same NETCDF-4 file using V6.0.0 it reads OK.


Running a ncdump -h  on each of these files there are differences:

 ncdump -h on V6.1.2 file
netcdf ANOM+6SCALAR_1983-2013_240x121 {
dimensions:
    time = UNLIMITED ; // (640 currently)
    level = 39 ;
    latitude = 121 ;
    longitude = 240 ;
variables:
    double time(time) ;
        time:_FillValue = 9.96920996838687e+36 ;
        time:actual_range = 1867128., 1874610. ;
        string time:first_time = "2013-1-1 00:00:00" ;
        string time:delta_t = "0000-00-00 06:00:00" ;
        string time:long_name = "initial time" ;
        string time:units = "hours since 1800-01-01 00:00:00" ;
        string time:last_time = "2013-12-31 18:00:00" ;
        time:_ChunkSizes = 1 ;
......

ncdump -h on V6.0.0 file
netcdf AANOM+6SCALAR_2000-2013_240x121 {
dimensions:
    time = UNLIMITED ; // (6 currently)
    level = 39 ;
    latitude = 121 ;
    longitude = 240 ;
variables:
    double time(time) ;
        time:_ChunkSizes = 1 ;
        time:units = "hours since 1800-01-01 00:00:00" ;
        time:long_name = "initial time" ;
        time:delta_t = "0000-00-00 06:00:00" ;
        time:first_time = "1988-1-1 00:00:00" ;
        time:last_time = "1988-12-31 18:00:00" ;
        time:actual_range = 1647960., 1656738. ;
        time:_FillValue = 9.96920996838687e+36 ;

.....

There appears to be a "string" label in front of the string vars in the 6.1.2 vers.
I have attached the script that creates the file.  Thanks for any help you can provide

Dave Vollaro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150602/f43795d3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecint-CLIMO-difference.ncl
Type: application/octet-stream
Size: 9066 bytes
Desc: ecint-CLIMO-difference.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150602/f43795d3/attachment.obj 


More information about the ncl-talk mailing list