Ah, thanks. That actually is an error. I’m using different environment names in the pre_and_post script and the run_AMET_batch_scripts.csh script.
OK, the simple fix is to edit your batch script config file. You can find it here.
Open that file and make the change below.
start_date <- gsub(’-’,’’,Sys.getenv(“AMET_SDATE”))
end_date <- gsub(’-’,’’,Sys.getenv(“AMET_EDATE”))
start_date <- gsub(’-’,’’,Sys.getenv(“START_DATE_H”))
end_date <- gsub(’-’,’’,Sys.getenv("END_DATE_H))
Then try running your script again. Hopefully that fixes the error. Note that if you make this change, you should change the environment names in the run_AMET_batch_scripts.csh from AMET_SDATE and AMET_EDATE to START_DATE_H and END_DATE_H as well in case you end up running that script at some point.
I’ll tag this as something I need to update in the next AMET release. Let me know if this fixes your problem or not.