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

Home » Public Forums » archive » Using "tie points" in rasters
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using "tie points" in rasters [message #93199] Wed, 11 May 2016 14:35 Go to previous message
GB is currently offline  GB
Messages: 2
Registered: May 2016
Junior Member
Hello,

I am working with a digital elevation map raster and ran into a problem that I am unsure how to approach.

Once I get the spatial reference object of my DEM raster, I then get the tie_point_pixel, the tie_point_map, and pixel_size from the spatialref. I then seek to transform the map coordinates of a set of LiDAR points into the pixel indices of my raster. The thing I am confused about is how rounding plays into this problem.

For instance, lets say that I use the following function to convert the x-coordinate of my lidar point into pixel coordinates:
(lidar_point_x-tie_point_map[0])/pixel_size[0]
But, I get a decimal place in the outcome. Lets say that the decimal point is 0.64. Would this decimal point translate into the point belonging to index 0 or to index 1?

I suppose I am confused about if the tie_point_map is centered on the tie_point_pixel such that it extends a range of -0.5*pixel_size to 0.5*pixel_size. If anyone could elaborate on this I would be very thankful.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Dark theme for IDL?
Next Topic: Plot radiances vs wavelengths

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

Current Time: Wed Oct 08 15:08:04 PDT 2025

Total time taken to generate the page: 0.00584 seconds