Open rabernat opened 8 years ago
this includes PTRACER output
I added new option "diagnostics" to resolve this and some other issues (2D/3D variables with the same names mixed in one data directory). With this option we can use custom version of the default_diagnostics.log where all the variables described:
ds = open_mdsdataset('data',grid_dir='grid',
prefix=['prefix'], geometry='llc',
diagnostics='custom_diagnostics.log')
Could you please submit a pull request for this feature?
Sent from my iPhone
On Jun 25, 2017, at 2:45 AM, mobigroup notifications@github.com wrote:
I added new option "diagnostics" to resolve this and some other issues (2D/3D variables with the same names mixed in one data directory): mds_store.py.zip
With this option we can use custom version of the default_diagnostics.log where all the variables described:
ds = open_mdsdataset('data',grid_dir='grid', prefix=['prefix'], geometry='llc', diagnostics='custom_diagnostics.log') — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
@mobigroup: just following up. Would still love to get your PR.
We read metadata from
available_diagnostics.log
. However, "non-diagnostic" output files (e.g. instantaneous state and time-average files output according todumpFreq
andtaveFreq
) are not described inavailable_diagnostics.log
. The solution has been to hard-code this metadata invariables.py
: https://github.com/xgcm/xmitgcm/blob/master/xmitgcm/variables.pyBut
variables.py
is not complete: it is missing output related to EXF, seaice, and many other packages.The solution is very simple: someone needs to make a pull request adding the missing metadata. The format for the metadata is straightforward and can be inferred from the other entries in
variables.py
.This is related to xgcm/xgcm#41. cc: @jklymak