GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — setsm_postprocessing/batch_mask_rema2a.m at master · ihowat/setsm_postprocessing Expand file tree/ Copy pathbatch_mask_rema2a.mMore file actions 63 lines (43 loc) · 1.52 KB / Copy pathbatch_mask_rema2a.mFile metadata and controls63 lines (43 loc) · 1.52 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 % batch_mask_rema2a: batch script for priducing edgemask and datamask files % from DEM scene pairs. % Ian Howat, [email protected], Ohio State University % DEM directory demDir='/data3/REMA/region_04_ronne_shelf/tif_results/8m'; % start on file number strt=1; % and process every inc=1; fprintf('processing %s\n',demDir) fprintf('processing every %d files starting with %d\n',inc,strt); % make filename list demFiles = dir([demDir,'/*dem.tif']); demFiles = {demFiles.name}; demFiles = cellfun( @(x) [demDir,'/',x], demFiles, 'uniformoutput', false); % processing list I = strt:inc:length(demFiles); i=1; for i=1:1:length(I) demFile = demFiles{I(i)}; OutMaskName = strrep(demFile,'dem.tif','mask2a.tif'); fprintf('processing %d of %d: %s \n',i,length(I),demFile) if exist(OutMaskName,'file'); fprintf('mask exists, skipping\n'); continue; end m = remaMask2a(demFile); if isfield(m.Tinfo,'GeoDoubleParamsTag') if m.Tinfo.GeoDoubleParamsTag(1) > 0 projstr='polar stereo north'; else projstr='polar stereo south'; end else projstr=m.Tinfo.GeoAsciiParamsTag; a=findstr( projstr, 'Zone'); b=findstr( projstr, ','); c = findstr( projstr,'Northern Hemisphere'); if ~isempty(c) projstr=[projstr(a+4:b-1),' North']; else projstr=[projstr(a+4:b-1),' South']; end end writeGeotiff(OutMaskName,m.x,m.y,m.z,1,0,projstr) end |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |