<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [GRASS-user] Converting txt file into raster layer</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=2>Thanks for the help Daniel. I did break up my very large file into lots of smaller files (each of the 5 variables are in 142 different files, one per time step, so now each file has just one time step and one variable in it). The grid is irregular and I have a shapefile that I have read into GRASS with no problem. Each cell in the shapefile corresponds to a line in my new txt files.&nbsp; (Ex, Elevation_00.txt has 228,000 lines, with each line having the elevation corresponding the cell number (line 3 is for cell number 3), where the cell numbers are defined by a shapefile).<BR>
<BR>
What I'm confused about is how to &quot;marry&quot; the 2 together? How do I let GRASS know that I want my text file data put on the same grid as my shapefile data? Has anyone attempted to do this? Any help would be great.<BR>
<BR>
Thanks for all your help so far!<BR>
Katie<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Daniel Victoria [<A HREF="mailto:daniel.victoria@gmail.com">mailto:daniel.victoria@gmail.com</A>]<BR>
Sent: Wed 12/2/2009 6:26 PM<BR>
To: Carbonari, Katie (IS)<BR>
Cc: grass-user@lists.osgeo.org<BR>
Subject: Re: [GRASS-user] Converting txt file into raster layer<BR>
<BR>
I'd go with v.in.ascii or r.in.xyz but, for both, you will need to<BR>
know the coordinates of each grid cell.<BR>
<BR>
Another thing to look for is, if you have more than one observation<BR>
per time, you might have to separate the file and create one map (or<BR>
layer) for each time step. That's something easily done with NetCDF<BR>
and programs like GrADS....<BR>
<BR>
Cheers<BR>
Daniel<BR>
<BR>
On Wed, Dec 2, 2009 at 5:29 PM, Carbonari, Katie (IS)<BR>
&lt;Katie.Carbonari@ngc.com&gt; wrote:<BR>
&gt;<BR>
&gt; Good afternoon. A client of mine has given me a large text file (1.6Gig)<BR>
&gt; that he wants visualized in GRASS. In the file, there are 7 columns (Time,<BR>
&gt; Grid Cell Number, Elevation, Thickness, Topography height, U of water<BR>
&gt; velocity, V of water velocity). I've never taken something in text form and<BR>
&gt; put it into GRASS. Any suggestions on how to start? My first thought was to<BR>
&gt; convert to netcdf import from there (since I have some experience working<BR>
&gt; with netcdf in GRASS). Is there a more straight-forward way to do this? I<BR>
&gt; have the projection information in a separate shapefile in order to<BR>
&gt; geolocate.<BR>
&gt;<BR>
&gt; Any help would be greatly appreciated.<BR>
&gt;<BR>
&gt; Thanks!<BR>
&gt; Katie<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; grass-user mailing list<BR>
&gt; grass-user@lists.osgeo.org<BR>
&gt; <A HREF="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>