Hi
I want to create a contour plot from the observational data, i.e. for a 46*72 grid there are only ~ 100 points with observations, other points with missing data (I set a value as 0.0001). when I use ncl as below, I want to let those points with missing data as WHITE, but others as color. I do so in 2 ways:
1) set missing data as mask
2) set missing data as FillValue
I do see there are values of non-0.0001 by using print, but the contour looks all white from 1) or 2). anybody tell me what is wrong?
thanks a lot.
Xiaoyan
--------------------------------------------------------------------------
var = fbindirread("1.dat",0, (/46,72/), "float")
print(var)
; var = mask(var,var.le.0.001,False) ; create artificial areas of missing data
var@_FillValue = 0.0001 ; sets _FillValue to 0.0001
res = True ; plot mods desired
res@cnFillOn = True ; turn on color
res@cnLinesOn = False ; no contour lines
plot= gsn_csm_contour_map_ce(wks,var,res)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 5 10:29:04 2011