Changeset 2890


Ignore:
Timestamp:
01/22/10 07:24:45 (15 years ago)
Author:
Eric.Larour
Message:

Added aliases, similar to bash aliases.
meshread: can not read quads.
BamgCall: cosmetic.
pargenerate: generate idl style parameter file for processed images (Rignot)
plotbasins: replaced basinzoom by basin.

Location:
issm/trunk/src/m/utils
Files:
6 added
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Mesh/BamgCall.m

    r2651 r2890  
    1 function md=YamsCall(md,field,hmin,hmax,gradation,epsilon),
    2 %YAMSCALL - call yams
     1function md=BamgCall(md,field,hmin,hmax,gradation,epsilon),
     2%BAMGCALL - call bam
    33%
    44%   build a metric using the Hessian of the given field
    5 %   call Yams and the output mesh is plugged onto the model
     5%   call Bamg and the output mesh is plugged onto the model
    66%   -hmin = minimum edge length (m)
    77%   -hmax = maximum edge length (m)
     
    1010%
    1111%   Usage:
    12 %      md=YamsCall(md,field,hmin,hmax,gradation,epsilon);
     12%      md=BamgCall(md,field,hmin,hmax,gradation,epsilon);
    1313%
    1414%   Example:
    15 %      md=YamsCall(md,md.vel_obs,1500,10^8,1.3,0.9);
     15%      md=BamgCall(md,md.vel_obs,1500,10^8,1.3,0.9);
    1616
    1717global ISSM_DIR
     
    6363t2=clock;fprintf('%s\n',[' done (' num2str(etime(t2,t1)) ' seconds)']);
    6464
    65 %call yams
     65%call bamg
    6666fprintf('%s\n','      call Bamg...');
    6767system(['bamg -ratio ' num2str(gradation) ' -splitpbedge -nbv 1000000 -M carre0.met -b carre0.mesh -o carre1.mesh']);
  • issm/trunk/src/m/utils/Mesh/GetAreas.m

    r1795 r2890  
    4444if nargin==3,
    4545        %compute the surface of the triangle
    46         areas=abs(0.5*((x2-x1).*(y3-y1)-(y2-y1).*(x3-x1)));
     46        areas=(0.5*((x2-x1).*(y3-y1)-(y2-y1).*(x3-x1)));
    4747else
    4848        %V=area(triangle)*1/3(z1+z2+z3)
    4949        thickness=mean(z(index(:,4:6)),2)-mean(z(index(:,1:3)),2);
    50         areas=abs(0.5*((x2-x1).*(y3-y1)-(y2-y1).*(x3-x1))).*thickness;
     50        areas=(0.5*((x2-x1).*(y3-y1)-(y2-y1).*(x3-x1))).*thickness;
    5151end
  • issm/trunk/src/m/utils/Mesh/meshread.m

    r2614 r2890  
    2929                Struct.index=A(1:3,:)';
    3030
     31        elseif strcmp(A,'Quadrilaterals'),
     32                Struct.nels=fscanf(fid,'%i',1);
     33                A=fscanf(fid,'%i %i %i %i',[5 Struct.nels]);
     34                Struct.index=A(1:4,:)';
    3135        else
    3236                %do nothing
  • issm/trunk/src/m/utils/Plot/basinzoom.m

    r2589 r2890  
    128128        regions=AddAvailableRegion(regions,'pig',-1.72*10^6,-1.45*10^6,-3.5*10^5,.5*10^5);
    129129        regions=AddAvailableRegion(regions,'ronneiceshelf',-1.5*10^6,-.7*10^6,1*10^5,9.3*10^5);
     130        regions=AddAvailableRegion(regions,'ris',-1.5*10^6,-.7*10^6,1*10^5,9.3*10^5);
    130131        regions=AddAvailableRegion(regions,'roosevelt',-6.2797*10^5,-1.5414*10^5,-1.2734*10^6,-.9609*10^6);
    131132        regions=AddAvailableRegion(regions,'rossiceshelf',-8*10^5,4.5*10^5,-13.8*10^5,-5*10^5);
Note: See TracChangeset for help on using the changeset viewer.