List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract MTK_RESAMPLE_NEARESTNEIGHBOR Performs nearest neighbor resampling. -Copyright Copyright (2013), California Institute of Technology. U.S. Government sponsorship acknowledged. -I/O Given: x counter the call: status = MTK_RESAMPLE_NEARESTNEIGHBOR(srcbuf, linebuf, samplebuf, resampbuf) returns: status 0 on success; otherwise failure resampbuf resampled data -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 ) status = MTK_TRANSFORM_COORDINATES( mapinfo, latbuf, lonbuf, linebuf, samplebuf ) ;; ;; The call ;; status = MTK_RESAMPLE_NEARESTNEIGHBOR( srcbuf, linebuf, samplebuf, resampbuf ) ;; ;; Output... ;; print, '=================================================' help, resampbuf IDL outputs: RESAMPBUF INT = Array[801, 501] -Particulars None. -Required Reading For important details concerning this module's function, please refer to the MTK routine MtkResampleNearestNeighbor.c. -Version -IDL-MTK Version 1.2.4