eodal.downloader.utils.unzip_datasets module

Helper functions for the downloader package.

Copyright (C) 2022 Lukas Valentin Graf

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

eodal.downloader.utils.unzip_datasets.unzip_datasets(download_dir: Path, platform: str, remove_zips: bool | None = True) None[source]

Helper function to unzip Sentinel-1 and 2 mapper once they are downloaded from CREODIAS. Works currently on *nix system only and requires unzip to be installed on the system.

Parameters:
  • download_dir – directory where the zipped mapper in .SAFE format are located

  • platform – either ‘S1’ (Sentinel-1) or ‘S2’ (Sentinel-2)

  • remove_zips – If set to False the zipped .SAFE mapper will be kept, otherwise (Default) they will be removed