OpenWaterFoundation / cdss-app-snodas-tools

Colorado's Decision Support Systems (CDSS) Snow Data Assimilation System (SNODAS) Tools
8 stars 4 forks source link

Must manually include each year in the copyAllToOwfAmazonS3.bat #15

Open egiles16 opened 6 years ago

egiles16 commented 6 years ago

The SNODASDaily_Automated.py Python script runs everyday and processes data files for each day that it is run. Within the SNODASDaily_Automated.py Python script, the copyAllToOwfAmazonS3.bat script is called. The copyAllToOwfAmazonS3.bat script pushes all of the changed data files created by the SNODASDaily_Automated.py Python script to the Amazon S3 account.

In order to push the files up, the copyAllToOwfAmazonS3.bat script uses a sync functionality rather than a copy functionality (Line 47). This is an insurance policy so that all of the already-uploaded data files on Amazon S3 do not accidentally get erased. The downside to the sync functionality is that you have to manually include the years of data files to push up to the S3 account.

On 2018/01/01, the map on the SNODAS application did not display any of the basin data layers. This is because in the copyAllToOwfAmazonS3.bat script, --include *2018* was not in the Line 47 command. As a security net, the new version of the copyAllToOwfAmazonS3.bat script has the years pre-loaded up until 2023. However, in 2024, the same issue will occur within the SNODAS application.