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

Add `list_gridproperties` function #1084

Closed mferrera closed 9 months ago

mferrera commented 9 months ago

This should be a publicly exported function that returns a list of property names in a file.

property_names = xtgeo.list_properties("MYFILE.UNRST") # List all properties available in the file
my_names = property_names[...] #  filter which property names are relevant
gps = xtgeo.gridproperties_from_file("MYFILE.UNRST", names=my_names)