Skip to content

Update data #320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Sep 23, 2016
Merged

Update data #320

merged 26 commits into from
Sep 23, 2016

Conversation

WeatherGod
Copy link
Member

A remade version of #311 using GSHHG 2.3.6. Also drops out all of that PR's commits that changed the data in order to keep the repo size down. Also fixes a bug discovered during testing of that PR.

Huge thanks to @joferkington for his critical work in #311, without which this would not have been possible!

joferkington and others added 25 commits July 17, 2016 16:48
Previously, only readboundaries_shp.py actually wrote data in a format
that basemap could read.  It looks like readboundaries.py has not
actually been used to produce boundary data in a _very_ long time.
Instead, it's been produced from the GSHHS shapefiles.
New GSHHS versions simplify long national/state borders that are
perfectly linear in geographic space.  However, basemap assumes that
these lines are already subsampled, and does the interpolation in
between the two points in geographic space.  This leads to extreme
errors for long borders with only two points (e.g. the US/Canada
border). Old GSHHS versions stored interpolated versions, so this is an
issue that didn't come up in the past.

To get around this, we'll interpolate long linear segments and store the
interpolated versions.
@WeatherGod
Copy link
Member Author

Hmm, just noticed that I left out the changes to some of the other data like lsmask.

@WeatherGod
Copy link
Member Author

WeatherGod commented Sep 23, 2016

There we go, now both PRs modify all the same files. I am not concerned that the lsmask data came from v2.3.5 of the GSHHG data given that the only difference between v2.3.5 and v2.3.6 is fixing some errors with the Antarctica data, which I believe Joe already took into account.

@WeatherGod
Copy link
Member Author

The tests have passed. Since this PR was originally Joe's with just a tiny little fix, I am going to go ahead with a self-merge.

@WeatherGod WeatherGod merged commit 6071095 into matplotlib:master Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants