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
Make export pipeline logs more readable #111
Conversation
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.
Not much to review, the changes make sense to me. One question, should this be parametrizable via the pipeline? I guess not, but just wanted to point it out anyway.
i was thinking about it, but I didn't see much point in keeping the old logs. Also not having them silenced breaks the tqdm |
I talked to the GDAL wizards and they informed me that we are idiots (which we knew) and are using a cogification method for old GDAL and/or planar tiffs, which are not suitable for us (which we didn't know). So i switched to the recommended way of cogification for newer GDAL versions. |
Did you check if the GDAL version used is the appropriate one? Should be GDAL 3.1 or newer. |
I remembered about one more potential issue. if you're using deflate compression with Float32 values, you should set the predictor to 3 from docs:
|
GDAL 3.1 was released in 2020. Do you think we need to check the version and raise an exception if the GDAL version is older than that?
Hmmm, at this point perhaps the utility functions should have a |
It might make sense, because older versions of GDAL had some mismatch issues where the resulting tiff could contain an offset. Not sure how relevant it is due to it being released in 2020, but I imagine it could happen.. Some more info I remember from https://git.sinergise.com/sentinel-core/java/-/issues/1400
What if we use the |
how in the absolute hell did i miss that i have |
Silences output of gdal calls in favor of tqdm, making logs much more readable.
In the logs there was a constant warning:
I have removed this option in this MR, but it should be investigated if that is really the way to go. Link to cogification docs