JuliaSpace / SatelliteToolbox.jl

A toolbox for satellite analysis written in julia language.
MIT License
249 stars 33 forks source link

KP tables do not download #38

Closed abukowski21 closed 4 years ago

abukowski21 commented 4 years ago

When runninginit_solar_indices() the kp tables do not download.

Maybe it would be best to grab them from a different source? Or add an option when the user does not need kp data.

ronisbr commented 4 years ago

Thanks! The location of yearly files in the FTP has been changed. I committed a fix, can you please test using master?

julia> using SatelliteToolbox
[ Info: Precompiling SatelliteToolbox [6ac157d9-b43d-51bb-8fab-48bf53814f4a]

julia> init_space_indices(wdcfiles_oldest_year = 2015)
[ Info: Downloading file 'DTCFILE.TXT' from 'http://sol.spacenvironment.net/jb2008/indices/DTCFILE.TXT' with cURL.
[ Info: Downloading file 'fluxtable.txt' from 'ftp://ftp.seismo.nrcan.gc.ca/spaceweather/solar_flux/daily_flux_values/fluxtable.txt' with cURL.
[ Info: Downloading file 'SOLFSMY.TXT' from 'http://sol.spacenvironment.net/jb2008/indices/SOLFSMY.TXT' with cURL.
[ Info: Downloading file 'kp2017.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2017.wdc' with cURL.
[ Info: Downloading file 'kp2015.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2015.wdc' with cURL.
[ Info: Downloading file 'kp2019.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2019.wdc' with cURL.
[ Info: Downloading file 'kp2016.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2016.wdc' with cURL.
[ Info: Downloading file 'kp2020.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2020.wdc' with cURL.
[ Info: Downloading file 'kp2018.wdc' from 'ftp://ftp.gfz-potsdam.de/pub/home/obs/kp-ap/wdc/yearly/kp2018.wdc' with cURL.
abukowski21 commented 4 years ago

Perfect! Thanks