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

Mary Haley haley at ucar.edu
Wed Jun 3 23:04:08 MDT 2015


Hi Dave,

It might be worth trying a new version of NCL on this script, since a
number of bugs have been fixed since then, pertaining to NetCDF files.

If you can't upgrade, then can you provide us with the NetCDF file and a
simple script that illustrates the cd_inv_calendar issue?

Thanks,

--Mary


On Tue, Jun 2, 2015 at 12:18 PM, Vollaro, David <dvollaro at albany.edu> wrote:

>  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
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150603/3a40c955/attachment.html 


More information about the ncl-talk mailing list