Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Defined cases for Atlantic, Indik, and Pacific Ocean in plot_transect_map #12

Open
crodehacke opened this issue Dec 17, 2020 · 3 comments

Comments

@crodehacke
Copy link

I would like to suggest to allow restricting the plot_transect_map to the three ocean basis.

plot_transect_map(lon_start, lat_start, lon_end, lat_end,
                      mesh, npoints=30, view = 'w', stock_img=False):
    :
    if view=='w':
      :
      :
    elif view=='atl':
        # Atlantic
        ax = plt.subplot(111, projection=ccrs.Mercator(central_longitude=0))
        ax.set_extent([25, -85, -75, 70], crs=ccrs.PlateCarree())
    elif view=='ind':
        # Indik
        ax = plt.subplot(111, projection=ccrs.Mercator(central_longitude=70))
        ax.set_extent([140, +15, -75, 30], crs=ccrs.PlateCarree())
    elif view=='pac':
        # Pacific
        ax = plt.subplot(111, projection=ccrs.Mercator(central_longitude=-180))
        ax.set_extent([-255, -70, -75, 67], crs=ccrs.PlateCarree())   
    else:
:
@koldunovn
Copy link
Member

@crodehacke Can you try to do a PR with this changes?

@crodehacke
Copy link
Author

crodehacke commented Dec 17, 2020 via email

@koldunovn
Copy link
Member

Hi @crodehacke

PR is Pool request, request to include your changes into the code of other people ( see e.g. https://guides.github.com/activities/hello-world/#pr). If it's easier for you just send me the notebook (by usual mail, attachments did not come automatically on GitHub).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants