Re: contour map

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Dec 03 2013 - 14:27:56 MST

Hi Mahesh,
The way I understand it:
RasterFill and CellFill fills each grid box individually. AreaFill takes
into account information from neighboring grid boxes to form a
smooth(er) color fill. If there are not enough neighboring boxes for
which NCL to draw information from each individual grid box might not
get plotted with Area Fill.

Thus, RasterFill or CellFill are the best options in your case.
Adam

On 11/28/2013 08:30 PM, Mahesh Varma wrote:
> I am sorry that I forgot to attach the figure in my previous e-mail.
> Attached is the map.
> Thanks,
> Mahesh
>
> ---------- Forwarded message ----------
> From: *Mahesh Varma* <mkmvarma@gmail.com <mailto:mkmvarma@gmail.com>>
> Date: Thu, Nov 28, 2013 at 7:25 PM
> Subject: contour map
> To: ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu>
>
>
> Hi,
> I am trying to plot a map (only for CONUS) from a global data set.
> But, the map does not fill in at continental boundaries (attached). Is
> there a way to fix this? It fills in continental boundaries when I set
> cnFillMode ="CellFill". I am not sure why it does not fill the
> continental boundaries when cnFillMode is set as "AreaFill". Here is
> the piece of code that I have.
> Thanks,
> Mahesh
>
> ;--------------------------------------
>
> res@mpMinLatF = 25.0;44.25 ; range to zoom in on
>
> res@mpMaxLatF = 50.0;50.
>
> res@mpMinLonF = 235;-130.
>
> res@mpMaxLonF = 290;-60.0
>
> ;printMinMax(rel_prcp_per_model_avg,0)
>
> ;#########################plotting pdo-cpc correlation regional data
> #############################################
>
> ;if (PRCP_OBS .EQ. "CPC") then
>
> ; res@gsnAddCyclic = False
>
> ;end if
>
> ;res@cnFillMode = "CellFill"
>
> res@cnMinLevelValF = -0.8 ; set min contour level
>
> res@cnMaxLevelValF = 0.8 ; set max contour level
>
> res@cnLevelSpacingF = 0.2 ; set contour spacing
>
> res@tiMainString = "PDO vs PRCP (OBS):"+byear+"-"+eyear
>
> res@gsnRightString = ""
>
> plot(3) =
> gsn_csm_contour_map_ce(wks,reg_coef_cpc_pdo_vs_prcp_1950_2009,res)
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Dec 3 14:28:07 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST