Changeset 11220


Ignore:
Timestamp:
01/26/12 09:36:17 (13 years ago)
Author:
Mathieu Morlighem
Message:

Getting rid of modelfields (I forgot some classes)

Location:
issm/trunk-jpl/src/m/classes
Files:
1 deleted
3 edited

Legend:

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

    r11180 r11220  
    66classdef flaim
    77        properties (SetAccess=public)
    8                 targets            = modelfield('default','','marshall',false);
    9                 tracks             = modelfield('default','','marshall',false);
    10                 flightreqs         = modelfield('default',struct(),'marshall',false);
    11                 criterion          = modelfield('default',NaN,'marshall',false);
    12                 gridsatequator     = modelfield('default',200000,'marshall',false);
    13                 usevalueordering   = modelfield('default',true,'marshall',false);
    14                 split_antimeridian = modelfield('default',true,'marshall',false);
    15                 solution           = modelfield('default','','marshall',false);
    16                 quality            = modelfield('default',0,'marshall',false);
    17                 path_optimize      = modelfield('default',false,'marshall',false);
    18                 opt_ndir           = modelfield('default',1,'marshall',false);
    19                 opt_dist           = modelfield('default',25,'marshall',false);
    20                 opt_niter          = modelfield('default',30000,'marshall',false);
     8                targets            = ''
     9                tracks             = ''
     10                flightreqs         = struct()
     11                criterion          = NaN
     12                gridsatequator     = 200000
     13                usevalueordering   = true
     14                split_antimeridian = true
     15                solution           = ''
     16                quality            = 0
     17                path_optimize      = false
     18                opt_ndir           = 1
     19                opt_dist           = 25
     20                opt_niter          = 30000
    2121        end
    2222        methods
     
    3737                end % }}}
    3838                function obj = setdefaultparameters(obj) % {{{
    39 
    40                         %first, use the defaults provided by the properties definition above.
    41                         fieldnames=fields(obj);
    42                         for i=1:length(fieldnames),
    43                                 fieldname=fieldnames{i};
    44                                 obj.(fieldname)=obj.(fieldname).default;
    45                         end
    4639
    4740                end % }}}
  • issm/trunk-jpl/src/m/classes/inversion.m

    r11140 r11220  
    66classdef inversion
    77        properties (SetAccess=public)
    8                 iscontrol                   = modelfield('default',0,'marshall',true,'format','Boolean');
    9                 control_parameters          = modelfield('default',NaN,'marshall',true,'preprocess','marshallcontroltype','format','DoubleMat','mattype',3);
    10                 nsteps                      = modelfield('default',0,'marshall',true,'format','Integer');
    11                 maxiter_per_step            = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3);
    12                 cost_functions              = modelfield('default',NaN,'marshall',true,'preprocess','marshallcmresponses','format','DoubleMat','mattype',3);
    13                 cost_functions_coefficients = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
    14                 gradient_scaling            = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3);
    15                 cost_function_threshold     = modelfield('default',0,'marshall',true,'format','Double');
    16                 min_parameters              = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3);
    17                 max_parameters              = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3);
    18                 step_threshold              = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',3);
    19                 gradient_only               = modelfield('default',0,'marshall',true,'format','Boolean');
    20                 vx_obs                      = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
    21                 vy_obs                      = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
    22                 vz_obs                      = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
    23                 vel_obs                     = modelfield('default',NaN,'marshall',false);
    24                 thickness_obs               = modelfield('default',NaN,'marshall',true,'format','DoubleMat','mattype',1);
     8                iscontrol                   = 0
     9                control_parameters          = NaN
     10                nsteps                      = 0
     11                maxiter_per_step            = NaN
     12                cost_functions              = NaN
     13                cost_functions_coefficients = NaN
     14                gradient_scaling            = NaN
     15                cost_function_threshold     = 0
     16                min_parameters              = NaN
     17                max_parameters              = NaN
     18                step_threshold              = NaN
     19                gradient_only               = 0
     20                vx_obs                      = NaN
     21                vy_obs                      = NaN
     22                vz_obs                      = NaN
     23                vel_obs                     = NaN
     24                thickness_obs               = NaN
    2525        end
    2626        methods
     
    4141                end % }}}
    4242                function obj = setdefaultparameters(obj) % {{{
    43 
    44                         %first, use the defaults provided by the properties definition above.
    45                         fieldnames=fields(obj);
    46                         for i=1:length(fieldnames),
    47                                 fieldname=fieldnames{i};
    48                                 obj.(fieldname)=obj.(fieldname).default;
    49                         end
    5043
    5144                         %parameter to be inferred by control methods (only
  • issm/trunk-jpl/src/m/classes/radaroverlay.m

    r9821 r11220  
    66classdef radaroverlay
    77        properties (SetAccess=public)
    8                 pwr = modelfield('default',NaN,'marshall',false);
    9                 x   = modelfield('default',NaN,'marshall',false);
    10                 y   = modelfield('default',NaN,'marshall',false);
     8                pwr = NaN;
     9                x   = NaN;
     10                y   = NaN;
    1111        end
    1212        methods
     
    2828                function obj = setdefaultparameters(obj) % {{{
    2929
    30                         %first, use the defaults provided by the properties definition above.
    31                         fieldnames=fields(obj);
    32                         for i=1:length(fieldnames),
    33                                 fieldname=fieldnames{i};
    34                                 obj.(fieldname)=obj.(fieldname).default;
    35                         end
    3630                end % }}}
    3731                function disp(obj) % {{{
Note: See TracChangeset for help on using the changeset viewer.