GeoscienceAustralia / ga_sar_workflow

InSAR processing workflow used by Geoscience Australia
Apache License 2.0
3 stars 1 forks source link

error in slc-archive slc-ingestion #84

Closed Oceancolour-RG closed 4 years ago

Oceancolour-RG commented 4 years ago

When generating yaml files for 2017-12 the following error occurred:

TypeError: if parameter 'target' is a file, it must be a zip or tar archive: /g/data/fj7/Copernicus/Sentinel-1/C-SAR/SLC/2017/2017-12/S1A_IW_SLC__1SDV_20171206T194013_20171206T194040_019586_021441_8740.png

Clearly the code was expecting a zip file, but a png file was given instead causing the slc-archive slc-ingestion command to crash. This error is generated from the finder function (from spatialist.ancillary import finder)

The command used was: slc-archive slc-ingestion \ --slc-dir /g/data/fj7/Copernicus/Sentinel-1/C-SAR/SLC \ --database-name /g/data/up71/projects/InSAR-ARD/yamls/S1_2017_12.db \ --year 2017 \ --month 12 \ --save-yaml \ --yaml-dir /g/data/up71/projects/InSAR-ARD/yamls \ --log-pathname /g/data/up71/projects/InSAR-ARD/yamls/logs/create_yaml_2017_12_log.jsonl

sixy6e commented 4 years ago

resolved via #85