[ncl-talk] problems about converting ASCII to nc and plotting the nc file
Li Qi
liqi123sh at qq.com
Sat Oct 4 02:14:02 MDT 2014
Dear NCL,
I have an ASCII file having dimensions [lon,lat],
then I'd like to convert it to nc file and plot it.
Attached please find the data and scripts.
However, when I plot it, I got error warnings and no contours appeared on the map.
(0) Error: scalar_field: If the input data is 1-dimensional, you must set sfXArray and sfYArray to 1-dimensional arrays of the same length.
warning:create: Bad HLU id passed to create, ignoring it
warning:ContourPlotSetValues: Data values out of range of levels set by EXPLICITLEVELS mode
Could you please to help me?
Any advice will be greatly appreciated!
Best,
LI Qi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141004/888d2afc/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20070708_06.dat
Type: application/octet-stream
Size: 562693 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141004/888d2afc/attachment-0004.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ascii2nc.ncl
Type: application/octet-stream
Size: 1456 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141004/888d2afc/attachment-0005.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20070708_06.nc
Type: application/octet-stream
Size: 218112 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141004/888d2afc/attachment-0006.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plot.ncl
Type: application/octet-stream
Size: 1478 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141004/888d2afc/attachment-0007.obj
More information about the ncl-talk
mailing list