ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
75 stars 21 forks source link

Add capability to read from zip compressed SAFE files #23

Closed gillins closed 3 months ago

gillins commented 5 years ago

Original report by Johan Mollevik (Bitbucket: [Johan Mollevik](https://bitbucket.org/Johan Mollevik), ).


Hi

Now that the SAFE format is suported an added feature would be support for reading directly from zip compressed SAFE archives. This is something which several graphical GIS programs does quite happily (SNAP and QGIS for example) and from my knowledge of the zip format should be quite doable.

The gain for doing this would be space savings at the processing machine and simplified processing as the zip files are whats downloaded from ESA.

Thanks a lot for maintaining this for the comunity

gillins commented 5 years ago

Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).


Thanks Johan,

yes, this would probably be a nice convenience, although not a high priority right now. I agree that it sounds quite doable.

I will keep this issue open until we have a chance to look at it. Or, if you are able to have a go, feel free to submit a pull request.

What behaviour would you suggest if the zip file is in the old multi-tile format? Do you think it is worth supporting that?

Neil

gillins commented 5 years ago

Original comment by Johan Mollevik (Bitbucket: [Johan Mollevik](https://bitbucket.org/Johan Mollevik), ).


I would probably not support the old format initially. That might be something to do later if anyone feel the need for it.

Thanks for a quick response

neilflood commented 3 months ago

Just for the record, I think I never got back to this because the additional work of reading not just the images but also the XML files etc., from the zipped SAFE file, but only for the case of Sentinel-2, seemed more trouble than it was worth. Unzipping the archive is not really a serious hurdle. I would reconsider if anyone made a good case, though.