Skip to content

Commit

Permalink
improve warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
lee1043 committed Sep 24, 2024
1 parent 1be5df3 commit ea8151c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcmdi_metrics/graphics/share/read_json_mean_clim.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def read_mean_clim_json_files(
level = int(dict_temp["Variable"]["level"])
if level > 1100:
print(
f"Warning: level is expected in hPa: level {level} looks like it is Pa, thus converting it to hPa by dividing it by 100."
f"Warning: The provided level value {level} appears to be in Pa. It will be automatically converted to hPa by dividing by 100."
)
level = int(level / 100.0)
var = f"{var}-{str(level)}" # always hPa
Expand Down

0 comments on commit ea8151c

Please sign in to comment.