Dear all,
I have created a function that enables you to check whether your forecast has been successfully submitted. To use this function you must first upgrade the AI Weather Quest Python package:
python3 -m pip install --upgrade AI_WQ_package
You can then call the AI_WQ_check_submission
function within the forecast_submission
component of the AI_WQ_package
. The function takes all the same variables as creating an empty data array and checks whether the appropriate forecast file is found on our server.
Below is an example checking for a forecast with the initialisation date on the 17th July 2025:
from AI_WQ_package.forecast_submission import AI_WQ_check_submission
AI_WQ_check_submission('tas','20250717','1','ECMWFtest','dynamicalEC',password)
Documentation has been updated on ReadTheDocs: Submitting a Forecast — AI_Weather_Quest 1.0 documentation
I hope this is helpful for participants.
Thanks,
Josh
1 Like
Thanks Joshua, we will give this a try.
Hi Dale,
I know that this function will state that NDIVIA’s contribution to the AI Weather Quest has not been submitted, as I cannot see the files on the dedicated FTP site.
I have asked David to send me his code for submission asap, so we can try and solve the issue.
Kind regards,
Josh
Dear Joshua
I have upgrade the version 2.4.1, when run the code, it shown “ImportError: cannot import name ‘AI_WQ_check_submission’ from ‘AI_WQ_package.forecast_submission’”
Strange. I’ve just updated the package again (v. 2.4.2).
The following code is working fine for me after upgrading the package:
from AI_WQ_package.forecast_submission import AI_WQ_check_submission
AI_WQ_check_submission('tas','20250703','1','AIFS','AIFSgaia',password)
I have asked someone else to also check they can use the function after downloading the latest package version.
Josh
1 Like
Thank you very much. It works well now.
Hi Dale,
I see a successful submission from your team this morning. Do you know what the error when previously attempting submission, so we can make sure other teams don’t make the same mistake.
Thanks,
Josh
Dear Joshua_Talib
I have a question to confirm: If I have already submitted once during a submission cycle, will my submission result be updated to the new one or remain as the original when I submit again.
Hi @Peng_Lu ,
If you resubmit a forecast in the same submission window (i.e. 14th to 17th August inclusive), then the original forecast will be removed and the new forecast will be submitted. Here’s the relevant code in forecast_submission.AI_WQ_forecast_submission:
file = open(final_filename,'rb') # read the forecast file
# as of 6th Dec 2024 - couldn't rewrite over old files so delete if already existing
try:
session.delete(remote_path)
print(f"Existing file '{final_filename}' deleted.")
except ftplib.error_perm:
pass
Best wishes,
Josh
1 Like
Thank you for your clear explanation.