List of Routines By Functionality | MISR Toolkit: Main Page
-Abstract MTK_DOWNSAMPLE Downsample data by averaging pixels. -Copyright Copyright (2013), California Institute of Technology. U.S. Government sponsorship acknowledged. -I/O Given: srcbuf source data buffer src_mask source mask size_factor factor to reduce data by resamp resampled data resamp_mask resampled mask the call: status = MTK_DOWNSAMPLE( srcbuf, src_mask, size_factor, resamp, resamp_mask ) returns: status 0 on success; otherwise failure resamp resampled data resamp_mask resampled mask -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 size_factor = 2 status = MTK_SETREGION_BY_PATH_BLOCKRANGE( path, start_block, end_block, region ) status = MTK_READDATA( filename, gridname, fieldname, region, srcbuf, mapinfo ) srcbuf = float(srcbuf) src_mask = byte(replicate(1,528,384)) ;; ;; The call ;; status = MTK_DOWNSAMPLE( srcbuf, src_mask, size_factor, resamp, resamp_mask ) ;; ;; Output... ;; print, '=================================================' help, srcbuf, resamp IDL outputs: ================================================= SRCBUF FLOAT = Array[528, 384] RESAMP FLOAT = Array[264, 192] -Particulars None. -Required Reading For important details concerning this module's function, please refer to the MTK routine MtkDownsample.c. -Version -IDL-MTK Version 1.2.4