File: mapcoords.rst

package info (click to toggle)
basemap 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 213,532 kB
  • sloc: python: 11,826; sh: 45; makefile: 41
file content (17 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.. _mapcoords:

Converting to and from map projection coordinates
=================================================

In order to plot data on a map, the coordinates of the data must
be given in map projection coordinates.
Calling a Basemap class instance with the arguments lon, lat will
convert lon/lat (in degrees) to x/y map projection coordinates
(in meters). The inverse transformation is done if the optional keyword
``inverse`` is set to True.  
Here's an example that uses this feature to plot a marker and some text to 
denote the location of Boulder, CO, given the lat/lon position.

.. plot:: source/users/figures/plotboulder.py

.. toctree::