Skip to content

Commit

Permalink
Issue warning saying that we assume coordinates are named 'lat' and '…
Browse files Browse the repository at this point in the history
…lon'
  • Loading branch information
ealerskans committed Dec 13, 2024
1 parent 98673ee commit 8940e82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mllam_data_prep/derived_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 8940e82

Please sign in to comment.