You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tc tracks downloads files automatically from an FTP server of ECMWF. It used to work and now it fails.
The files are named differently now as the were before and the filter in
test = TCForecast() test.fetch_ecmwf(remote_dir='20250115000000')
works, wereas test = TCForecast() test.fetch_ecmwf()
will fail with a FileNotFoundError, this used to work.
needs to be adapted, to correctly filter the filenames currently in the ftp.
PS: the working example will only work for +-14 days. Afterwards the respective files will no longer be available at the ftp server of ECMWF
PPS: the ci_overnight test of climada_petals could be adapted to test this ftp connection.
The text was updated successfully, but these errors were encountered:
The provided test works for me in an environment with climada_python v4.1.1 and climada_petals v4.1.0 installed.
It also works sometimes on n2o, with recent climada versions: when running a bash script to execute fetch_ecmwf() in the command line it works, when running the same bash script with a cronjob it is working sometimes and sometimes not.
When it is not working I get the following error:
Traceback (most recent call last):
File "/home/climada_workspace/climada_petals/climada_petals/hazard/tc_tracks_forecast.py", line 215, in fetch_bufr_ftp
raise FileNotFoundError(msg)
FileNotFoundError: No tracks found at ftp://{}/{}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/wcr/tc_imp_forecast/TC_imp_forecast/git_repo/TC_impact_forecast_sandbox/plot_tracks_overview_daily.py", line 37, in <module>
tr_fcast.fetch_ecmwf()
File "/home/climada_workspace/climada_petals/climada_petals/hazard/tc_tracks_forecast.py", line 149, in fetch_ecmwf
files = self.fetch_bufr_ftp(target_dir, remote_dir)
File "/home/climada_workspace/climada_petals/climada_petals/hazard/tc_tracks_forecast.py", line 233, in fetch_bufr_ftp
raise type(err)('Error while downloading BUFR TC tracks: ' + str(err)) from err
FileNotFoundError: Error while downloading BUFR TC tracks: No tracks found at ftp://{}/{}
tc tracks downloads files automatically from an FTP server of ECMWF. It used to work and now it fails.
The files are named differently now as the were before and the filter in
test = TCForecast()
test.fetch_ecmwf(remote_dir='20250115000000')
works, wereas
test = TCForecast()
test.fetch_ecmwf()
will fail with a FileNotFoundError, this used to work.
Possible solution:
The filter in
climada_petals/climada_petals/hazard/tc_tracks_forecast.py
Line 210 in eaa25c9
PS: the working example will only work for +-14 days. Afterwards the respective files will no longer be available at the ftp server of ECMWF
PPS: the ci_overnight test of climada_petals could be adapted to test this ftp connection.
The text was updated successfully, but these errors were encountered: