Hi Rich,<br><br>Thanks for the tip. Unfortunately, r.in.ascii is made for files with another type of header. Nonetheless, I tried it and here's the output:<br><br><span style="font-family:courier new,monospace">r.in.ascii input=</span><span style="font-family:courier new,monospace">/home/lee/co2/daten/gcm_results/</span><span style="font-family:courier new,monospace">prec_1.asc output=test</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">"north" field missing from header</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">"south" field missing from header</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">"east" field missing from header</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">"west" field missing from header</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">"rows" field missing from header</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">"cols" field missing from header</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">Illegal row value</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">ERROR: Can't get cell header<br><br></span>Those values aren't in the header though and the requirements of r.in.arc match the header :( QGIS manages to open it, but I don't know how to script it and it's quite a large number of datasets.<br>

<br>Any other ideas? Does anyone have experience with opening and exporting rasters in QGIS from a script? That would make things a bit easier, otherwise it takes a good 5 minutes or so to open each file.<br><br>Thanks!<br>

Daniel<br clear="all">

<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"></span></p><p>--<br></p><p>B.Sc. Daniel Lee<br>

Geschäftsführung für Forschung und Entwicklung<br>ISIS - International Solar Information Solutions GbR<br>Vertreten durch: Daniel Lee, Nepomuk Reinhard und Nils Räder<br></p><p>Softwarecenter 3<br>35037 Marburg<br>Festnetz: <a value="+4964213796256" style="color:rgb(28,81,168)">+49 6421 379 6256</a><br>

Mobil: <a value="+4917661277269" style="color:rgb(28,81,168)">+49 176 6127 7269</a><br>E-Mail: <a href="mailto:Lee@isi-solutions.org" style="color:rgb(28,81,168)" target="_blank">Lee@isi-solutions.org</a><br>Web: <a href="http://www.isi-solutions.org/" style="color:rgb(28,81,168)" target="_blank">http://www.isi-solutions.org</a></p>

<p></p><br>
<br><br><div class="gmail_quote">2012/6/27 Rich Shepard <span dir="ltr"><<a href="mailto:rshepard@appl-ecosys.com" target="_blank">rshepard@appl-ecosys.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Wed, 27 Jun 2012, Daniel Lee wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm having a lot of trouble importing some ASCII data into GRASS. It seems<div class="im"><br>
like a perfect case for r.in.arc, but r.in.arc isn't working. Here's some<br>
info:<br>
</div></blockquote>
<br>
Daniel,<br>
<br>
  From the 6.5 manual r. index:<br>
<br>
r.in.arc        Converts an ESRI ARC/INFO ascii raster file (GRID) into a<br>
                (binary) raster map layer.<br>
r.in.ascii      Converts ASCII raster file to binary raster map layer.<br>
<br>
  Try r.in.ascii.<span class="HOEnZb"><font color="#888888"><br>
<br>
Rich<br>
<br>
-- <br>
Richard B. Shepard, Ph.D.          |   Integrity - Credibility - Innovation<br>
Applied Ecosystem Services, Inc.   |    Helping Ensure Our Clients' Futures<br>
<<a href="http://www.appl-ecosys.com" target="_blank">http://www.appl-ecosys.com</a>>     Voice: <a href="tel:503-667-4517" value="+15036674517" target="_blank">503-667-4517</a>      Fax: <a href="tel:503-667-8863" value="+15036678863" target="_blank">503-667-8863</a><br>


<br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</font></span></blockquote></div><br>