SciTools / iris

A powerful, format-agnostic, and community-driven Python package for analysing and visualising Earth science data
https://scitools-iris.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
635 stars 284 forks source link

Make the "io picker" work with file-format extension packages #3918

Closed pp-mo closed 3 years ago

pp-mo commented 4 years ago

✨ Feature Request

Enable optional file-formats, provided as extension packages, to modify the Iris process of "identify a file type and invoke the correct loader"

Motivation

So Iris can load unstructured data automatically, if iris-ugrid is available, as it does for iris-grib. But also, because the "io picker" code still includes (minimal) support code for optional formats (GRID, and to-be UGRID), which should really be coded entirely in the extension packages.

Additional context

Grib-specific support remains in core Iris here We would like to tidy that, and to add UGRID support in a similar way, so we need to fix that.

Notes :

  1. we also need to invent some way of controlling relative picker priorities, which can work when we no longer have a simple static list of available format handlers.
  2. 'ugrid' support needs to overlay the standard netcdf file-pickers. When no mesh is found in the file, this should behave exactly as it did before.
trexfeathers commented 3 years ago

The main driver of this (UGRID integration) has been superseded by alternative concepts, so closing. Can exhume if needed.