openclimatefix / nowcasting_dataset

Prepare batches of data for training machine learning solar electricity nowcasting data
https://nowcasting-dataset.readthedocs.io/en/stable/
MIT License
25 stars 6 forks source link

Download additional UK Met Office UKV NWPs #196

Closed JackKelly closed 3 years ago

JackKelly commented 3 years ago

Detailed Description

We already have several years of UKV NWPs. But we should grab the most recent data, so it covers the same timespan as the ESO PV forecasts.

Possible Implementation

Use FileZilla to FTP from CEDA to leonardo. (I won't install FileZilla on leonardo because that will also install xorg etc. Instead I'll run FileZilla on my NUC, and mount leonardo on the NUC. If this doesn't work, consider using LFTP running on leonardo)

JackKelly commented 3 years ago

This seems to work in /etc/fstab to mount leonardo on my NUC:

jack@192.168.0.216:/    /mnt/leonardo    fuse.sshfs    rw,user,exec,allow_other    0    0

I'm not sure if rw,user,exec are necessary. allow_other is definitely necessary.

JackKelly commented 3 years ago

Not using FileZilla. Instead, using wget running on leonardo (in a screen session):

The command below ignores:

Run this in the local directory for 2021 data:

wget --user=<username> --password=<password> 
--recursive -nH --cut-dirs=5 --no-clobber 
--reject-regex "[[:digit:]]{8}(03|09|15|21)00.*\.grib$" 
--reject-regex "T120\.grib$" 
--reject-regex "Wholesale5.*\.grib$"
ftp://ftp.ceda.ac.uk/badc/ukmo-nwp/data/ukv-grib/2021
JackKelly commented 3 years ago

All UKV NWP data should be about 24 TBytes for:

JackKelly commented 3 years ago

leonardo has been downloading UKV NWPs for about a day now. It looks like it can download about 6 months of data per day. I'm starting with 2021, then 2020, then 2019, etc...

JackKelly commented 3 years ago

Finished downloading raw NWP data for 2016 to 2021. Folder sizes:

jack@leonardo:/mnt/storage_b/data/ocf/solar_pv_nowcasting/nowcasting_dataset_pipeline/NWP/UK_Met_Office/UKV/native$ du -h --max-depth=1 .
2.0T    ./2016
3.5T    ./2017
4.0T    ./2018
4.0T    ./2019
3.9T    ./2020
3.0T    ./2021
21T     .