Changeset 15146


Ignore:
Timestamp:
05/29/13 15:35:24 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: moved plot_googleearth.m to plot_googlemaps.m

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_googleearth(md,data,options,plotlines,plotcols,i)
    2 %PLOT_OVERLAY - superimpose radar image to a given field
     1function plot_googlemaps(md,data,options,plotlines,plotcols,i)
     2%PLOT_GOOGLEMAPS - superimpose Google maps to a given field
    33%
    44%   Usage:
    5 %      plot_googleearth(md,data,options,plotlines,plotcols,i)
     5%      plot_googlemaps(md,data,options,plotlines,plotcols,i)
    66%
    77%   See also: PLOTMODEL
     
    2929
    3030%Find optimal zoom
    31 zoom = optimalzoom(ullat,ullon,lrlat,lrlon);
     31if exist(options,'zoom'),
     32        zoom = getfieldvalue(options,'zoom');
     33else
     34        zoom    = optimalzoom(ullat,ullon,lrlat,lrlon);
     35        display(['Info: default zoom level ' num2str(zoom)]);
     36end
    3237scale   = 1;
    3338maxsize = 640;
     39transparency = getfieldvalue(options,'transparency',.3);
    3440
    3541%convert all these coordinates to pixels
     
    101107
    102108alpha=ones(size(X));
    103 alpha(find(~data_nan))=0.5;
     109alpha(find(~data_nan))=transparency;
    104110alpha=repmat(alpha,[1 1 3]);
    105111
  • issm/trunk-jpl/src/m/plot/plot_manager.m

    r15109 r15146  
    157157
    158158%Figure out if this is a semi-transparent plot.
    159 if exist(options,'googleearth'),
    160         plot_googleearth(md,data,options,nlines,ncols,i);
     159if exist(options,'googlemaps'),
     160        plot_googlemaps(md,data,options,nlines,ncols,i);
    161161        return;
    162162end
Note: See TracChangeset for help on using the changeset viewer.