TCTracks.from_FAST duplicates tracks by iterating over unrelated year dimension
Los mantenedores suelen responder en 3 días
@NicolasColombi ya está trabajando en esto.
Desde el 23/3/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
I found that TCTracks.from_FAST multiplies tracks when reading FAST NetCDF files that contain both n_trk and year dimensions.
Observed behavior:
Input FAST file has n_trk = 23000 and year = 46.
TCTracks.from_FAST returns 1058000 tracks.
This equals 23000 × 46, suggesting each track is reconstructed once per year index.
Why:
Loader loops over both dataset.year and dataset.n_trk.
It then selects dataset.sel(n_trk=i, year=year), but key per-track variables (lon_trks, lat_trks, vmax_trks, tc_years, tc_month, tc_basins) are indexed by n_trk (and time), not by year.
So the same track is appended repeatedly for each year entry.
Expected behavior:
Each n_trk should produce one track entry.
Returned track count should match n_trk total (or sum across files), not n_trk × n_year.
Impact:
Memory usage and runtime increase massively.
Suggested fix:
Remove the outer loop over dataset.year.
Iterate only over dataset.n_trk and select track = dataset.sel(n_trk=i).
- Lenguaje dominante
- Jupyter Notebook
- Estrellas
- 478
- Forks
- 166
- Merge medio
- 2 d 31 min
- PR fusionados (30 d)
- 4
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CLIMADA-project/climada_python
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CLIMADA-project/climada_python#1337 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
CLIMADA-project/climada_python#1336 ·
Los mantenedores suelen responder en 3 días
-
CartoDB basemaps now need an API key (somewhat urgent)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
CLIMADA-project/climada_python#1332 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 3 días
-
more than 20 open figuresAbiertowarnings
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
CLIMADA-project/climada_python#1241 ·
Los mantenedores suelen responder en 3 días
-
ResourceWarningAbiertowarnings
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
CLIMADA-project/climada_python#1239 ·
Los mantenedores suelen responder en 3 días