<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Luisa,<br>
<br>
I normally restrain to propose GMT solutions here, but I'll open one
more exception now as this problem seams easy to solve with it and also
because I have o idea how to do it with GDAL.<br>
For this, if your grids are not in netCDF, you will need a GMT built
with GDAL support (I have one for Windows in Mirone's download page)<br>
<br>
Use grd2xyz to construct a x,y,z (lon,lat,val) that will be
instantaneously "georeferenced"<br>
<br>
# Below the '=gd' is not part of the file's name but instead the
instruction to direct GMT to use GDAL to read the grids<br>
# No need for this if grids are netCDF<br>
grd2xyz grid_withd_data=gd -Z > val.z<br>
grd2xyz grid_withd_lon=gd -Z > lon.x<br>
grd2xyz grid_withd_lat=gd -Z > lat.y<br>
<br>
# Now paste the 3 columns<br>
paste lon.x lat.y val.z > data.xyz<br>
<br>
Probably at this point you will need to interpolate the "data.xyz" file
to create a new grid as the lon & lats are likely not north-south
aligned (satellite data?) and not equispaced.<br>
<br>
Joaquim Luis<br>
<br>
<blockquote
cite="mid:979f23b11002180849h737e25fre76647905a4bfc34@mail.gmail.com"
type="cite">Greetings
<div><br>
</div>
<div>I've used GDAL a few times but this is the first time that I'm
lost on what I can do with GDAL to solve my problem. I have 3 separate
files, one with my data, other with Lattitude and another with
Longitude. They have the same size and, as an example, it means that
Pixel (1,1) of data is located in latitude retrieved from Pixel (1,1)
from latitude and longitude (pixel (1,1) from longitude). All of them
are in WGS84 but without GCP's points. </div>
<div>I need to create a georreferenced/rectified Geotiff with this
data and, to do that, I need lat and Long. How can I do this?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
Best regards,</div>
<div>Luisa Peña</div>
<div>S.Paulo, Brazil</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre>
</blockquote>
<br>
</body>
</html>