Changeset 6660
- Timestamp:
- 11/24/10 12:06:14 (14 years ago)
- Location:
- issm/trunk/src/m/model/plot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/plot_none.m
r3118 r6660 10 10 options=addfielddefault(options,'axis','equal'); 11 11 12 if exist(options,'overlay'), 13 plot_overlay(md,'none',options,nlines,ncols,i); 14 return; 15 end 16 12 17 %apply options 13 18 applyoptions(md,[],options); -
issm/trunk/src/m/model/plot/plot_overlay.m
r6638 r6660 9 9 %process mesh and data 10 10 [x y z elements is2d]=processmesh(md,[],options); 11 [data datatype]=processdata(md,data,options); 11 if strcmpi(data,'none'), 12 radaronly=1; 13 data=NaN*ones(md.numberofgrids,1); 14 datatype=1; 15 else 16 radaronly=0; 17 [data datatype]=processdata(md,data,options); 18 end 12 19 13 20 %check is2d … … 30 37 else 31 38 disp('Extracting radar image...'); 32 md=radarpower(md,xlim2,ylim2,getfieldvalue(options,'highres',0)); 39 options=addfielddefault(options,'xlim',xlim2); 40 options=addfielddefault(options,'ylim',ylim2); 41 md=radarpower(md,options); 33 42 end 34 43 … … 64 73 %hue (H) 65 74 h_data=(data_grid-data_min)/(data_max-data_min); 75 if radaronly, 76 h_data(:)=0; 77 end 66 78 %saturation (S) 67 79 s_data=max(min((0.1+h_data).^(1/transparency),1),0); … … 110 122 %Apply options, without colorbar and without grid 111 123 options=changefieldvalue(options,'colormap',colorm); %We used an HSV colorbar 112 options=changefieldvalue(options,'caxis',[data_min data_max]); %force caxis so that the colorbar is ready 124 if ~isnan(data_min), 125 options=changefieldvalue(options,'caxis',[data_min data_max]); %force caxis so that the colorbar is ready 126 end 113 127 options=addfielddefault(options,'axis','equal off'); %default axis 114 128 applyoptions(md,data,options); -
issm/trunk/src/m/model/plot/plotdoc.m
r6498 r6660 96 96 disp(' ''yticklabel'': specifiy yticklabel'); 97 97 disp(' ''overlay'': yes or no. This will overlay a radar amplitude image behind'); 98 disp(' ''overlay_image'': path to overlay image. provide overlay_xlim, overlay_ylim, overlay_xposting and overlay_yposting options also'); 98 99 disp(' ''contrast'': (default 1) coefficient to add contrast to the radar amplitude image used in overlays'); 99 100 disp(' ''highres'': resolution of overlayed radar amplitude image (default is 0, high resolution is 1).');
Note:
See TracChangeset
for help on using the changeset viewer.