Changeset 2726
- Timestamp:
- 12/11/09 14:51:33 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/plot_overlay.m
r2725 r2726 24 24 25 25 %radar power 26 redo=1; 27 if ~any(isnan(md.sarxm)) & ~any(isnan(md.sarym)) 28 choice=input('This model seems to have a radar power image. Do you want to use it? (y/n)','s'); 29 if strcmp(choice,'y'), redo=0; end 30 end 31 if redo, 26 if ~any(isnan(md.sarxm)) & ~any(isnan(md.sarym)) & ~any(isnan(md.sarpwr)), 27 disp('plot_overlay info: the radar image held by the model is being used'); 28 else 32 29 t1=clock; fprintf('%s','Extracting radar image...'); 33 30 md=radarpower(md,getfieldvalue(options,'hem','s'),xlim,ylim,getfieldvalue(options,'highres',0)); -
issm/trunk/src/m/classes/public/radarpower.m
r2725 r2726 43 43 44 44 %Read and crop file 45 tic46 45 im=imread(jpgim); 47 toc48 tic49 46 im=im(toplefty:toplefty+sizey,topleftx:topleftx+sizex); 50 toc51 47 md.sarpwr=double(flipud(im)); 52 48 md.sarxm=(x0:(x1-x0)/(size(md.sarpwr,2)-1):x1);
Note:
See TracChangeset
for help on using the changeset viewer.