We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d805d8a commit 4427e17Copy full SHA for 4427e17
cloudnetpy/plotting/plotting.py
@@ -1184,10 +1184,11 @@ def _reformat_units(unit: str) -> str:
1184
1185
1186
def _get_max_gap_in_minutes(figure_data: FigureData) -> float:
1187
- source = getattr(figure_data.file, "source", "").lower()
1188
file_type = getattr(figure_data.file, "cloudnet_file_type", "")
+ if file_type == "model":
1189
+ res_h = np.min(np.diff(figure_data.time))
1190
+ return round(60 * res_h)
1191
max_allowed_gap = {
- "model": 181 if "gdas1" in source or "ecmwf open" in source else 61,
1192
"mwr-multi": 35,
1193
"weather-station": 12,
1194
"doppler-lidar-wind": 75,
0 commit comments