# ConfigFile ignored

**URL:** <https://forum.cmascenter.org/t/configfile-ignored/3820>\
**Category:** VERDI\
**Created:** [January 3, 2023, 10:12pm UTC](https://forum.cmascenter.org/t/configfile-ignored/3820 "2023-01-03T22:12:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogerKwok](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@RogerKwok](https://forum.cmascenter.org/u/RogerKwok)\
**Post date:** [January 3, 2023, 10:12pm UTC](https://forum.cmascenter.org/t/configfile-ignored/3820/1 "2023-01-03T22:12:45Z")

</div>

Hi there,

I found that the -ConfigFile option was ignored when Verdi 2.1.4 was launched in linux command mode. My configure file could only be imported on GUI. Has anyone else ever experienced the glitch, or have I missed out something?

Thanks,  
Roger

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [January 9, 2023, 8:35pm UTC](https://forum.cmascenter.org/t/configfile-ignored/3820/2 "2023-01-09T20:35:06Z")

</div>

Hi Roger,

I tested and confirmed that this option works using the example script available in the VERDI software.  
cd /[your\_path]/VERDI\_2.1.4/data/scripts  
chmod 755 verdi\_script\_tile\_with\_config.csh  
./verdi\_script\_tile\_with\_config.csh

It produces an image that uses the following config file:  
-configFile $cwd/data/configs/o3\_10bin.cfg \

 ![CCTM.10bin.O3](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/7/7acaea11fc9ff00e2deb6d837e244af74bda5521.jpeg)

If you re-run the script after removing the -configFile line, then it generates the default color map.

 ![CCTM.10bin.O3.without_config](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/139899fe44ba0c85de9e010cbee9db8ad5b38399.jpeg)

VERDI is case sensitive when running the command line options, so be sure you are using

-configFile  
not  
-ConfigFile

The other thing to check is that the path to your config file is working.  
For the example script, you would need to verify that $cwd is defined.  
echo $cwd and also that the config file exists.

Please let me know if you are able to solve your issue.

---

<div class="post-metadata">

**Author:** ![RogerKwok](https://avatars.discourse-cdn.com/v4/letter/r/d07c76/32.png) [@RogerKwok](https://forum.cmascenter.org/u/RogerKwok)\
**Post date:** [January 17, 2023, 11:37pm UTC](https://forum.cmascenter.org/t/configfile-ignored/3820/3 "2023-01-17T23:37:01Z")

</div>

Hi Liz,

Thanks for your instructions. I later found out that the order of verdi arguments matters.

My run script previously put '-gtype tile ' before '-configFile $whatever ', so the effect is that a tile has been created before the script has any chance incorporating the config file. By swapping the configFile flag before the gtype, the tile is now with the desired color scale.

Roger
