[Thread Prev][Thread Next][Index]

Re: [ferret_users] add a subregion box to an existing ferret plot?

Hi H. Yang,

I have one suggestion for you. It's what I generally do.

First, define two arrays containing lons and lats of the corners of your region. I'll use your coordinates as example:

let lons = {-98, -76, -76, -98, -98}
let lats = {18, 18, 32, 32, 18}

Note that I'm giving one lon,lat pair for each region corner. Also, note that there's one repeating pair -- we need this to get a closed shape. 

Now, after given the shade/fill command, you will plot your shape using

plot/over/vs/nolabel lons, lats

Ferret will draw a straight line starting at 98W,18N, passing through 76W,18N, etc., and return to the starting point.

You can enhance your result using /thick and /dash qualifiers and overlaying dashed and solid lines with different colors. If you need more datails on plot settings, please visit official documentation pages.

There's one more stuff. If your variable longitude axis is varying from 0E to 360E, you won't be able to see your box because it will be located before the axis beginning. Thus, you must adjust the longitude values of your box by adding 360 to them.

Hope it helps.


Paulo Santiago

2012/5/23 Haoping Yang <haoping.yang@xxxxxxxx>
Dear ferreters,

I am trying to add a box to a ferret plot to show a subregion. For example, I have a SSH plot for gulf of mexico ranged from 98W to 76W and 18N to 32N. Now I want to add a bold dashline box to the existing SSH plot showing a subregion (94W:84W, 22N:29N), namely, a box containing four straight dashlines in bold. Could anyone please teach me how to do it?

|                                 |
|                                 |
|                                 |

Thank you,

Paulo Santiago
Doutorado em Meteorologia
Programa de Pós-Graduação em Meteorologia
Instituto Nacional de Pesquisas Espaciais
Tel.: (12) 3186 8637

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

Privacy Policy | Disclaimer | Accessibility Statement