From 7993d4add25a86c7d5209bb0a0c7b165666d7f90 Mon Sep 17 00:00:00 2001 From: tcevaer Date: Mon, 9 Dec 2024 13:21:55 +0100 Subject: [PATCH] Updating metadata for RCM --- coloc_sat/sar_meta.py | 8 ++++++-- coloc_sat/scripts/coloc_between_product_and_mission.py | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/coloc_sat/sar_meta.py b/coloc_sat/sar_meta.py index 4d9ed42..fb1faab 100644 --- a/coloc_sat/sar_meta.py +++ b/coloc_sat/sar_meta.py @@ -181,8 +181,12 @@ def mission_name(self): """ if "RS2" in self.product_name.upper(): return "RADARSAT-2" - elif "RCM" in self.product_name.upper(): - return "RADARSAT Constellation" + elif "RCM1" in self.product_name.upper(): + return "RADARSAT Constellation 1" + elif "RCM2" in self.product_name.upper(): + return "RADARSAT Constellation 2" + elif "RCM3" in self.product_name.upper(): + return "RADARSAT Constellation 3" elif "S1A" in self.product_name.upper(): return "SENTINEL-1 A" elif "S1B" in self.product_name.upper(): diff --git a/coloc_sat/scripts/coloc_between_product_and_mission.py b/coloc_sat/scripts/coloc_between_product_and_mission.py index a50b8f2..d4259e0 100644 --- a/coloc_sat/scripts/coloc_between_product_and_mission.py +++ b/coloc_sat/scripts/coloc_between_product_and_mission.py @@ -7,7 +7,7 @@ def main(): resampling_methods = [method.name for method in rasterio.enums.Resampling] - parser = argparse.ArgumentParser(description="Generate co-locations between a specified product and a mission.") + parser = argparse.ArgumentParser(description="Generate co-locations between a specified product and a mission. Exit codes: 20 = no coloc found. 0 = OK. 1 = unknown error.") parser.add_argument("--product1-id", type=str, help="Path of the first product.") parser.add_argument("--destination-folder", default='/tmp', nargs='?', type=str, help="Folder path for the output.")