Hi - Glad to hear you got the pt_in_poly function working to create a mask. I don't really see a way to use that to include or exclude portions of grid cells, but you could use Ferret to define and regrid your variable to a finer grid, before applying the boundary mask. This is always the nature of working with gridded data - the variable which is defined on the grid takes on its value within the grid cells. You can use your masked variable in calculations as well as graphics, if you define the mask as shown in the example for pt_in_poly -- then the variable is valid inside the boundary and missing outside. let aoi_india = if pt_in_poly(aoi_var, xp, yp) gt 0 then 1I'm not sure what you mean by zooming in. You can do graphics or calculations on any region in your grid by specifying that XY region. To overlay shapes, probably the easiest way is to use the "go polymark" script. A simple map plot: yes? use etopo05 yes? shade/x=40:120/y=0:40/lev=c/pal=dark_land_sea rose yes? go polymark poly/over/nokey/nolab/pal=pink 72.75, 19, " ", square Thanks for the reminder about 2012. We'll get that set up. Ansley On 2/14/2012 9:48 AM, jagadish karmacharya wrote:
|