<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#ffffff"
text="#000000">
On 02/02/2012 01:08 PM, uk52rob wrote:
<blockquote cite="mid:004101cce19b$08539e60$18fadb20$@co.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been looking into converting the old
BERR wind database for a while, but have never had any
success. Has anyone tried to convert this data to a raster
image using QGIS?<o:p></o:p></p>
</div>
</blockquote>
<p><br>
</p>
<p>If you're willing to use the GRASS plugin, it's not very hard.</p>
<p>First you need to reformat the files a bit. They are setup with
100 speed estimates, using semicolons as separators as follows</p>
<p>( X, Y ); speed1; speed2; speed3; ... ; speed100</p>
<p>Using a text editor program (vim or anything with a good
Search/Replace function), I threw out both of the parentheses.
THen I replaced the commas with semcolons, and I removed all the
spaces. So I ended up with a file with 102 columns, separated by
';'</p>
<p>X;Y;speed1;speed2;speed3;...;speed100</p>
<p>Now I ran the GRASS module:</p>
<p>v.in.ascii in=Speed10.asc out=speed10 fs=';'</p>
<p>This gives me a point vector with 100 speed values in 100 columns
for each point location. Now you have to decide what to do with
the values, in order to interpolate a raster. Do you want to
average all values at each point? </p>
<p>It might make more sense to bring the text file - after
reformatting - into a database program such as sqlite, or
spreadsheet *before* importing into GRASS to calculate additional
columns of i.e. mean, max,min, etc. Then import into GRASS with
the above v.in.ascii.</p>
<p>The final step is run v.surf.idw or v.surf.rst to get your raster
based on one of those aggregate columns.</p>
<p>HTH...</p>
<p>-- </p>
<p>Micha<br>
</p>
<p> </p>
<p><br>
</p>
<blockquote cite="mid:004101cce19b$08539e60$18fadb20$@co.uk"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have come across the following thread for
ArcGIS, but not sure how this would work in QGIS.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://forums.arcgis.com/threads/38041-Converting-ASCII-UK-wind-speed-file-to-a-raster-image">http://forums.arcgis.com/threads/38041-Converting-ASCII-UK-wind-speed-file-to-a-raster-image</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Rob<o:p></o:p></p>
</div>
<br>
<br>
This mail was received via Mail-SeCure System.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
This mail was received via Mail-SeCure System.
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>