Skip to content

Commit 9919d11

Browse files
Update tc_tracks.py
1 parent 870ec7c commit 9919d11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

climada/hazard/tc_tracks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3029,12 +3029,12 @@ def compute_track_density(
30293029

30303030
limit_ratio = 1.12 * 1.1 # record tc speed 112km/h -> 1.12°/h + 10% margin
30313031

3032-
if float(tc_track.data[0].time_step[0].item()) > res / limit_ratio:
3033-
warnings.warn(
3034-
"The time step is too big for the current resolution. For the desired resolution, \n"
3035-
f"apply a time step of {res/limit_ratio}h."
3036-
)
3037-
elif res < 0.1:
3032+
#if tc_track.data[0].time_step[0].item() > res / limit_ratio:
3033+
# warnings.warn(
3034+
# "The time step is too big for the current resolution. For the desired resolution, \n"
3035+
# f"apply a time step of {res/limit_ratio}h."
3036+
#)
3037+
if res < 0.1:
30383038
warnings.warn(
30393039
"The resolution is too high. The computation might take several minutes \n"
30403040
"to hours. Consider using a resolution below 0.1°."

0 commit comments

Comments
 (0)