Skip to content

common_features: add terrain background map plotted from GFS #8

Description

@blaylockbk

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
    )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions