Remapping scattered data

Hi,

I may have found an issue with some map projections.When I try to plot
markers on a given map, and change the center ofprojection, the
markers' coordinates are not remapped correctly.If the marker's
coordinates are not inside the new boundaries, it issimply not
displayed in some cases.For example, remapping does work with Robin's
projection and does notwith Miller's.I have attached a small example.
Thanks !

Alexis Praga

example.py (705 Bytes)

Alexis: It looks like the coordinates you are plotting with scatter are between longitudes -180 and 180, and the map projection goes from 0 to 360. Adjust your coordinates to lie within 0 and 360, and they will show up.

This behavior will be map projection dependent - it will only show up in the cylindrical projections where the x coordinate is longitude.

-Jeff

···

On 12/18/11 1:33 PM, Alexis Praga wrote:

Hi,

I may have found an issue with some map projections.When I try to plot
markers on a given map, and change the center ofprojection, the
markers' coordinates are not remapped correctly.If the marker's
coordinates are not inside the new boundaries, it issimply not
displayed in some cases.For example, remapping does work with Robin's
projection and does notwith Miller's.I have attached a small example.
Thanks !

Alexis Praga

Exactly. But I do not understand why some map projectionsautomatically
adjust the data and others don't.

Alexis

···

On Sun, Dec 18, 2011 at 3:53 PM, Jeff Whitaker <jswhit@...146...> wrote:

On 12/18/11 1:33 PM, Alexis Praga wrote:

Hi,

I may have found an issue with some map projections.When I try to plot
markers on a given map, and change the center ofprojection, the
markers' coordinates are not remapped correctly.If the marker's
coordinates are not inside the new boundaries, it issimply not
displayed in some cases.For example, remapping does work with Robin's
projection and does notwith Miller's.I have attached a small example.
Thanks !

Alexis Praga

Alexis: It looks like the coordinates you are plotting with scatter are
between longitudes -180 and 180, and the map projection goes from 0 to 360.
Adjust your coordinates to lie within 0 and 360, and they will show up.

This behavior will be map projection dependent - it will only show up in the
cylindrical projections where the x coordinate is longitude.

-Jeff