emaremes.plot

Functions to make quick plots from MRMS data.

emaremes.plot.precip_flag_map(file: PathLike, state: UnitedState | Literal['CONUS'] | Extent, scale_win: int | None = None, _plt_close: bool = True) Figure

Make a map of precipitation types.

Parameters:
  • file (Path) – Path to a file containing precipitation rate data.

  • state (US_State | Literal["CONUS"]) – State to plot. If “CONUS”, the entire CONUS is plotted.

  • scale_win (int | None = None) – Window size for downscaling. If None, it defaults to 5 for states and 10 for CONUS.

  • _plt_close (bool = True) – Close plot to avoid duplicates in Notebooks. Set to false when testing because matplotlib.testing.image_comparison expects an open plot.

Returns:

Figure object. It uses the cartopy library to plot the map.

Return type:

plt.Figure

emaremes.plot.precip_rate_map(file: PathLike, state: UnitedState | Literal['CONUS'] | Extent, scale_win: int | None = None, _plt_close: bool = True) Figure

Make a map of precipitation rate.

Parameters:
  • file (Path) – Path to a file containing precipitation rate data.

  • state (US_State | Literal["CONUS"]) – State to plot. If “CONUS”, the entire CONUS is plotted.

  • scale_win (int | None = None) – Window size for downscaling. If None, it defaults to 5 for states and 10 for CONUS.

  • _plt_close (bool = True) – Close plot to avoid duplicates in Notebooks. Set to false when testing because matplotlib.testing.image_comparison expects an open plot.

Returns:

Figure object. It uses the cartopy library to plot the map.

Return type:

plt.Figure