[ncl-talk] plotting I J variables from the WRF out file
Rick Brownrigg
brownrig at ucar.edu
Sun May 10 09:18:22 MDT 2020
Hi,
There are at least two problems. One is that str_get_field() returns
strings, and so "data" in the call to gsn_csm_contour_map() is a string,
and this is the source of the error message. Try adding these 3 lines:
lat := stringtofloat(lat)
lon := stringtofloat(lon)
data := stringtofloat(data)
The other problem is that the min/max bounds are inappropriate for the data
-- I get a blank plot. If I used the true min/max I get a mostly centered
over Siberia:
res at mpMinLatF = min(lat) ;-6.080154 ; range to zoom in on
res at mpMaxLatF = max(lat) ;10.04061
res at mpMinLonF = min(lon) ;95.908
res at mpMaxLonF = max(lon) ;112.092
Finally, the values for lat/lon in the file look suspect -- is this really
a 1-degree grid? I might have guessed they are row/column values.
Good luck,
Rick
On Sun, May 10, 2020 at 2:23 AM ali mughal via ncl-talk <ncl-talk at ucar.edu>
wrote:
> Dear Users
>
> I have csv file attached with the data available at specific grids of the
> WRF outfile.Could any one help how to correct my attached code in NCL?
>
> When I try to run the code, I get the following error message
>
> (0) This file has 4825 rows and 3 columns.
> fatal:Argument type mismatch on argument (1) of (gsn_csm_contour_map) can
> not coerce
> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 64 in
> file test_1.ncl
>
>
> Later I want to use the same code to be modified to calculate 2m air
> temperature at the same I J grids.
>
> Regards
> _______________________________________________
> 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/20200510/fcbb19f9/attachment.html>
More information about the ncl-talk
mailing list