equinor / xtgeo

XTGeo Python class library for subsurface Surfaces, Cubes, Wells, Grids, Points, etc
https://xtgeo.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
110 stars 56 forks source link

Ensure `surface_from_file()` supports HDF files #1097

Open mferrera opened 9 months ago

mferrera commented 9 months ago

This deprecation notice

https://github.com/equinor/xtgeo/blob/97b3f09137d7301a30894a24fa9d27d35b23df5f/src/xtgeo/surface/regular_surface.py#L1179-L1185

says to use xtgeo.surface_from_hdf() instead, but this function does not exist. It should be updated to use xtgeo.surface_from_file and support for that should actually be built into it.