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

Home » Public Forums » archive » Geotiff coor
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
Geotiff coor [message #56361] Thu, 18 October 2007 04:30
krastoboy is currently offline  krastoboy
Messages: 8
Registered: October 2007
Junior Member
Hello everybody out there,

here's a question on writing a geotiff with envi-idl
I've resized a geotiff in smaller parts and saved them.
My problems is how to get the correct cordinates on the new files.
I get the new image with envi_get_data setting the /DIM as i need it.

My code:

; try to get the geotiff structure from the original file for the
resized image
;using x and y as center of a square image (801x801) that I have to
cut

width=801
height=801
result=read_tiff(filename, SUB_RECT=[x-400, y+400, width, height],
geotiff=variable)

;write the new geotiff resized

write_tiff, newname, imgdata, geotiff=variable, /short

IDl write me a file with the right coor system but with wrong
coordinates.
Using sub_rect didn' help to get the coord i need..
Have you any suggestion?

Cheers

Lo
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: image cut by a shapefile
Next Topic: Re: Exporting rasters from ArcMap 9.1 to ENVI 4.0

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

Current Time: Sun Nov 30 07:36:14 PST 2025

Total time taken to generate the page: 0.01107 seconds