cdm/src/main/java/ucar/unidata/geoloc/ProjectionImpl.java
public float[][] latLonToProj(float[][] from, int latIndex,
                                int lonIndex) {
    return latLonToProj(from, new float[2][from[0].length], latIndex,
            lonIndex);
  }
public float[][] latLonToProj(float[][] from, int latIndex,
                                int lonIndex) {
    return latLonToProj(from, new float[2][from[0].length], latIndex,
            lonIndex);
  }
Convert lat/lon coordinates to projection coordinates.

@param from     array of lat/lon coordinates: from[2][n], where
(from[latIndex][i], from[lonIndex][i]) is the (lat,lon)
coordinate of the ith point
@param latIndex index of lat coordinate; must be 0 or 1
@param lonIndex index of lon coordinate; must be 0 or 1
@return resulting array of projection coordinates: to[2][n] where
(to[0][i], to[1][i]) is the (x,y) coordinate of the ith point