-
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
Modify export function #525
Comments
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 23, 2022
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 23, 2022
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 23, 2022
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 25, 2022
…he export function instead
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 25, 2022
mortenwh
changed the title
Make new export function that uses xarray instead of gdal
Modify export function
Dec 25, 2022
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 25, 2022
… issue when fill values are not correctly picked up
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 26, 2022
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Dec 27, 2022
…ute names without 'GDAL_'
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Jan 4, 2023
…'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.
Merged
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
…fill values are not correctly picked up
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
…ch 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.
Merged
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
…fill values are not correctly picked up
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
akorosov
pushed a commit
that referenced
this issue
Jan 5, 2023
…ch 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.
mortenwh
added a commit
to mortenwh/nansat
that referenced
this issue
Jan 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
GDAL changes the attribute names by prepending "GDAL_" and adds band numbers to the variable names. This should not be done. Also, it is a bit unclear to me if
np.nan
and netCDF fill values are treated correctly. This seems to be related to #123 as well.Regarding the attribute and variable names, I suggest adding some "cleaning" functions at the end of the export function.
A PR related to this will also contain some other minor changes that I've made in my own fork.
Regarding the fill values, I have played with the
arctic.nc
test file. It turns out the fill values in that file are -10000 and not -32767 as given by the metadata:But netCDF4 treats the data correctly:
Opening the file with nansat using python3.7 and GDAL3.0.4:
And we don't have information to mask the invalid data in Nansat
With python3.9 and GDAL3.4.1:
And here we have the same fill value in nansat:
The nansat code is the same but I'm wondering if gdal v3.4.1 masks values outside the interval
valid_min:valid_max
.What to do, except being careful when using nansat?
The text was updated successfully, but these errors were encountered: