We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 894bb07 commit 45996dbCopy full SHA for 45996db
climada/hazard/tc_tracks.py
@@ -1645,9 +1645,7 @@ def from_FAST(cls, folder_name: str):
1645
1646
LOGGER.info(f"Reading {len(get_file_names(folder_name))} files.")
1647
data = []
1648
- for file in get_file_names(folder_name):
1649
- if Path(file).suffix != ".nc":
1650
- continue
+ for file in Path(folder_name).glob("*.nc"):
1651
with xr.open_dataset(file) as dataset:
1652
for year in dataset.year:
1653
for i in dataset.n_trk:
0 commit comments