# Issue with running run.txt2ioapi.v32.csh

**URL:** <https://forum.cmascenter.org/t/issue-with-running-run-txt2ioapi-v32-csh/5749>\
**Category:** MEGAN\
**Created:** [April 17, 2025, 10:26pm UTC](https://forum.cmascenter.org/t/issue-with-running-run-txt2ioapi-v32-csh/5749 "2025-04-17T22:26:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [April 17, 2025, 10:26pm UTC](https://forum.cmascenter.org/t/issue-with-running-run-txt2ioapi-v32-csh/5749/1 "2025-04-17T22:26:18Z")

</div>

Hello All,

I’m running the run.txt2ioapi.v32.csh script in MEGAN v3.2 with the following run control:

setenv RUN\_EFS T  
setenv RUN\_CANTYP T  
setenv RUN\_LDF T

It successfully changes the EFS. csv and LDF.csv files to the EFMAP.ncf and LDF.ncf but it can not create the CT3.ncf. The TXT2IOAPI runs without any error in the log file and it shows “Normal Completion of program TXT2IOAPI”.

I attached the run.txt2ioapi.v32.csh and log file.

I will appreciate if anyone knows why the CT3.ncf does not create.

Thanks  
[log.run.txt2ioapi.AIRPACT\_04km.txt](https://forum.cmascenter.org/uploads/short-url/ef17imfjjV0elnCusgQcilRyEmr.txt) (7.8 KB)  
[run.txt2ioapi.v32.csh](https://forum.cmascenter.org/uploads/short-url/ld0Hv97tSWlOYiyHym3TlFab6iy.csh) (2.7 KB)

@willison.jeff

---

<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:** [April 18, 2025, 12:28am UTC](https://forum.cmascenter.org/t/issue-with-running-run-txt2ioapi-v32-csh/5749/2 "2025-04-18T00:28:12Z")

</div>

Looking at your log file, it seems the canopy type output file was successfully created, but instead of the file name and location you expected (`$MGNINP/MAP/CT3_${GDNAM3D}.ncf`), it was just written as file CANTYPFILE in the directory where you executed the script.

The reason appears to be that the code expects logical file name `CANTYPFILE` to be used for setting this output file, but in your script you used `CANTYP` instead (`setenv CANTYP $MGNINP/MAP/CT3_${GDNAM3D}.ncf`)

---

<div class="post-metadata">

**Author:** ![amin](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amin](https://forum.cmascenter.org/u/amin)\
**Post date:** [April 18, 2025, 6:04pm UTC](https://forum.cmascenter.org/t/issue-with-running-run-txt2ioapi-v32-csh/5749/3 "2025-04-18T18:04:12Z")

</div>

You are right Christian.

Thanks
