Fortran error reading line
1 Attachment(s)
On trying to read a molecular volumetric (cube) file with MOLDEN, error
Quote:
I hope that someone can see better than me. chiendarret |
Wait, the error message says it choked on line 923 of fortran file rdgaus.f when trying to read from mep.cube. It doesn't say what line in the input data file is wrong.
Try something silly like Code:
awk '{for(i=1;i<=NF;i++)printf "%f ",$i;print""}' mep.cube |
additionally you may try (for example) od -xc mep.cube to see if there was something illegal (incorrect char) in it.
But first you need to find at least the approximate location (line number?) in that file. |
mep.cube could be read and nothing illegal came out. Suspecting a shortage of memory I tried on a linux box with more ram: same error.
I tried a small cube file for water (taken from the web) and MOLDEN showed correctly the map, colored by atomic charges. therefore, I have now submitted the issue to the author of MOLDEN. probably the python software that I used to generate the cube file from ORCA data (as from my post of a week ago) does not provide a full standard. it is not rare that we loose more time on visualization tools than on the scientific core problem chiendarret |
if you could modify rdgaus.f (around line 923) you may have better information on the issue. Add some logs or debug info.
|
Quote:
Code:
-1.22372e-01 -1.21192e-01 Code:
-0.122372 -0.121192 So, then I put my hope into anomaly, or datamash, or miller, or num-utils. As if! All those great tools (and I'm not sarcastic here, they are really great!) are designed according to the robustness principle: they would just silently discard any data that are not properly formatted numbers. I ended up with the following solutions. First, my test file: Code:
$ cat mep.cube Code:
$ tail -n+3 mep.cube|grep --color -Pn '[^-\s\d.e]' Code:
$ sed -n '1,2d;/[^-\t 0-9.e]/p' mep.cube Code:
sed '1,2d;/[^- 0-9.e]/!d;=' mep.cube Code:
#!/usr/bin/awk |
I could not follow all the procedure in the last post, however, what I can now say is that MOLDEN does not open the so called .cube file from ORCA because the ".cube" extension is no standard. Each package outputs its own type of .cube file and MOLDEN is not prepared to the ".cube" from ORCA (it opens three other types of .cube). One could say - and I would agree to clear from confusion - that each non standard cube file (which is proprietary) should not have the .cube extension.
I contacted MOLDEN, which perhaps will take into consideration in the future my request to support ORCA (which has become the most used QM package, particularly on large clusters). Because all other visualization free packages that I tried do not attain the quality of MOLDEN (actually - in my hands - they produce plots of the electrostatic potential that could hardly be used for publication), the solution would be to adapt mep.py (the python script that converts ORCA electrostatic potential data into a cube file) to output a cube file type supported by MOLDEN. This could only be done by a software engineer not by a biochemist as I am. And it would greatly serve the scientific community. |
All times are GMT -5. The time now is 09:56 AM. |