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'.
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'.