Skip to content

metpy/plots/mapping.py >> Unhandled projection: rotated_latitude_longitude #3099

@blaylockbk

Description

@blaylockbk

What should we add?

Canada's HRDPS model is on a rotated latitude longitude grid. The following returns an error:

ds = # load grib file with xarray/cfgrib
ds = ds.metpy.parse_cf()
ds.metpy_crs.item().to_cartopy()

# OUT
# ValueError: Unhandled projection: rotated_latitude_longitude

Is the solution to this simply adding the ccrs.RotatedPole projection in metpy/plots/mapping.py?

raise ValueError(f'Unhandled projection: {self.name}') from None

HRDPS GRIB2 Data:
https://dd.weather.gc.ca/model_hrdps/continental/2.5km/00/000/

Reference

https://eccc-msc.github.io/open-data/msc-data/nwp_hrdps/readme_hrdps-datamart_en/#technical-grids-specification

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: ProjectionsPertains to projecting coordinates between coordinate systemsType: FeatureNew functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions