Changeset 586 for trunk/src/proj_field.m


Ignore:
Timestamp:
Mar 13, 2013, 9:12:09 AM (8 years ago)
Author:
sommeria
Message:

tps_coeff_field introduced and several bugs corrected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/proj_field.m

    r581 r586  
    21872187
    21882188%% transfer coordinate unit
     2189if isfield(ProjData,'CoordUnit')
     2190    ProjData=rmfield(ProjData,'CoordUnit');% do not transfer by default (to avoid x/y=1 for profiles)
     2191end
    21892192if isfield(FieldData,'CoordUnit')
    21902193    if isfield(ObjectData,'CoordUnit') && ~strcmp(FieldData.CoordUnit,ObjectData.CoordUnit)
    21912194        errormsg=[ObjectData.Type ' in ' ObjectData.CoordUnit ' coordinates, while field in ' FieldData.CoordUnit ];
    21922195        return
    2193     else
     2196    elseif strcmp(ObjectData.Type,'plane')|| strcmp(ObjectData.Type,'volume')
    21942197         ProjData.CoordUnit=FieldData.CoordUnit;
    21952198    end
Note: See TracChangeset for help on using the changeset viewer.