Skip to content

Commit

Permalink
List arrays in restart file at specified report date
Browse files Browse the repository at this point in the history
  • Loading branch information
svenn-t authored and KriFos1 committed Oct 31, 2024
1 parent 090462e commit a6c4b5f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions misc/ecl.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ def date(self):

# convert Eclipse date field to a Python date object
return _intehead_date(intehead)

def arrays(self):
ecl_file = EclipseFile(self.root, self.ext)
return [list(ecl_file.cat.keys())[i][0] for i, _ in enumerate(ecl_file.cat)]


class EclipseSummary (EclipseData):
Expand Down Expand Up @@ -1075,6 +1079,9 @@ def grid(self):
# offload this routine to the grid object
return self._grid.grid()

def arrays(self, when):
return self.at(when).arrays()


class EclipseRFT (object):
"""Read data from an Eclipse RFT file."""
Expand Down

0 comments on commit a6c4b5f

Please sign in to comment.