diff --git a/json_schemas/schema_MultiSlc.json b/json_schemas/schema_MultiSlc.json index 808d2b8f56acf52c69843b45c8187cd5af6d8b6a..45a21150d10e9eb5dad27fba1e8521a78eed6c45 100644 --- a/json_schemas/schema_MultiSlc.json +++ b/json_schemas/schema_MultiSlc.json @@ -40,7 +40,7 @@ { "type": "object", "additionalProperties": false, - "properties": {"clean": {"type": "boolean", "default": true}, + "properties": {"clean": {"type": "string", "default": "yes"}, "optram": {"type": "number", "default": 4000}} } }, diff --git a/json_schemas/schema_MultiSlc_IW.json b/json_schemas/schema_MultiSlc_IW.json index 04fdd7d802a2fed1d5f01e72b6c919ecfcf020eb..774f1cd9372bdabfc37e0dd30ae8b562e21549c1 100644 --- a/json_schemas/schema_MultiSlc_IW.json +++ b/json_schemas/schema_MultiSlc_IW.json @@ -40,7 +40,7 @@ { "type": "object", "additionalProperties": false, - "properties": {"clean": {"type": "boolean", "default": true}, + "properties": {"clean": {"type": "string", "default": "yes"}, "burst_index": {"type": "string", "default": "0-8"}, "optram": {"type": "number", "default": 4000}} } diff --git a/python_src/SAR_MultiSlc.py b/python_src/SAR_MultiSlc.py index 33f309f3250eac90ad0bf08972f131a0ae897f79..c3e68d880afe5a1fa61416c90db7ce1650aa2431 100644 --- a/python_src/SAR_MultiSlc.py +++ b/python_src/SAR_MultiSlc.py @@ -109,13 +109,14 @@ if __name__ == "__main__": exclude = dict_Global['in']['Exclude'] relative_orbit = "" manifest = "" - light_version = True + light_version = "yes" ram = 4000 if 'parameter' in dict_Global: if 'optram' in dict_Global['parameter']: ram = dict_Global['parameter']['optram'] if 'clean' in dict_Global['parameter']: light_version = dict_Global['parameter']['clean'] + light_version = func_utils.str2bool(light_version) if master_ext[0] == "h5" : # Cosmo case master_Image = func_utils.get_imgFromDir(dict_Global['in']['Master_Image'], dict_Global['in']['Input_Path']) diff --git a/python_src/SAR_MultiSlc_IW.py b/python_src/SAR_MultiSlc_IW.py index ef8c738c4fb050edfe7be43567291094ac9c98a8..2ed1cb87481e182a9a71f44f4cebde54251b5fd3 100644 --- a/python_src/SAR_MultiSlc_IW.py +++ b/python_src/SAR_MultiSlc_IW.py @@ -112,7 +112,7 @@ if __name__ == "__main__": iw = master_Image_base.split("-")[1] burst_index = "0-8" ram = 4000 - light_version = True + light_version = "yes" if 'parameter' in dict_Global: if 'optram' in dict_Global['parameter']: ram = dict_Global['parameter']['optram'] @@ -120,6 +120,7 @@ if __name__ == "__main__": light_version = dict_Global['parameter']['clean'] if 'burst_index' in dict_Global['parameter']: burst_index = dict_Global['parameter']['burst_index'] + light_version = func_utils.str2bool(light_version) print(burst_index)############################################################################### exclude = "-9999" if 'Exclude' in dict_Global['in']: