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

Add example of zoomed in lat/lon in addition to the global plot #39

Open
juliaengdahl opened this issue May 6, 2021 · 0 comments
Open

Comments

@juliaengdahl
Copy link

Showing a zoomed in portion of the global map can provide further examples of using cartopy features such as:

  1. using the dataframe.sel(lat=x,lon=y,method='nearest') method to select the lat/lon extent.
  2. resolving the coastlines to cartopy.feature.coastlines('10m'), which will show coastlines at 10m resolution. This is good if you are plotting a specific region.
  3. If zoomed in on the mid Atlantic bight you could use cartopy.feature.STATES to show state lines.

This can be accomplished by doing ax.add_feature(cartopy.feature.STATES) or ax.coastlines('10m').

This is an important aspect for oceanographers because we often analyze data in specific regions, unless the study is specific to global data, and showing these features allows for better interpretation for data location.

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

No branches or pull requests

1 participant