[ncl-talk] CMIP5 tos Problem
Dennis Shea
shea at ucar.edu
Wed Oct 25 12:23:00 MDT 2017
I think you should provide what you have done.
If you are learning NCL, please look at the excellent tutorial by DKRZ at:
http://www.ncl.ucar.edu/Document/Manuals/
The User Guide has many examples.
To learn any language you must invest the time to learn
---
We do not have any tos file available. The following is an untested guess.
ANy errors you must fix.
---
diri = "./" ; input directory
fili = "tso ...nc" ; your file
pthi = diri+fili
f = addfile( pthi, "r")
x = f->tos ; (time,nlat,mlon)
lat2d = f->lat ; (nlat,mlon)
lon2d =f->lon
printVarSummary(x)
printMinMax(x, 0)
print("---")
printVarSummary(lat2d)
printMinMax(lat2d, 0)
print("---")
printVarSummary(lon2d)
printMinMax(lon2d, 0)
print("---")
wks = gsn_open_wks("png","marjani") ; open a ps file
gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap
res = True
res at cnFillOn = True ; turn on color
res at cnFillMode = "RasterFill" ; turn on raster mode
... optional
res at cnLinesOn = False ; turn off contour lines
res at cnLineLabelsOn = False
res at cnFillPalette = "BlAqGrYeOrRe" ; your choice
x at lat2d = lat2d
x at lon2d = lon2d
nt = 0
plot = gsn_csm_contour_map_ce(wks,x(nt,:,:),res)
On Tue, Oct 24, 2017 at 11:37 PM, sjd.marjani <sjd.marjani at ut.ac.ir> wrote:
> Hello . I have problem with CMIP5 sea surface temperature(tos).
>
> I dont know how to read it in ncl and how to plot it (the shape of data is
> not regular),
>
> its more than 1week I'm working on it .
>
> could YOU please help me ,send me an example script or something like this
> ???
>
> thank you
>
> best regaurd
>
> Sajede,MS student
>
>
>
>
> _______________________________________________
> 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/20171025/a7ec63a2/attachment.html>
More information about the ncl-talk
mailing list