# Avogadro not displaying some cube files from Q-Chem

**URL:** <https://discuss.avogadro.cc/t/avogadro-not-displaying-some-cube-files-from-q-chem/111>\
**Category:** General Discussion\
**Created:** [June 18, 2010, 5:53pm UTC](https://discuss.avogadro.cc/t/avogadro-not-displaying-some-cube-files-from-q-chem/111 "2010-06-18T17:53:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_B\_Isaacs](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/e/ee59a6/32.png) [@Eric\_B\_Isaacs](https://discuss.avogadro.cc/u/Eric_B_Isaacs)\
**Post date:** [June 18, 2010, 5:53pm UTC](https://discuss.avogadro.cc/t/avogadro-not-displaying-some-cube-files-from-q-chem/111/1 "2010-06-18T17:53:00Z")

</div>

Hi,

I am using Avogadro to visualize molecular orbitals generated from Q-  
Chem as cube files. For some reason some will open and others will  
not. I am uploading two examples works.cube and doesnotwork.cube to [http://rapidshare.com/files/400448250/cube.zip.html](http://rapidshare.com/files/400448250/cube.zip.html)  
. Both were created with the same settings, and I don’t see why the  
latter won’t work. I am running Avogadro 1.0.0 Git revision 81fcdfb on  
Mac OS 10.5.8.

Any ideas on why this could be?

Thanks,  
Eric

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [June 30, 2010, 3:57pm UTC](https://discuss.avogadro.cc/t/avogadro-not-displaying-some-cube-files-from-q-chem/111/2 "2010-06-30T15:57:54Z")

</div>

> not. I am uploading two examples works.cube and doesnotwork.cube to [http://rapidshare.com/files/400448250/cube.zip.html](http://rapidshare.com/files/400448250/cube.zip.html)

As a general rule, we recommend adding “GUI=2” to the $rem section of Q-Chem files. This will spit out a formatted checkpoint file (FChk) which can be used to generate the cubes and is much smaller. (Avogadro will read file.FChk.gz as well and transparently uncompress.)

In this case, it’s pretty obvious. Q-Chem wrote blank lines in the middle of the cube. The easy workaround for now is:

grep -v ‘^$’ doesnotwork.cube \>new.cube

Hope that helps,  
-Geoff

---

<div class="post-metadata">

**Author:** ![Eric\_B\_Isaacs](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/e/ee59a6/32.png) [@Eric\_B\_Isaacs](https://discuss.avogadro.cc/u/Eric_B_Isaacs)\
**Post date:** [June 30, 2010, 4:23pm UTC](https://discuss.avogadro.cc/t/avogadro-not-displaying-some-cube-files-from-q-chem/111/3 "2010-06-30T16:23:39Z")

</div>

Geoff,

Thank you so much for the excellent response. I appreciate it.

Eric

On Jun 30, 2010, at 8:57 AM, Geoffrey Hutchison wrote:

> > not. I am uploading two examples works.cube and doesnotwork.cube to [http://rapidshare.com/files/400448250/cube.zip.html](http://rapidshare.com/files/400448250/cube.zip.html)
> 
> As a general rule, we recommend adding “GUI=2” to the $rem section  
> of Q-Chem files. This will spit out a formatted checkpoint file  
> (FChk) which can be used to generate the cubes and is much smaller.  
> (Avogadro will read file.FChk.gz as well and transparently  
> uncompress.)
> 
> In this case, it’s pretty obvious. Q-Chem wrote blank lines in the  
> middle of the cube. The easy workaround for now is:
> 
> grep -v ‘^$’ doesnotwork.cube \>new.cube
> 
> Hope that helps,  
> -Geoff
> 
> * * *
> 
> This [SF.net](http://SF.net) email is sponsored by Sprint  
> What will you do first with EVO, the first 4G phone?  
> Visit [sprint.com/first](http://sprint.com/first) – [http://p.sf.net/sfu/sprint-com-first](http://p.sf.net/sfu/sprint-com-first)
> 
> * * *
> 
> Avogadro-Discuss mailing list  
> [Avogadro-Discuss@lists.sourceforge.net](mailto:Avogadro-Discuss@lists.sourceforge.net)  
> [avogadro-discuss List Signup and Options](https://lists.sourceforge.net/lists/listinfo/avogadro-discuss)
