Changeset 20795


Ignore:
Timestamp:
06/22/16 21:20:29 (9 years ago)
Author:
seroussi
Message:

CHG: fixed some minor problems

Location:
issm/trunk-jpl/examples/Pig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/Pig/PigRegion.m

    r20730 r20795  
    88xmin    = ncreadatt(nsidc_vel,'/','xmin');
    99ymax    = ncreadatt(nsidc_vel,'/','ymax');
    10 spacing = ncreadatt(nsidc_vel,'/','spacing');
     10spacing = ncreadatt(nsidc_vel,'/','spacing');ls
     11
    1112nx      = double(ncreadatt(nsidc_vel,'/','nx'));
    1213ny      = double(ncreadatt(nsidc_vel,'/','ny'));
     
    3132x_pig=x(posx);
    3233posy=find(y<=1.0e5 & y>-4.0e5);
    33 y_pig=y(posy);
     34y_pig=flipud(y(posy));
    3435
    3536vx_pig=flipud(vx(posx,posy)');
     
    3738vel_pig=sqrt(vx_pig.^2+vy_pig.^2);
    3839
    39 imagesc(x_pig,y_pig,vel_pig)
     40imagesc(x_pig,y_pig,log(vel_pig+1))
     41axis xy equal
  • issm/trunk-jpl/examples/Pig/runme.m

    r20764 r20795  
    1515        %ploting
    1616        plotmodel(md,'data','mesh')
     17        return;
    1718
    1819        % Load Velocities
     
    144145        md = loadmodel('./Models/PIG_Control_drag');
    145146
    146         plotmodel(md,'nlines',2,'ncols',2,'unit#all','km','axis#all','equal',...
     147        plotmodel(md,'axis#all','equal',...
    147148                'xlim#all',[min(md.mesh.x) max(md.mesh.x)]/10^3,...
    148149                'ylim#all',[min(md.mesh.y) max(md.mesh.y)]/10^3,...
     
    181182        surf=find(mdHO.mesh.vertexonsurface);
    182183
    183         plotmodel(mdHO,'nlines',3,'ncols',2,'unit#all','km','axis#all','equal',...
     184        plotmodel(mdHO,'nlines',3,'ncols',2,'axis#all','equal',...
    184185                                                'xlim#all',[min(mdHO.mesh.x) max(mdHO.mesh.x)]/10^3,...
    185186                                                'ylim#all',[min(mdHO.mesh.y) max(mdHO.mesh.y)]/10^3,...
Note: See TracChangeset for help on using the changeset viewer.