[gradsusr] North Arrow

Jeff Duda jeffduda319 at gmail.com
Thu Mar 7 17:01:13 EST 2019


As far as I know there is no script in the library to do this, so you will
have to do it manually.

-North arrow: Draw it using "draw poly" or there is likely a font #3
specification of an arrow in the Grads fonts library. I'm not sure which
hotkey it is, but if you run fonts.gs it will print out a map that you can
use to determine that. In the code you would say
'set font 3'
'draw string XXX YYY ((()))' [whatever the key is for the arrow]

-As for the scale, hopefully you know the grid spacing of the data. You can
use the 'q pos' and 'q xy2w' functions to query some known points (with a
known distance) on your map and then use the great circle distance formula
to calculate the distance. You can also use 'q gr2xy' using grid index
points instead of world coordinates to know how long of a bar to draw
corresponding to a known N*dx.

Jeff Duda

On Thu, Mar 7, 2019 at 12:29 AM Joe Nayo <nayojoee at gmail.com> wrote:

> Dear GrADS Users,
>
> Is there a way of displaying a north arrow and scale on a map?
>
> Any help will be appreciated,
> Joe.
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Jeff Duda, Research Scientist
University of Colorado Boulder
Cooperative Institute for Research in Environmental Sciences
NOAA/OAR/ESRL/Global Systems Division
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190307/db9a1ba3/attachment.html>


More information about the gradsusr mailing list