mscross / pysplit

A package for HYSPLIT air parcel trajectory analysis.
BSD 3-Clause "New" or "Revised" License
152 stars 81 forks source link

Smallest map size possible? #89

Open NBolohanUO opened 2 years ago

NBolohanUO commented 2 years ago

Hello all,

I've had an issue making small maps. For example, I am unable to make a map with corners any smaller than

mapcorners = [-124, 50, -115, 58].

Doing so result in the error from matplotlib:

ValueError: 'vertices' must be 2D with shape (M, 2). Your input has shape (0,).

Is it possible to go smaller than this? Ideally, I want something just a bit smaller like

mapcorners = [-122, 55, -118, 58].

mscross commented 2 years ago

What projection are you using? Your easiest bet to successfully create a map this small will be some sort of cylindrical projection. Distortion shouldn't be a problem at this scale.

NBolohanUO commented 2 years ago

Thanks for the reply! With cylindrical projection, I can make the width as small as I want, but the height is acting strange. For example,

mapcorners = [-124, 50, -116, 51]

works but

mapcorners = [-124, 51, -116, 58]

does not.