Problems with reading xarray-written netcdf file with C++ software #5052
Unanswered
stella-bourdin
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm not really familiar with the encoding part of xarray, but to help you we would need to compare the output of xr.open_dataset("faster.nc").info()
xr.open_dataset("slower.nc").info() where |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using a C++ Software called TempestExtremes (https://github.com/ClimateGlobalChange/tempestextremes) for my research, which reads NetCDF files to identify tropical cyclones tracks based on a user-defined set of criteria.
For one of my criteria, I needed to compute a field from my original data, that I then wrote back into a NetCDF for it to be read by TempestExtremes.
I computed the field in python using xarray for manipulation. The file is good and the field looks good, but for some reason, TempestExtremes takes a lot more time to read it than any other file. I was wondering whether this was a known issue due to the encoding of the file or anything... ? The size of the file being similar to the others.
If it's useful, the new field and the file are computed using the code here : https://github.com/stella-bourdin/dynamicoPy/blob/cyclone_tracking/dynamicopy/compute.py and especially the compute_OWZ_from_files function.
Thank you for your help !
Stella
Beta Was this translation helpful? Give feedback.
All reactions