Changeset 16437
- Timestamp:
- 10/16/13 17:01:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/radarpower.m
r14026 r16437 25 25 ylim = getfieldvalue(options,'ylim',[min(md.mesh.y) max(md.mesh.y)]); 26 26 posting = getfieldvalue(options,'posting',0); % 0 -> image posting default 27 a = getfieldvalue(options,'overlay_adjust_a',0); 28 b = getfieldvalue(options,'overlay_adjust_b',1); 29 c = getfieldvalue(options,'overlay_adjust_c',0); 30 d = getfieldvalue(options,'overlay_adjust_d',1); 27 31 28 32 %find gdal coordinates … … 85 89 %Read in temp.tif: 86 90 im=imread('temp.tif','TIFF'); 91 %adjust contrast and brightness 92 im=imadjust(im,[a b],[c d]); 87 93 pixelskip=max(1,ceil(posting/((x1-x0)/(size(im,2))))); 88 94 md.radaroverlay.pwr=double(flipud(im(1:pixelskip:end,1:pixelskip:end))); … … 114 120 %Read in temp.tif: 115 121 im=imread('temp.tif','TIFF'); 122 %adjust contrast and brightness 123 im=imadjust(im,[a b],[c d]); 116 124 pixelskip=max(1,ceil(posting/((x1-x0)/(size(im,2))))); 117 125 md.radaroverlay.pwr=double(flipud(im(1:pixelskip:end,1:pixelskip:end))); … … 144 152 disp('Warning: expecting coordinates in polar stereographic (Std Latitude: 70ºN Meridian: 45º)'); 145 153 im=imread(overlay_image); 154 %adjust contrast and brightness 155 im=imadjust(im,[a b],[c d]); 146 156 im=im(toplefty:toplefty+sizey,topleftx:topleftx+sizex); 147 157 md.radaroverlay.pwr=double(flipud(im));
Note:
See TracChangeset
for help on using the changeset viewer.