Re: mask for Canada

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 16 2010 - 12:23:07 MST

Hi Debasish,

You might be able to accomplish what you want by using map fill resources mpFillAreaSpecifiers and mpMaskAreaSpecifiers to fill in all areas except Canada.

See example 4 at:

http://www.ncl.ucar.edu/Applications/mask.shtml

Or, if you have a shapefile that contains a full lat/lon outline for Canada, then you could use gc_inout to mask any data that's outside the area of interest. See examples 4 and 5 at:

http://www.ncl.ucar.edu/Applications/shapefiles.shtml#ex4

--Mary

On Nov 16, 2010, at 11:24 AM, Debasish wrote:

> Hello NCL users,
>
> I have data for North America but I only need to plot for Canada. Is there any mask file for Canada and how will I set it?
>
> I used
> res@mpDataBaseVersion = "Ncarg4_1"
> res@mpDataSetName = "Earth..3"
>
> Thanks
>
> Debasish
> _______________________________________________
> 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 Tue Nov 16 12:23:19 2010

This archive was generated by hypermail 2.1.8 : Wed Nov 17 2010 - 13:14:26 MST