# AMET\_v1.5 (script db)

**URL:** <https://forum.cmascenter.org/t/amet-v1-5-script-db/4315>\
**Category:** AMET\
**Created:** [August 21, 2023, 3:39am UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315 "2023-08-21T03:39:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [August 21, 2023, 3:39am UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/1 "2023-08-21T03:39:28Z")

</div>

Hello. I am trying to run AMET\_v1.5 but there was no script for post only.  
I cannot use pre-and-post script because it is so slow with the large CMAQ files.  
Is it possible to submit the job with pre-post script or should I just run in the server?  
or Will AMET\_v1.4 script be compatible with AMET\_v1.5 version?  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/f/fb566866f23466fe9612afce798231cedac8fafb.png)

---

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [August 22, 2023, 2:04pm UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/2 "2023-08-22T14:04:11Z")

</div>

![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2162be3eaf79142f1073f48a04210289a619d389.png)  
I got this error message so is it possible to run AMET\_v15 with AMET\_v14 db script?

---

<div class="post-metadata">

**Author:** ![wyat.appel](https://avatars.discourse-cdn.com/v4/letter/w/3d9bf3/32.png) [@wyat.appel](https://forum.cmascenter.org/u/wyat.appel)\
**Post date:** [August 25, 2023, 8:25pm UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/3 "2023-08-25T20:25:20Z")

</div>

The pre-and-post script provided with AMETv1.5 includes all the functions of the post-only script provided with AMETv1.4, but with the ability to also run combine (note that AMETv1.4 included a similar pre-and-post script as in AMETv1.5). So, if you’re just trying to accomplish the functions of the post-only script from AMETv1.4, you can do that using the pre\_and\_post script that is provided with AMETv1.5. You can simply use the flags to turn on-and-off the functions you want the script to perform.

The post-only script in AMETv1.4 starts after CMAQ has been run and the combine files have been created. To recreate the same function with the pre-and-post script provided with AMETv1.5, you can simply set the RUN\_COMBINE and RUN\_HR2DAY flags to F. Setting those to F assumes that you’ve already created the combine files required. You can then set the WRITE\_SITEX, RUN\_SITEX, CREATE\_PROJECT, and LOAD\_SITEX flags to T. That will run the site compare and database loading portions of AMET.

Let me know if that helps. And if I may ask, what function is so slow for you? Is it the creation of the combine files? Ultimately, you weren’t be able to skip anything using the post-only script that you need to do for the pre-and-post script. The post-only script was just an older script that I deprecated. So, let me know what functions are very slow for you. I removed the post-only script from AMETv1.5 because it really was a duplicate of the functions available in the pre-and-post script, and with the ability to set the flags, you can fully mimic the functions of the post-only script.

Wyat

---

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [August 28, 2023, 2:45am UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/4 "2023-08-28T02:45:23Z")

</div>

Imagine that we are uisng CMAQ just **a month** hourly file.

For combine, it usually takes **15 mins** with 1 layer.  
For setting up database in SQL, it usually takes more than an hour with default networks.  
For analysis with batch script, it also takes more than an hour with default batch settings.

Database and analysis with one script is convenient if you use your own personal or super computer.  
However, when we run the script in server, the server automatically disconnected the connect with users after an hour without any commands.  
We are using personal SQL server so I think we cannot submit the job to the server as well.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/e/eb314b36b3b16a11a18ca9ebb6a97e6b7e6bdf44.png)  
It might be possible by turning off all plotting options for only setting up database. (not sure)

Can you add some descriptions with updates in here for other users?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/3/373fbdeae471cd0472f011d24227919789db3de6.png)

I think one script is a good idea for people who are familiar with AMET but it can be another huddle for new users. + if I do not combine with this script, the location is quite complicated and needed to modify with lots of effort.

---

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [August 28, 2023, 3:36am UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/5 "2023-08-28T03:36:33Z")

</div>

Plus, AMET 15 does not process with different numbers of layer files.  
With AMET14 script, it is working.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/de6601744cb910a0091909393fa6c7a33173cc17.png)

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [August 28, 2023, 1:10pm UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/6 "2023-08-28T13:10:49Z")

</div>

Hi Darby,

in your last post, are you specifically asking for feedback on the error you appear to be encountering when running `combine` as part of your CMAQ post-processing, either stand-alone or incorporated into the AMETv1.5 pre\_and\_post script? When you say that things were working with the AMET1.4 script, this probably doesn’t refer to running `combine`, because based on Wyat’s comments above, running `combine` wasn’t integrated into the AMETv1.4 script.

Prior to running `combine` as part of the AMET1.5 script, did you ever successfully run `combine` stand-alone for your case? The error message you show, as well as the grid spacing implied by your file names, suggest that you’re running into the same issue you encountered last year:

> [@CMAQ combine module 1.3km](https://forum.cmascenter.org/t/cmaq-combine-module-1-3km/3374):
>
> I tried to use combine module for 1.3km but it was not working with this error. Is there any solution?

Back then, you updated the error checking in the `combine` code to work for your case. If running `combine` as part of the AMETv1.5 script, you need to make sure that the AMET script points to the same `combine` executable you created back then and that (I think) worked for you offline. And as was the case back then, the error isn’t caused by the different number of layers in ACONC and METCRO3D, but rather by non-robust grid consistency checking in `combine` for “odd” grid resolutions like 1.333 km.

---

<div class="post-metadata">

**Author:** ![kkkghs0828](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kkkghs0828](https://forum.cmascenter.org/u/kkkghs0828)\
**Post date:** [August 28, 2023, 1:17pm UTC](https://forum.cmascenter.org/t/amet-v1-5-script-db/4315/7 "2023-08-28T13:17:20Z")

</div>

Oh, you are right. I re-compile the combine so it is working.
