Skip to content
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

Ortho projection does not center correctly #1474

Merged
merged 2 commits into from Jul 15, 2016

Conversation

Projects
None yet
3 participants
@megies
Copy link
Member

commented Jul 13, 2016

>>> from obspy.clients.fdsn import Client
>>> client = Client("USGS")
>>> catalog = client.get_events(
...     latitude=-10.4012, longitude=165.1409, maxradius=70, minmagnitude=5)
>>> catalog.plot(projection="ortho", color="date");

earth

@krischer krischer added the bug label Jul 12, 2016

@krischer krischer added this to the 1.0.2 milestone Jul 12, 2016

@krischer krischer added the .imaging label Jul 12, 2016

@QuLogic

This comment has been minimized.

Copy link
Member

commented Jul 12, 2016

Probably due to longitude wrapping...

:param longitudes: Geographical longitude values ranging from -180 to 180
in degrees.
"""
return circmean(longitudes, low=-180, high=180)

This comment has been minimized.

Copy link
@QuLogic

QuLogic Jul 13, 2016

Member

Cool, nice to know we don't need to write anything complicated.

rcParams['savefig.dpi'] = 40
cat.plot(method='basemap', outfile=ic.name, projection='ortho',
resolution='c', label=None, title="",
water_fill_color="b")

This comment has been minimized.

Copy link
@QuLogic

QuLogic Jul 13, 2016

Member

Could you not use 'b'? 😁

@megies megies force-pushed the fix_ortho_center branch from fe33b16 to 3ddcd44 Jul 15, 2016

megies added some commits Jul 13, 2016

@megies megies force-pushed the fix_ortho_center branch from 3ddcd44 to b29f301 Jul 15, 2016

@megies megies closed this Jul 15, 2016

@megies megies reopened this Jul 15, 2016

@megies megies merged commit 42d51b8 into maintenance_1.0.x Jul 15, 2016

1 of 4 checks passed

coverage/coveralls Coverage decreased (-0.009%) to 86.249%
Details
continuous-integration/appveyor/pr Waiting for AppVeyor build to complete
Details
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details

@megies megies deleted the fix_ortho_center branch Jul 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.