diff --git a/src/data_processing/subcmds/process_cloudnet.py b/src/data_processing/subcmds/process_cloudnet.py index 5a1f81ee..a6297ee4 100755 --- a/src/data_processing/subcmds/process_cloudnet.py +++ b/src/data_processing/subcmds/process_cloudnet.py @@ -238,10 +238,10 @@ def _get_input_files_for_voodoo(self) -> list[str]: def process_level2(self, uuid: Uuid, product: str) -> tuple[Uuid, str]: if product == "mwr-single": cat_file = "mwr-l1c" - module_name = "mwr_single" + module_name = "mwr_tools" elif product == "mwr-multi": cat_file = "mwr-l1c" - module_name = "mwr_multi" + module_name = "mwr_tools" elif product == "classification-voodoo": cat_file = "categorize-voodoo" module_name = "classification" @@ -260,7 +260,8 @@ def process_level2(self, uuid: Uuid, product: str) -> tuple[Uuid, str]: raise MiscError(f"Missing required input file: {cat_file}") self._check_source_status(product, meta_record) module = importlib.import_module(f"cloudnetpy.products.{module_name}") - fun = getattr(module, f"generate_{module_name}") + prod = product.replace("-", "_") + fun = getattr(module, f"generate_{prod}") uuid.product = fun(categorize_file, self.temp_file.name, uuid=uuid.volatile) identifier = utils.get_product_identifier(product) return uuid, identifier diff --git a/src/data_processing/utils.py b/src/data_processing/utils.py index 5ae86c41..aed08af3 100644 --- a/src/data_processing/utils.py +++ b/src/data_processing/utils.py @@ -365,9 +365,24 @@ def get_fields_for_plot(cloudnet_file_type: str) -> tuple[list, int]: "tb_13", ] case "mwr-single": - fields = ["lwp", "iwv", "temperature", "absolute_humidity"] + fields = [ + "lwp", + "iwv", + "temperature", + "absolute_humidity", + "relative_humidity", + "potential_temperature", + "equivalent_potential_temperature", + ] + max_alt = 6 case "mwr-multi": - fields = ["temperature", "potential_temperature"] + fields = [ + "temperature", + "relative_humidity", + "potential_temperature", + "equivalent_potential_temperature", + ] + max_alt = 6 case "radar": fields = [ "Zh",