reading 32 bits geotif elevation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

reading 32 bits geotif elevation

Billy Jordan
Hi,
 
I have downloded a DEM image from USGS site in geotiff format. The data type is in floating point(32 bits/ sample) or IEEE floating point. I could read this image using ERDAS but I need to read it using Matlab. Matlab gives error that couldnt read more than 16 bits per sample!!!!
It is so important and I would appreciate any comments
 
Bill


Yahoo! FareChase - Search multiple travel sites in one click.
_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff
Reply | Threaded
Open this post in threaded view
|

Re: reading 32 bits geotif elevation

Frank Warmerdam
On 11/6/05, Billy Jordan <[hidden email]> wrote:
>
> Hi,
>
> I have downloded a DEM image from USGS site in geotiff format. The data type
> is in floating point(32 bits/ sample) or IEEE floating point. I could read
> this image using ERDAS but I need to read it using Matlab. Matlab gives
> error that couldnt read more than 16 bits per sample!!!!
> It is so important and I would appreciate any comments

Bill,

As you can imagine, it is hard for any of us to "fix" Matlab.
What you could do is use some other tool to convert the
data into 16bit integer format.  For instance, at the FWTools
command shell you could enter a command like:

 gdal_translate -ot Int16 in.tif out.tif

You can download FWTools for linux or win32 from:

  http://fwtools.maptools.org/

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff
Reply | Threaded
Open this post in threaded view
|

Re: reading 32 bits geotif elevation

Billy Jordan


Frank Warmerdam <[hidden email]> wrote:

On 11/6/05, Billy Jordan wrote:
>
> Hi,
>
> I have downloded a DEM image from USGS site in geotiff format. The data type
> is in floating point(32 bits/ sample) or IEEE floating point. I could read
> this image using ERDAS but I need to read it using Matlab. Matlab gives
> error that couldnt read more than 16 bits per sample!!!!
> It is so important and I would appreciate any comments

Bill,

As you can imagine, it is hard for any of us to "fix" Matlab.
What you could do is use some other tool to convert the
data into 16bit integer format. For instance, at the FWTools
command shell you could enter a command like:

gdal_translate -ot Int16 in.tif out.tif

You can download FWTools for linux or win32 from:

http://fwtools.maptools.org/

Best regards,
--

 

Dear Frank

 

Thank you so much for your reply. This tool has solved my problem completely...

 

I really appreciate that, well..I think I owe you a dinner....!!!

 

All the best

 

Bill
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


Yahoo! FareChase - Search multiple travel sites in one click.
_______________________________________________
Geotiff mailing list
[hidden email]
http://lists.maptools.org/mailman/listinfo/geotiff