-
Notifications
You must be signed in to change notification settings - Fork 295
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
Preservation of input data dtype in processing FCI data #2647
Comments
I also checked that saving in |
Trollimage and Pyspectral have been released with the above updates, Satpy release remaining. |
@pnuu could you make a short summary here of the performance benefits of this work? |
I'll run a benchmark with the releases before these changes were made and with the latest versions ( |
Benchmarks. For both cases:
Using previous released versions:
With the changes listed in this issue:
|
I noticed that there were two PRs not listed here that affected the performance:
I'll run the test with these fixes incrementally keeping the other packages at their previous release versions. |
Meh, tracking the merge order is too tedious to see what happened when. In any case, the removal of duplicates from the FCI reader config shouldn't have that much of a effect compared to the previous case. |
Thanks for driving this @pnuu ! |
Summarising, if I see this correctly, with |
Yes, that's correct. |
Recently we've been creating a lot of pull requests to make Satpy preserve the data type of the FCI input data as long as possible. The main thing is not to convert
float32
data tofloat64
without a good reason to make processing to use less memory and be faster in general when the arrays are not converted back and forth.This issue collects all of the issues/pull requests together.
Readers
Satpy
fci_l1c_nc
: Keep FCI data as 32-bit floats #2637Compositors and related packages
Satpy
DayNightCompositor
: Keep original dtype in DayNightCompositor #2640float64
Enhancements and related packages
Trollimage
linear_stretch
/crude_stretch
: Keep the original dtype of the data when stretching trollimage#150enhance=False
to be converted tofloat64
before saving (and again converted to uint8)invert()
enhancementgamma
: Preserve dtypes in XRImage "enhancements" trollimage#151Modifiers and related packages
Satpy
Pyspectral
xr.DataArray
s as inputsThe text was updated successfully, but these errors were encountered: