Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlegeolocate.m
borderStylesolid
      if constraintType
        warning('Trying speed of light')
        constraintType = 0;
        % switch the constraint type and try again
        \[locest,actual,error,regarea,distNearestLandmark,target_id,constraintType,inRegion\] = geolocate(file,extension,hullbool, constraintType, bestlineTable);
        return;
      else 
        % find the badPairs that lead to no region, write them to stdout  
        badPairs = analyzeNoRegion( measurements )
        %error(\['No SOL intersection region for ', char(file)\]) 
        region = \[NaN NaN\];
        locest = \[NaN NaN\];
        error = NaN;
        regarea = NaN;
        results = \[target_id error; distNearestLandmark regarea; locest; actual; region\];
        dlmwrite(\[char(file),char(extension)\],results,' ');
        return;
      end;
if constraintType
  warning('Trying speed of light')
  constraintType = 0;
  % switch the constraint type and try again
  \[locest,actual,error,regarea,distNearestLandmark,target_id,constraintType,inRegion\] = geolocate(file,extension,hullbool, constraintType, bestlineTable);
  return;
else 
  % find the badPairs that lead to no region, write them to stdout  
  badPairs = analyzeNoRegion( measurements )
  %error(\['No SOL intersection region for ', char(file)\]) 
  region = \[NaN NaN\];
  locest = \[NaN NaN\];
  error = NaN;
  regarea = NaN;
  results = \[target_id error; distNearestLandmark regarea; locest; actual; region\];
  dlmwrite(\[char(file),char(extension)\],results,' ');
  return;
end;