PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
pyphyex.phyex1d.case.Case Class Reference
Inheritance diagram for pyphyex.phyex1d.case.Case:

Public Member Functions

 contains (self, varname)
 get (self, varname, slice_idx=None)
 duration (self)
 description (self)
 get_interpolator (self, varname, grid)
 __enter__ (self)
 __exit__ (self, *args)
 close (self)

Detailed Description

Base class for case implementations

All subclasses must provide:
  - description (str property)
  - duration (float property, seconds)
  - contains(varname) -> bool
  - get(varname, slice_idx=None) -> numpy.ndarray
  - get_interpolator(varname, grid) -> RegularGridInterpolator
  - context manager support (__enter__ / __exit__)

Definition at line 25 of file case.py.

Member Function Documentation

◆ __enter__()

pyphyex.phyex1d.case.Case.__enter__ ( self)

Definition at line 60 of file case.py.

◆ __exit__()

pyphyex.phyex1d.case.Case.__exit__ ( self,
* args )

Definition at line 63 of file case.py.

Here is the call graph for this function:

◆ close()

pyphyex.phyex1d.case.Case.close ( self)
Close any open resources. Override in subclasses.

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat.

Definition at line 66 of file case.py.

Here is the caller graph for this function:

◆ contains()

pyphyex.phyex1d.case.Case.contains ( self,
varname )
Check if a variable exists in the case data

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat, and pyphyex.phyex1d.case.CaseXarray.

Definition at line 38 of file case.py.

◆ description()

pyphyex.phyex1d.case.Case.description ( self)
Case description string

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat, pyphyex.phyex1d.case.CaseXarray, and pyphyex.phyex1d.case.CaseXarray.

Definition at line 52 of file case.py.

◆ duration()

pyphyex.phyex1d.case.Case.duration ( self)
Simulation duration in seconds

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat, and pyphyex.phyex1d.case.CaseXarray.

Definition at line 47 of file case.py.

◆ get()

pyphyex.phyex1d.case.Case.get ( self,
varname,
slice_idx = None )
Read a variable from the case data

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat, and pyphyex.phyex1d.case.CaseXarray.

Definition at line 42 of file case.py.

Here is the caller graph for this function:

◆ get_interpolator()

pyphyex.phyex1d.case.Case.get_interpolator ( self,
varname,
grid )
Get or build an interpolator for a forcing variable

Reimplemented in pyphyex.phyex1d.case.CaseCommonFormat, and pyphyex.phyex1d.case.CaseXarray.

Definition at line 56 of file case.py.


The documentation for this class was generated from the following file: