harphub / harpIO

IO functions for HARP
https://harphub.github.io/harpIO/
Other
6 stars 16 forks source link

Fix sqlite writing for unknown vertical levels #28

Closed andrew-MET closed 3 years ago

andrew-MET commented 3 years ago

When input data are not on height, pressure or model levels (e.g. surface, mean sea level) the writing to sqlite stops as it doesn't know what to do with the 'level' column as described in #27.

This PR fixes #27 by removing the level column if there is only one level, or keeping it if there are more than one and keeping the name 'level'.