Skip to content

Commit

Permalink
Writes and reads cpasma data in HDF5 grid files
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Nov 1, 2023
1 parent 66558f0 commit a3c0bb7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyscripts/gridue.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def read_gridpars(fname=None):
com.sibdrys = _com['sibdrys'][()]
except:
pass
try:
com.cpasma = _com['cpasma'][()]
except:
pass
gridue.close()


Expand Down Expand Up @@ -152,6 +156,10 @@ def write_gridue(fname=None, runid=None):
_com.create_dataset('sibdrys', data=com.sibdrys)
except:
pass
try:
_com.create_dataset('cpasma', data=com.cpasma)
except:
pass
try:
_com.create_dataset('nlim', data=com.nlim)
_com.create_dataset('xlim', data=com.xlim)
Expand Down

0 comments on commit a3c0bb7

Please sign in to comment.