Skip to content

Add example to read .om file with xarray, subset by coordinates and time, and export to NetCDF/GeoTIFF #31

@reneignacio

Description

@reneignacio

Hello,

It would be very helpful to have an example (script or notebook) that demonstrates how to:

  1. Read a .om file using OmFilePyReader and convert it into an xarray.DataArray or xarray.Dataset.
  2. Select a region of interest (ROI) using geographical coordinates (lat/lon).
  3. Filter by a date or date range using the file’s temporal metadata.
  4. Visualize the selected region using xarray.plot or matplotlib.
  5. Export the subset to NetCDF or GeoTIFF.

Each weather model (e.g., ICON, IFS, etc.) uses a different grid configuration. Apparently, there are auxiliary metadata files to interpret these grids, but in my case, I haven’t been able to locate them or figure out how to use them. Ideally, the library should allow users to specify the model as a parameter, or detect it automatically, so that .om files can be opened without requiring additional files.

Thanks for considering this suggestion and congratulations on all the work behind Open-Meteo!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions