Re: lat/lon labels on masked lambert projection

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 18 Jul 2008 08:46:22 -0600 (MDT)

Detelina,

I'm afraid there's no easy way to do this. This map projection is
actually rectangular before it is masked, and hence if you turned on
tickmarks, they would be on a rectangle surrounding the masked lambert
conformal plot. (And also, the masking would cause the tickmarks
to be masked anyway.)

The somewhat tedious way to do this is to add the lat/lon labels
yourself using gsn_text. You need to determine at which lat/lon
points you want labels. These need to be at locations at the edge of
your map, and not just outside it (otherwise, you'll need to use
gsn_text_ndc to place labels).

I've attached an example using the first example from the Lambert
Conform mask page: http://www.ncl.ucar.edu/Applications/lcmask.shtml.

Note that the labels appear right on the border. You can use
some tricks, like setting txres_at_txJust = "CenterRight" to right
justify the strings, but then these may be displaced slightly
off from their lat/lon locations. You can use different lat/lon
values, in order to better control where the label goes.

--Mary

On Thu, 17 Jul 2008, Detelina Ivanova wrote:

> Is there a way to put latitude&longitude labels on masked lambert projection?
>
> -Detelina.
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Fri Jul 18 2008 - 08:46:22 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 18 2008 - 08:51:53 MDT