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

Ruben Santos jorge.ruben.santos at gmail.com
Tue Jul 21 16:45:10 MDT 2015


Sorry for the silly mistake!!!

Thank you very much Dave and Maria.

Ruben


On Tue, Jul 21, 2015 at 4:30 PM, Maria Gehne - NOAA Affiliate <
maria.gehne at noaa.gov> wrote:

> 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/26359ae0/attachment.html 


More information about the ncl-talk mailing list