Commit bb44726d authored by Jesse Mapel's avatar Jesse Mapel Committed by jlaura
Browse files

Removed switch statement for ls distortion: (#150)

parent b6ab3d8f
Loading
Loading
Loading
Loading
+10 −21
Original line number Diff line number Diff line
@@ -1713,15 +1713,6 @@ void UsgsAstroLsSensorModel::losToEcf(
   // Remove lens distortion
   double isisFocalPlaneX = isisNatFocalPlaneX;
   double isisFocalPlaneY = isisNatFocalPlaneY;
   switch (m_ikCode)
   {
   case -85610:
   case -85600:
      isisFocalPlaneY = isisNatFocalPlaneY / (1.0 + m_opticalDistCoef[0]
         * isisNatFocalPlaneY * isisNatFocalPlaneY);
      break;

   default:
  if (m_opticalDistCoef[0] != 0.0 ||
     m_opticalDistCoef[1] != 0.0 ||
     m_opticalDistCoef[2] != 0.0)
@@ -1736,8 +1727,6 @@ void UsgsAstroLsSensorModel::losToEcf(
         isisFocalPlaneY = isisNatFocalPlaneY * (1.0 - dr);
      }
   }
      break;
   }

   // Define imaging ray in image space