[ncl-talk] Reading NETCDF files OK with NCVIEW but Not Working in NCL

Maria Gehne - NOAA Affiliate maria.gehne at noaa.gov
Tue Jul 21 16:30:03 MDT 2015


Just as Dave said. There is nothing wrong with the file, I just tested it
using addfile. The syntax error was the problem.

Maria

On Tue, Jul 21, 2015 at 4:27 PM, Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> 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
>>
>
> _______________________________________________
> 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/20150721/3f798688/attachment.html 


More information about the ncl-talk mailing list