<br><font size=2 face="sans-serif">Good catch Daniel!</font>
<br><font size=2 face="sans-serif">Daniel knew that my orginal images were
in HFA (.img) float32 and was translated to byte and scaled . I'm trying
to merge those byte-scaled images.</font>
<br><font size=2 face="sans-serif">The nodata value for these file is 0
and not </font><tt><font size=2>-3.4028234663852886e+038</font></tt><font size=2 face="sans-serif">
anymore.</font>
<br>
<br><font size=2 face="sans-serif">What confused me is gdalinfo on those
new images. Even if they are in BYTE, gdalinfo returns the nodata value,
Min, Max, etc. of the original images in float32.</font>
<br>
<br><font size=2 face="sans-serif">Is that a bug?</font>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><font size=3 color=#0066ff><i>Steve Toutant, M. Sc.</i></font><font size=3><br>
Analyste en géomatique<br>
Secteur environnement<br>
Direction des risques biologiques, environnementaux et occupationnels<br>
Institut national de santé publique du Québec<br>
945, avenue Wolfe<br>
Québec, Qc G1V 5B3 </font>
<p><font size=3>Tél.: (418) 650-5115 #5281<br>
Fax.: (418) 654-3144</font><font size=3 color=blue><u><br>
</u></font><a href=mailto:steve.toutant@inspq.qc.ca><font size=3 color=blue><u>steve.toutant@inspq.qc.ca</u></font></a><font size=3 color=blue><u><br>
</u></font><a href=http://www.inspq.qc.ca/><font size=3 color=blue><u>http://www.inspq.qc.ca</u></font></a>
<p><font size=3>&nbsp; </font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Daniel Morissette &lt;dmorissette@mapgears.com&gt;</b>
</font>
<p><font size=1 face="sans-serif">31/07/2009 10:21 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Steve.Toutant@inspq.qc.ca</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: gdalwarp merge problem</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>Steve.Toutant@inspq.qc.ca wrote:<br>
&gt; <br>
&gt; Hi,<br>
&gt; Still trying to merge images...<br>
&gt; I need to merge several images. As an example The image EstMtl.tif
must <br>
&gt; be over the image EstGa.tif.<br>
&gt; <br>
&gt; Here is the command<br>
&gt; gdalwarp -srcnodata -3.4028234663852886e+038 -dstnodata 0 -of &quot;GTiff&quot;
<br>
&gt; -te -931841.246 126213 241462 805816 -tr 30.0 30.0 EstGa.tif icu.tif<br>
&gt; gdalwarp -srcnodata -3.4028234663852886e+038 -dstnodata 0 EstMtl.tif
<br>
&gt; icu.tif<br>
&gt; <br>
&gt;<br>
<br>
Steve,<br>
<br>
Dans ton courriel hier à ce sujet tu écrivais:<br>
<br>
&quot;Voici une image suite au merge originaux-scaled-google&quot;<br>
<br>
Est-ce que tu fais ton merge sur les originaux ou sur les images &quot;scaled&quot;?<br>
<br>
Si tu travailles avec les images scaled, alors il faudrait utiliser <br>
&quot;-scrnodata 0&quot; puisque la valeur de nodata -3.4028234663852886e+038
<br>
s'applique seulement aux images originales en float et il me semblait <br>
qu'après le scale les nodata étaient à 0.<br>
<br>
Peux-tu SVP vérifier ça?<br>
<br>
Daniel<br>
-- <br>
Daniel Morissette<br>
http://www.mapgears.com/<br>
</font></tt>
<br>
<br>
<br>