Re: About means of ocean filling (mpOceanFillColor)

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 11 2009 - 10:05:19 MST

Samuel,

You didn't include your full script, so I also don't know what "blue"
is. I think you meant to put this in double quotes; otherwise it
will look for a variable called blue:

res@mpOceanFillColor = "blue"

--Mary

On Dec 10, 2009, at 8:26 PM, Leung Samuel wrote:

> Dear NCL team,
>
> I am confused by the mpOceanFillColor setting that I can never get
> the ocean filled even if I enabled the mpFillOn, or is it any other
> setting that takes precedence to mpOceanFillColor? Or does my data
> used for drawing should contain the corresponding information about
> something like "defining" the location of ocean?
>
> Here is part of my codes that I think is related
>
> gsn_define_colormap(wks,"BlAqGrYeOrRevi200")
>
> res = True
> res@gsnMaximize = True
> res@gsnPaperOrientation = "portrait"
> res@gsnFrame = False
>
> res@mpOutlineOn = True
> res@mpProjection = "Mercator"
>
> res@mpFillOn = True
> res@mpFillDrawOrder = "PostDraw"
> res@mpOceanFillColor = blue
>
> res@mpGeophysicalLineColor = "black"
> res@mpDataBaseVersion = "Ncarg4_1"
> res@mpDataSetName = "PRE"
>
> res@mpLimitMode = "Corners"
> res@mpLeftCornerLatF = lat2d(0,0)
> res@mpLeftCornerLonF = lon2d(0,0)
> res@mpRightCornerLatF = lat2d(ny-1,nx-1)
> res@mpRightCornerLonF = lon2d(ny-1,nx-1)
>
> Thanks in advance.
>
> Regards,
> Samuel Leung
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Dec 11 10:05:26 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 17 2009 - 17:15:52 MST