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

common_features: add terrain background map plotted from GFS #8

Open
blaylockbk opened this issue Dec 11, 2022 · 1 comment
Open

common_features: add terrain background map plotted from GFS #8

blaylockbk opened this issue Dec 11, 2022 · 1 comment

Comments

@blaylockbk
Copy link
Owner

I would like to add this as a map background option for the cartopy_tools.common_features class...

image

Could be terrain field from GFS, HRRR, or another model

This would require Herbie being installed, and getting the data.

from herbie import Herbie

model = 'hrrr'

def TERRAIN2(self, date, model):
    H = Herbie(date, model)
    ds = H.terrain()

    # color the map background water
    self.ax.set_facecolor(water_color)

    # plot the terrain
    ax.pcolormesh(
        ds.longitude,
        ds.latitude,
        ds.orog,
        transform=pc,
        **cm_terrain(water=False, land_top=5500).cmap_kwargs
    )
@blaylockbk
Copy link
Owner Author

Maybe add some more details to this, like ice

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