# Met4moves failed to create daily met file

**URL:** <https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286>\
**Category:** SMOKE\
**Created:** [August 4, 2023, 2:12am UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286 "2023-08-04T02:12:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nguyentuong17](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@Nguyentuong17](https://forum.cmascenter.org/u/Nguyentuong17)\
**Post date:** [August 4, 2023, 2:12am UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/1 "2023-08-04T02:12:33Z")

</div>

DEAR CMASCENTER FORUM SPECIALISTS,

I try to get Daily average met file for Smoke using MET4MOVES, but i get stuck with the following error.

 ![Screenshot from 2023-08-04 09-08-26](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/8/80e94fb50dc93273b774a409e582c38cb60b9ae7.png)

Could you explaine me how to overcome this error.

Thank you in advance.

[US\_100\_NOFILL.txt](https://forum.cmascenter.org/uploads/short-url/2z7gWsDuMyXVDVpw4qJIcstEneo.txt) (233.8 KB)

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [August 7, 2023, 6:26pm UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/2 "2023-08-07T18:26:20Z")

</div>

The surrogate file you attached looks OK.

Can you confirm that you have write permission in the directory where they are running this script, for the purpose of creating the temporary TMP\_COMBINED\_SRG.txt file, and write permissions on that file if it already exists?

What does that file look like at the point where the program crashes?

If it’s not related to write permissions, can you please also provide the SRGDESC?

---

<div class="post-metadata">

**Author:** ![Nguyentuong17](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@Nguyentuong17](https://forum.cmascenter.org/u/Nguyentuong17)\
**Post date:** [August 8, 2023, 12:33pm UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/3 "2023-08-08T12:33:31Z")

</div>

Dear Eyth.alison,

Thank for your advice,  
I tried to change write permission, and program still remaining crashes as previous.  
the TMP\_COMBINED\_SRG.txt file created but with empty 0 byte.

I attached below SRGDESC file and metlist file.  
Could your please look at this.

[SRGDESC.txt](https://forum.cmascenter.org/uploads/short-url/j77yBLWPOuH0aZ7woYjPBkMlKMV.txt) (664 Bytes)  
[metfile\_list.12US1\_17nei.txt](https://forum.cmascenter.org/uploads/short-url/x4RPcCQOboPlkCU6ehcajZiVqIW.txt) (122 Bytes)

 ![Screenshot from 2023-08-08 19-32-35](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2bcf932e5820218f18d900ba7c74d4062542f42d.png)

---

<div class="post-metadata">

**Author:** ![eyth.alison](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@eyth.alison](https://forum.cmascenter.org/u/eyth.alison)\
**Post date:** [August 8, 2023, 1:20pm UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/4 "2023-08-08T13:20:52Z")

</div>

We note that TMP\_COMBINED\_SRG.txt is supposed to contain the contents of US\_100\_NOFILL.txt as the script runs, but something is going wrong with that step.

In the SRGDESC, if you add “./” to the beginning of each file path and also add quotes, as in:

US,100,“Population”,“./US\_100\_NOFILL.txt”

US,200,“Urban Primary Road Miles”,“./US\_200\_FILL.txt”

US,210,“Rural Primary Road Miles”,“./US\_210\_FILL.txt”

Does this help?

If not, what happens if you copy US\_100\_NOFILL.txt to TMP\_COMBINED\_SRG.txt before the run starts?

---

<div class="post-metadata">

**Author:** ![Nguyentuong17](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@Nguyentuong17](https://forum.cmascenter.org/u/Nguyentuong17)\
**Post date:** [August 9, 2023, 12:39pm UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/5 "2023-08-09T12:39:22Z")

</div>

Dear Eyth.alison,

According to your suggestion,  
I copied the header of US\_100\_NOFILL.txt to TMP\_COMBINED\_SRG.txt before the run.  
and program worked,  
thank for your expertise, i could gain moves forward.

I thought, it worked and i have prepare more input data accordingly.

 ![Screenshot from 2023-08-09 19-31-29](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/d3132b3c66a5179bf8eea02b78030501047605ab.png)

---

<div class="post-metadata">

**Author:** ![Nguyentuong17](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@Nguyentuong17](https://forum.cmascenter.org/u/Nguyentuong17)\
**Post date:** [August 11, 2023, 1:59am UTC](https://forum.cmascenter.org/t/met4moves-failed-to-create-daily-met-file/4286/6 "2023-08-11T01:59:15Z")

</div>

Dear Eyth.Alison,

Thank for your expertise, It worked.

 ![Screenshot from 2023-08-11 08-57-31](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/a/a4c2e007ec666514fc379c131ca69cad72d4709f.png)
