|
38 | 38 | from creodias_finder import download, query |
39 | 39 | from dateutil import rrule |
40 | 40 |
|
| 41 | +from efast import binning |
41 | 42 | import efast.efast as efast |
42 | 43 | import efast.s2_processing as s2 |
43 | 44 | import efast.s3_processing as s3 |
44 | 45 |
|
| 46 | +SKIP_CREDENTIALS = True |
| 47 | + |
45 | 48 | # CDSE credentials to download Sentinel-2 and Sentinel-3 imagery |
46 | 49 | def get_credentials_from_env(): |
47 | 50 | username = os.getenv("CDSE_USER") |
48 | 51 | password = os.getenv("CDSE_PASSWORD") |
49 | | - if username is None or password is None: |
| 52 | + if not SKIP_CREDENTIALS and (username is None or password is None): |
50 | 53 | raise RuntimeError( |
51 | 54 | "Please make sure that CDSE credentials are available in the environment.\n" |
52 | 55 | "In order to proceed, set 'CDSE_USER' and 'CDSE_PASSWORD' accordingly." |
@@ -130,7 +133,7 @@ def main( |
130 | 133 | else: |
131 | 134 | with open(DOWNLOAD_MARKER, "r") as fp: |
132 | 135 | instrument = fp.readline() |
133 | | - logger.info(f"No downloads performed, because {DOWNLOAD_MARKER} exists. Read instrument '{instrument}' form marker file.") |
| 136 | + logger.info(f"No downloads performed, because {DOWNLOAD_MARKER} exists. Read instrument '{instrument}' from marker file.") |
134 | 137 |
|
135 | 138 | if not S2_PRE_MARKER.exists(): |
136 | 139 | logger.info("Performing pre-processing on Sentinel-2 images") |
@@ -239,7 +242,18 @@ def s3_preprocessing( |
239 | 242 | s3_timings: list[Tuple[str, float]] = [] |
240 | 243 | # Sentinel-3 pre-processing |
241 | 244 | with Timer(dsc="S3 binning", logger=logger, add_to=s3_timings): |
242 | | - s3.binning_s3( |
| 245 | +# s3.binning_s3( |
| 246 | +# s3_download_dir, |
| 247 | +# s3_binning_dir, |
| 248 | +# footprint=footprint, |
| 249 | +# s3_bands=s3_bands, |
| 250 | +# instrument=instrument, |
| 251 | +# aggregator="mean", |
| 252 | +# snap_gpt_path=snap_gpt_path, |
| 253 | +# snap_memory="24G", |
| 254 | +# snap_parallelization=1, |
| 255 | +# ) |
| 256 | + binning.binning_s3_py( |
243 | 257 | s3_download_dir, |
244 | 258 | s3_binning_dir, |
245 | 259 | footprint=footprint, |
|
0 commit comments