Changeset 22939


Ignore:
Timestamp:
07/13/18 14:21:05 (7 years ago)
Author:
Eric.Larour
Message:

CHG: some more diagnostic outputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/miscellaneous/diagnostics.m

    r21828 r22939  
    4646                yposting=getfieldvalue(options,'velposting',500);
    4747
    48                 xm=min(md.mesh.x):posting:max(md.mesh.x);
    49                 ym=min(md.mesh.y):posting:max(md.mesh.y);
     48                xmin=min(md.mesh.x); ymax=max(md.mesh.y);
     49                ncols=(max(md.mesh.x)-min(md.mesh.x))/xposting+1;
     50                nlines=(max(md.mesh.y)-min(md.mesh.y))/yposting+1;
    5051               
    51                 vel=InterpFromMeshToGrid(md.mesh.elements,md.mesh.x,md.mesh.y,vel,xm,ym,0.);
     52                [xm,ym,vel]=InterpFromMeshToGrid(md.mesh.elements,md.mesh.x,md.mesh.y,vel,xmin,ymax,xposting,yposting,nlines,ncols,0);
    5253                vel=uint16(flipud(vel));
    5354
Note: See TracChangeset for help on using the changeset viewer.