[ncl-talk] FW: Difficulty with cross-section plot

Black, Forrest (LARC-D318)[UNIVERSITIES SPACE RESEARCH ASSOCIATION] forrest.black at nasa.gov
Mon Apr 24 09:43:29 MDT 2017


Hello,

I am trying to plot a cross-section plot of wind-speed using NCL version 6.3.0.
The attached script is modified from an example found at http://www.ncl.ucar.edu/Applications/height_long.shtml - example "narr_6.ncl<http://www.ncl.ucar.edu/Applications/Scripts/narr_6.ncl>".

The error message I keep getting is:

(0)     gsn_csm_pres_hgt: Fatal: The first dimension of the input data must
(0)     have a coordinate variable called 'lev.'
(0)     Cannot create plot.
fatal:Illegal right-hand side type for assignment
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 132 in file wind_speed_profile.ncl

It seems that although the variable I am using has pressure level data (in Pa units), the leftmost dimension is not specifically named "lev".

Any suggestions suggestion on how to get around  this error would be greatly appreciated.

The grib2 file I am using is too large to attach, but a similar one can be found at ftp://nomads.ncdc.noaa.gov/RUC/13km/201702/20170201/rap_130_20170201_0000_000.grb2

Thank you,


-        Forrest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170424/8fd22dd1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wind_speed_profile.ncl
Type: application/octet-stream
Size: 5638 bytes
Desc: wind_speed_profile.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170424/8fd22dd1/attachment.obj 


More information about the ncl-talk mailing list