[Thread Prev][Thread Next][Index]

Re: [ferret_users] RE: Complex/simple polygon overlay onto 2D ocean map



Hi Josh,

Are you saying that you had to reverse the order of the x and y coordinates of your polygon to get it to show up?  I am not seeing that.  Try this,

yes? use etopo5
yes? shade/x=52:54/y=2:3 rose
yes? let bx = {53.5740154,53.5959991,53.5158303}
yes? let by = {2.2721703,2.5121713,2.5341171}
yes? polygon/over/nolab/line/color=red bx,by

And by the way to draw a line such as this, you could also use PLOT/VS.  Just repeat the first location as the last to close the shape

yes? let bx = {53.37, 53.39, 53.51, 53.57}
yes? let by = {2.27, 2.51, 2.53, 2.27}

yes? plot/over/vs/nolab/line/thick/color=green bx,by

And, while I'm at it, get a bigger variety of colors using PLOT/VS/RIBBON/PALETTE, making the 3rd argument any constant for a one-color line,  or vary it and draw with a multi-colored palette..

yes? plot/over/vs/ribbon/nolab/line/thick/palette=pink_light bx,by, 1+0*by


Finally, if you define the points with units of degrees_east for the x-coordinates, then modulo longitude operations will be done so that

Ansley

On 6/5/2019 5:41 AM, JoshAB1995@xxxxxxxxxxx wrote:

Apologies – the solution was rather simple:

 

yes? let bx = {53.5740154,53.5959991,53.5158303} !the coordinates should be in the opposite brackets!!

yes? let by = {2.2721703,2.5121713,2.5341171} !”

yes? polygon/o/nolab/line by, bx !by, bx because coordinates defined in wrong brackets!

 

Thanks anyway.

 

Sent from Mail for Windows 10

 


From: owner-ferret_users@xxxxxxxx <owner-ferret_users@xxxxxxxx> on behalf of JoshAB1995@xxxxxxxxxxx <JoshAB1995@xxxxxxxxxxx>
Sent: Wednesday, June 5, 2019 1:30:39 PM
To: ferret_users@xxxxxxxx
Subject: [ferret_users] Complex/simple polygon overlay onto 2D ocean map
 

Hi guys,

 

I’m currently trying to figure out how to overlay polygons of complex shape onto an ocean plot. I have managed to overlay simple polygons, such as rectangles, using the GO box script. However, I am now looking to overlay, triangles and other polygons with many different points at various coordinates, for context I’m looking to overlay polygons of marine protected areas onto ocean plots.

 

If anyone could point me in the direction of a suitable script/_expression_ that would be muchly appreciated as I am struggling using the POLYGON/LINE _expression_!!

 

Many thanks,

 

Josh

 

Sent from Mail for Windows 10

 

--
Ansley Manke
NOAA/PMEL Science Data Integration Group
7600 Sand Point Way NE
206-526-6246

[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement