noaa-ocs-modeling / EnsemblePerturbation

perturbation of coupled model input over a space of input variables
https://ensembleperturbation.readthedocs.io
Creative Commons Zero v1.0 Universal
7 stars 3 forks source link

Allowing for downloading real-time cyclone forecasts/best-tracks #26

Closed WPringle closed 3 years ago

WPringle commented 3 years ago

Introducing mode option for ATCF to signify historical (default) or real-time storm

One problem for testing is that we need to know the storm name and initialization time. Do you have any ideas how to ping this information to get latest a-deck file in ftp://ftp.nhc.noaa.gov/atcf/aid_public/, and b-deck in ftp://ftp.nhc.noaa.gov/atcf/btk/?

ghost commented 3 years ago

One problem for testing is that we need to know the storm name and initialization time. Do you have any ideas how to ping this information to get latest a-deck file in ftp://ftp.nhc.noaa.gov/atcf/aid_public/, and b-deck in ftp://ftp.nhc.noaa.gov/atcf/btk/?

looks like we can use ftplib and ftp.dir() to list files https://www.thepythoncode.com/article/list-files-and-directories-in-ftp-server-in-python I'll work on a thing

ghost commented 3 years ago

@WPringle this function should do what you want: https://github.com/noaa-ocs-modeling/EnsemblePerturbation/blob/c610faf08c243075cc3d7a303a201da746098ec6/ensembleperturbation/tropicalcyclone/atcf.py#L873-L889

WPringle commented 3 years ago

Hey thanks @zacharyburnettNOAA for your help on the ftp! So I see the test is only trying to test the Florence best track now?

ghost commented 3 years ago

Hey thanks @zacharyburnettNOAA for your help on the ftp! So I see the test is only trying to test the Florence best track now?

yeah that was my fault, I commented something out to debug

fixed in f0c8f8e2f86c9b0285ffa2eeba7bb0e520a03577