[ncl-talk] Reading NETCDF files OK with NCVIEW but Not Working in NCL
Dave Allured - NOAA Affiliate
dave.allured at noaa.gov
Tue Jul 21 16:27:43 MDT 2015
Ruben,
Please use "addfile", not "addfiles", to open a single Netcdf file.
--Dave
On Tue, Jul 21, 2015 at 4:19 PM, Ruben Santos <jorge.ruben.santos at gmail.com>
wrote:
> Hello,
>
> I am having problems reading a netcdf file with addfile command, whereas
> the same file can be read with no inconvenient by using ncview commad.
>
> *The following ncl code:*
>
> ra=addfiles("*radar.nc <http://radar.nc>*","r")
>
> printVarSummary(ra)
>
> accum=ra->ACCUM_Z_ZDR
>
> *Produces the following error message:*
>
> Variable: ra
> Type: list <concat | fifo>
> Total items: 1
>
> fatal:(ra) not reference to a valid file
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 124 in
> file readgsmap.ncl
>
> I attach the file *radar.nc <http://radar.nc> *and the ncview_radar.png
> to show the variable list.
>
> Help is really appreciated!!!
>
> Thanks
>
> Ruben
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150721/a53873fa/attachment.html
More information about the ncl-talk
mailing list