comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Elevation data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Elevation data [message #69527] Mon, 25 January 2010 05:13 Go to next message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
Folks
Hi;
I have an elevation data (elevation.dat), which has lat-long and
elevation information. I want to save this file as a .tiff image and
doing some surface, shade_surf, and… presentations.
Could someone give me some tiny help for doing that?
Any help highly appreciated
Cheers
Dave
Re: Elevation data [message #69641 is a reply to message #69527] Thu, 28 January 2010 05:22 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Jan 27, 12:42 am, Klemen <klemen.zak...@gmail.com> wrote:
>> Thanks Jan. how  could save  the loaded data as tiff and geotiff?
>> Cheers
>
> Here is an example:
>
> ; Set GeoTiff geotags:http://www.remotesensing.org/geotiff/spec/contents.h tml
> s_geotag = {$
>         MODELPIXELSCALETAG: [d_resolution, d_resolution, 0], $  ;resolution
>         MODELTIEPOINTTAG: [ 0, 0, 0, d_xL, d_yA, 0], $          ;coordinates left
> above
> ;       GEOGGEODETICDATUMGEOKEY: 6326, $                        ;geodetic datum WGS84
>         GTMODELTYPEGEOKEY: 2, $                                 ;Geographic latitude-longitude System
>         GTRASTERTYPEGEOKEY: 1, $                                ;raster type
>         GEOGRAPHICTYPEGEOKEY: 4326, $
> ;       GEOGLINEARUNITSGEOKEY: 9001, $                          ;linear unit meter
>         GEOGANGULARUNITSGEOKEY: 9102}                           ;angular unit decimal degree
>
> ;write 16-bit geotiff - data 16 can be 3D matrix - dimension 1 for
> channel, D2 for columns, D3 for lines
> write_tiff, 'output_16b.tif', data16, compression=1,
> geotiff=s_geotag, /float
>
> Hope it helps!
> Klemen

Thanks
It‘s help a lot. This is exactly what I want.
Cheers
Dave
Re: Elevation data [message #69656 is a reply to message #69527] Wed, 27 January 2010 00:42 Go to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
> Thanks Jan. how  could save  the loaded data as tiff and geotiff?
> Cheers

Here is an example:

; Set GeoTiff geotags: http://www.remotesensing.org/geotiff/spec/contents.html
s_geotag = {$
MODELPIXELSCALETAG: [d_resolution, d_resolution, 0], $ ;resolution
MODELTIEPOINTTAG: [ 0, 0, 0, d_xL, d_yA, 0], $ ;coordinates left
above
; GEOGGEODETICDATUMGEOKEY: 6326, $ ;geodetic datum WGS84
GTMODELTYPEGEOKEY: 2, $ ;Geographic latitude-longitude System
GTRASTERTYPEGEOKEY: 1, $ ;raster type
GEOGRAPHICTYPEGEOKEY: 4326, $
; GEOGLINEARUNITSGEOKEY: 9001, $ ;linear unit meter
GEOGANGULARUNITSGEOKEY: 9102} ;angular unit decimal degree

;write 16-bit geotiff - data 16 can be 3D matrix - dimension 1 for
channel, D2 for columns, D3 for lines
write_tiff, 'output_16b.tif', data16, compression=1,
geotiff=s_geotag, /float

Hope it helps!
Klemen
Re: Elevation data [message #69657 is a reply to message #69527] Wed, 27 January 2010 00:00 Go to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Jan 26, 3:12 am, jkeller <jkel...@uni-bonn.de> wrote:
> On Jan 25, 2:13 pm, Dave_Poreh <d.po...@gmail.com> wrote:
>
>> Folks
>> Hi;
>> I have an elevation data (elevation.dat), which has lat-long and
>> elevation information. I want to save this file as a .tiff image and
>> doing some surface, shade_surf, and… presentations.
>> Could someone give me some tiny help for doing that?
>> Any help highly appreciated
>> Cheers
>> Dave
>
> Hi Dave,
>
> do you want to save the data as tiff or do you want to save the
> contour, shade_surf output images as tiff-file?
>
> Using contour and surface is pretty easy. Assuming your elevation data
> is the variable "elev" and your longitude and latitude information is
> stored in "lon" and "lat" then you yan issue a filled contour plot by
> using
> contour,elev,lon,lat,/fill,level=mylevels,c_color=mycolors
> giving "mylevels" is an array containing the height levels for which
> contours are desired and "mycolors" is an array defining the color
> indices for the according level.
>
> The surface plot would be even simplier:
> surface,elev,lon,lat
>
> Thats some good points, where you can start. If you are more specific
> about what you would like to do, I could give you a more specific
> answer.
>
> Regards,
> Jan

Thanks Jan. how could save the loaded data as tiff and geotiff?
Cheers
Re: Elevation data [message #69664 is a reply to message #69527] Tue, 26 January 2010 03:12 Go to previous message
jkeller is currently offline  jkeller
Messages: 35
Registered: October 2009
Member
On Jan 25, 2:13 pm, Dave_Poreh <d.po...@gmail.com> wrote:
> Folks
> Hi;
> I have an elevation data (elevation.dat), which has lat-long and
> elevation information. I want to save this file as a .tiff image and
> doing some surface, shade_surf, and… presentations.
> Could someone give me some tiny help for doing that?
> Any help highly appreciated
> Cheers
> Dave

Hi Dave,

do you want to save the data as tiff or do you want to save the
contour, shade_surf output images as tiff-file?

Using contour and surface is pretty easy. Assuming your elevation data
is the variable "elev" and your longitude and latitude information is
stored in "lon" and "lat" then you yan issue a filled contour plot by
using
contour,elev,lon,lat,/fill,level=mylevels,c_color=mycolors
giving "mylevels" is an array containing the height levels for which
contours are desired and "mycolors" is an array defining the color
indices for the according level.

The surface plot would be even simplier:
surface,elev,lon,lat

Thats some good points, where you can start. If you are more specific
about what you would like to do, I could give you a more specific
answer.

Regards,
Jan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How to link one point after the other by an arrow in a graph(in PLOT)?
Next Topic: iTools issues

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 01:40:15 PDT 2025

Total time taken to generate the page: 0.56000 seconds