Fixes a bug in model2netcdf.ED2() where put_E_values() would fail because the dimensions were wrong when a PFT was missing from ED2 output .h5 files.
Motivation and Context
I was previously making the assumption that all PFTs would show up in all outputs, but apparently they can "disappear" for a few months and then come back. This may be an ED2 bug, but for now, I figured it would be best to write NAs for temporarily missing PFTs so that the dimensions get figured out correctly and .nc files get created.
Review Time Estimate
[x] Immediately
[ ] Within one week
[ ] When possible
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My change requires a change to the documentation.
Description
Fixes a bug in
model2netcdf.ED2()
whereput_E_values()
would fail because the dimensions were wrong when a PFT was missing from ED2 output .h5 files.Motivation and Context
I was previously making the assumption that all PFTs would show up in all outputs, but apparently they can "disappear" for a few months and then come back. This may be an ED2 bug, but for now, I figured it would be best to write
NA
s for temporarily missing PFTs so that the dimensions get figured out correctly and .nc files get created.Review Time Estimate
Types of changes
Checklist: