Changeset 15146
- Timestamp:
- 05/29/13 15:35:24 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_googlemaps.m
r15145 r15146 1 function plot_google earth(md,data,options,plotlines,plotcols,i)2 %PLOT_ OVERLAY - superimpose radar imageto a given field1 function plot_googlemaps(md,data,options,plotlines,plotcols,i) 2 %PLOT_GOOGLEMAPS - superimpose Google maps to a given field 3 3 % 4 4 % Usage: 5 % plot_google earth(md,data,options,plotlines,plotcols,i)5 % plot_googlemaps(md,data,options,plotlines,plotcols,i) 6 6 % 7 7 % See also: PLOTMODEL … … 29 29 30 30 %Find optimal zoom 31 zoom = optimalzoom(ullat,ullon,lrlat,lrlon); 31 if exist(options,'zoom'), 32 zoom = getfieldvalue(options,'zoom'); 33 else 34 zoom = optimalzoom(ullat,ullon,lrlat,lrlon); 35 display(['Info: default zoom level ' num2str(zoom)]); 36 end 32 37 scale = 1; 33 38 maxsize = 640; 39 transparency = getfieldvalue(options,'transparency',.3); 34 40 35 41 %convert all these coordinates to pixels … … 101 107 102 108 alpha=ones(size(X)); 103 alpha(find(~data_nan))= 0.5;109 alpha(find(~data_nan))=transparency; 104 110 alpha=repmat(alpha,[1 1 3]); 105 111 -
issm/trunk-jpl/src/m/plot/plot_manager.m
r15109 r15146 157 157 158 158 %Figure out if this is a semi-transparent plot. 159 if exist(options,'google earth'),160 plot_google earth(md,data,options,nlines,ncols,i);159 if exist(options,'googlemaps'), 160 plot_googlemaps(md,data,options,nlines,ncols,i); 161 161 return; 162 162 end
Note:
See TracChangeset
for help on using the changeset viewer.