List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract MTK_LS_TO_SOMXY returns Space Oblique Mercator (SOM) X and Y given a line and sample. -Copyright Copyright (2005), California Institute of Technology. U.S. Government sponsorship acknowledged. -I/O Given: mapinfo MTK map info structure line map fractional line (x.0 represents pixel center) sample map fractional sample (x.0 represents pixel center) the call: status = MTK_LS_TO_SOMXY( mapinfo, line, sample, somx, somy ) returns: status 0 on success; otherwise failure somx SOM X in meters somy SOM Y in meters -Examples ;; ;; Set up input parameters ;; filename = '../Mtk_testdata/in/MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf' gridname = 'GreenBand' fieldname = 'Green Radiance/RDQI' line = 50.0 sample = 25.0 start_block = 10 end_block = 15 status = MTK_FILE_TO_PATH( filename, path ) status = MTK_SETREGION_BY_PATH_BLOCKRANGE( path, start_block, end_block, region) status = MTK_READDATA( filename, gridname, fieldname, region, databuf, mapinfo ) status = MTK_LS_TO_SOMXY( mapinfo, line, sample, somx, somy ) ;; ;; Output... ;; print, 'file name : ', filename print, 'grid : ', gridname print, 'field : ', fieldname print, 'start block : ', start_block print, 'end block : ', end_block print, 'line : ', line print, 'sample : ', sample print, '=================================================' print, 'SOM X : ',somx print, 'SOM Y : ',somy IDL outputs: file name : ../Mtk_testdata/in/MISR_AM1_GRP_ELLIPSOID_GM_P037_O029058_AA_F03_0024.hdf grid : GreenBand field : Green Radiance/RDQI start block : 10 end block : 15 line : 50.0 sample : 25.0 ================================================= SOM X : 8783500.0 SOM Y : 608300.00 -Particulars None. -Required Reading For important details concerning this module's function, please refer to the MTK routine MtkLSToSomXY.c. -Version -IDL-MTK Version 1.2.0