-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modified export function to avoid change of attribute names, and added test about fill values #526
Conversation
…very time a nansat object was opened
… I've changed it to a debug message.
…he export function instead
… issue when fill values are not correctly picked up
…ute names without 'GDAL_'
try: | ||
import xarray as xr | ||
except: | ||
warnings.warn("'xarray' needs to be installed for Exporter.xr_export to work.") | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
@@ -18,6 +18,7 @@ | |||
import tempfile | |||
import datetime | |||
import warnings | |||
import importlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
NetCDF file name | ||
""" | ||
# Open new file to edit variable names | ||
ds = Dataset(filename, 'r+') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use with..
del_attrs = [] | ||
rename_attrs = [] | ||
# Open new file to edit attribute names | ||
ds = Dataset(filename, 'r+') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use with
…'CF-1.5' which is obviously wrong. This is now deleted. Same goes for the history. That should also be handled in the processing software rather then by the gdal netcdf driver.
In addition to the above, can you pleae fix the following error:FAIL: test_export2thredds_longlat_dict (nansat.tests.test_exporter.ExporterTest)Traceback (most recent call last): Ran 284 tests in 19.624s FAILED (failures=1) |
I could do all these changes myself in the branch https://github.com/nansencenter/nansat/tree/issue525-new-export |
Changes addressed in #528 |
Should close #525