From 8940e82c9383486af88e5c14d16f2457c5f2c50f Mon Sep 17 00:00:00 2001 From: ealerskans Date: Fri, 13 Dec 2024 09:53:06 +0000 Subject: [PATCH] Issue warning saying that we assume coordinates are named 'lat' and 'lon' --- mllam_data_prep/derived_variables.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mllam_data_prep/derived_variables.py b/mllam_data_prep/derived_variables.py index 586f412..1b275fd 100644 --- a/mllam_data_prep/derived_variables.py +++ b/mllam_data_prep/derived_variables.py @@ -37,6 +37,10 @@ def derive_variables(ds, derived_variables, chunking): derived_variable_attributes = derived_variable.attributes # Separate the lat,lon from the required variables as these will be derived separately + logger.warning( + "Assuming that the lat/lon coordinates are given as variables called" + " 'lat' and 'lon'." + ) latlon_coords_to_include = {} for key in list(required_kwargs.keys()): if key in ["lat", "lon"]: