MetOffice / weather_datahub_utilities

Utilities for customers to use with the Weather DataHub
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

cda_download.py "--runs latest" fails for a new order #25

Open IoanaLogafatu opened 5 months ago

IoanaLogafatu commented 5 months ago

atmospheric_order_download / cda_download.py

This is more of a handy hint for new users, but I would have expected the script to detect this was my first run and download all available data. Instead, I was getting the following message ad infinitum, even though 24 hours had passed and three sets of data were waiting for me.

WARNING: No runs for order o99999999999were found. Don't expect any data.

I eventually realised, removed the "--runs latest" option, and downloaded my initial data.

Once some data has been downloaded, the last run date is set, and "--runs latest" can be put back.

(It would be nice to have a space after the order number).

toeksterre commented 4 months ago

Have the same issue. I have downloaded runs without "--runs latest" and got all model runs available. However how do you ensure to only download the latest run each time?

IoanaLogafatu commented 4 months ago

Have the same issue. I have downloaded runs without "--runs latest" and got all model runs available. However how do you ensure to only download the latest run each time?

Once you have downloaded an initial set of data, you will be okay with putting "--runs latest" back.

It needs a last download date to compare against, but once that is available, it works.

toeksterre commented 4 months ago

Thanks for your reply. I also just figured it out. It checks against your folder "latest" and the included txt file what was the latest run that was downloaded and returns empty if already downloaded