c - Assign Latitude and Longitude values to pixels -


this problem have been trying solve time. have binary file, that, after processing, leaves me binary bmp file, i.e, pixels have 2 values. now, have me following hdr file:

envi description = { polsarpro file imported envi} samples = 2618 lines   = 2757 bands   = 1 header offset = 0 file type = envi standard data type = 4 interleave = bsq byte order = 0 map info = {utm, 1, 1, 399711.555, 2641320.529, 12.500, 12.500, 45, north, wgs-84} wavelength units = meters band names = { spf_l1.bin } 

generated envi , polsarpro. problem facing softwares envi calculate latitude & longitude values each pixel, while not able find method replicating same in program ( using c, using polsarpro's source files base ). if 1 me explaining how assign positional information, highly appreciated!

p.s: point of view, map info - lists geographic coordinates information in order of projection name (utm), reference pixel x location in file coordinates, pixel y, x pixel size, y pixel size, projection zone, north or south utm only.

looks of information there want.

you have pixel size (meters, presume) , reference. getting coordinates of particular pixel involves offsetting reference coordinates appropriate amount (12.5 meters times number of pixels). looks it's same both directions.

the 399711.555 , 2641320.529 easting , northing coordinates in utm. (near steel city in india?)

you'll need conversion lat/long, though.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -