Changeset 18216


Ignore:
Timestamp:
07/02/14 09:26:48 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: improved help

Location:
issm/trunk-jpl/src/m
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/inversion.m

    r18169 r18216  
    206206                        WriteData(fid,'object',obj,'fieldname','vy_obs','format','DoubleMat','mattype',1,'scale',1./yts);
    207207                        WriteData(fid,'object',obj,'fieldname','vz_obs','format','DoubleMat','mattype',1,'scale',1./yts);
    208                         WriteData(fid,'object',obj,'fieldname','thickness_obs','format','DoubleMat','mattype',1);
     208                        if(numel(obj.thickness_obs)==md.mesh.numberofelements),
     209                                mattype=2;
     210                        else
     211                                mattype=1;
     212                        end
     213                        WriteData(fid,'object',obj,'class','inversion','fieldname','thickness_obs','format','DoubleMat','mattype',mattype);
     214
    209215
    210216                        %process control parameters
  • issm/trunk-jpl/src/m/classes/model.m

    r18166 r18216  
    552552                        %
    553553                        %   Example:
    554                         %      md=extrude(md,8,3);
    555                         %      md=extrude(md,8,3,2);
     554                        %      md=extrude(md,15,1.3);
     555                        %      md=extrude(md,15,1.3,1.2);
    556556                        %      md=extrude(md,[0 0.2 0.5 0.7 0.9 0.95 1]);
    557557                        %
  • issm/trunk-jpl/src/m/classes/model.py

    r18077 r18216  
    462462
    463463                   Example:
    464                       md=extrude(md,8,3)
    465                       md=extrude(md,8,3,2)
    466                       md=extrude(md,[0 0.2 0.5 0.7 0.9 0.95 1])
     464                                md=extrude(md,15,1.3);
     465                                md=extrude(md,15,1.3,1.2);
     466                                md=extrude(md,[0 0.2 0.5 0.7 0.9 0.95 1])
    467467
    468468                   See also: MODELEXTRACT, COLLAPSE
  • issm/trunk-jpl/src/m/extrusion/project2d.m

    r17686 r18216  
    22%PROJECT2D - returns the value of a field for a given layer of the mesh
    33%
    4 %   project 'value' vector taken at layer 'layer' from extruded 2d-3d mesh onto 2d mesh
    5 %   used to do the extrusion. This routine is used to compare values between a 2d-3d mesh
    6 %   at a certain layer, and the equivalent value (if it exists), on the original 2d mesh.
    7 %   This routine relies heavily on projections (contained in 3d model md) recored during
    8 %   the extrude operation.
     4%   returns the value of a vector for a given layer from extruded mesh onto the 2d mesh
     5%   used to do the extrusion. This function is used to compare values between different
     6%   layers of a 3d mesh.
    97%
    108%   Usage:
     
    1210%
    1311%   Example:
    14 %      vel2=project2d(md3d,md3d.vel,2);
     12%      vel2=project2d(md3d,md3d.initialization.vel,2);
     13%      returns the velocity of the second layer (1 is the base)
    1514
    1615%some checks on list of arguments
  • issm/trunk-jpl/src/m/extrusion/project2d.py

    r17840 r18216  
    55        returns the value of a field for a given layer of the mesh
    66       
    7         project 'value' vector taken at layer 'layer' from extruded 2d-3d
    8         mesh onto 2d mesh used to do the extrusion. This routine is used to
    9         compare values between a 2d-3d mesh at a certain layer, and the
    10         equivalent value (if it exists), on the original 2d mesh.       
    117
    12         Note: for consistency with usage in ISSM, layers are indexed starting
    13         from one.  This routine accounts for the fact that python indexes from
    14         zero.  In other words, when using this function consider the bottom
    15         layer as layer=1. 
     8   returns the value of a vector for a given layer from extruded mesh onto the 2d mesh
     9   used to do the extrusion. This function is used to compare values between different
     10   layers of a 3d mesh.
    1611
    1712   Usage:
     
    1914
    2015   Example:
    21       vel2=project2d(md3d,md3d.vel,2)
     16      vel2=project2d(md3d,md3d.initialization.vel,2);
     17      returns the velocity of the second layer (1 is the base)
    2218        '''
    2319
Note: See TracChangeset for help on using the changeset viewer.