List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract MTK_TRANSFORM_COORDINATES Transforms latitude/longitude coordinates into line/sample coordinates -Copyright Copyright (2013), California Institute of Technology. U.S. Government sponsorship acknowledged. -I/O Given: srcbuf Source data buffer linebuf Line data buffer samplebuf Sample data buffer the call: status = MTK_TRANSFORM_COORDINATES( mapinfo, latbuf, latbuf, linebuf, samplebuf ) returns: status 0 on success; otherwise failure resampbuf Resampled data buffer -Examples ;; Set up input parameters ;; filename = '../Mtk_testdata/in/MISR_AM1_AGP_P039_F01_24.hdf' gridname = 'Standard' fieldname = 'AveSceneElev' path = 39 start_block = 50 end_block = 52 ulc_lat_dd = 51 ulc_lon_dd = -114 lrc_lat_dd = 46 lrc_lon_dd = -106 lat_cellsize_dd = 0.01 lon_cellsize_dd = 0.01 status = MTK_SETREGION_BY_PATH_BLOCKRANGE( path, start_block, end_block, region ) status = MTK_READDATA( filename, gridname, fieldname, region, srcbuf, mapinfo ) status = MTK_CREATE_GEOGRID( ulc_lat_dd, ulc_lon_dd, lrc_lat_dd, lrc_lon_dd, lat_cellsize_dd, lon_cellsize_dd , latbuf, lonbuf ) ;; ;; The call ;; status = MTK_TRANSFORM_COORDINATES( mapinfo, latbuf, latbuf, linebuf, samplebuf ) ;; ;; Output... ;; print, '=================================================' help, status, samplebuf IDL outputs: STATUS LONG = 0 SAMPLEBUF FLOAT = Array[801, 501] -Particulars None. -Required Reading For important details concerning this module's function, please refer to the MTK routine MtkTransformCoordinates.c. -Version -IDL-MTK Version 1.2.4