visad/src/main/java/ucar/nc2/iosp/mcidas/McIDASAreaProjection.java
public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) {
    float[] fromLatA = from[latIndex];
    float[] fromLonA = from[lonIndex];

    float[][] xy = anav.toLinEle(new float[][]{fromLatA, fromLonA});
    if (xy == null) return null;
    to[INDEX_X] = xy[0];
    to[INDEX_Y] = xy[1];
    return to;
  }
public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) {
    float[] fromLatA = from[latIndex];
    float[] fromLonA = from[lonIndex];

    float[][] xy = anav.toLinEle(new float[][]{fromLatA, fromLonA});
    if (xy == null) return null;
    to[INDEX_X] = xy[0];
    to[INDEX_Y] = xy[1];
    return to;
  }
Convert lat/lon coordinates to projection coordinates.

@param from     array of lat/lon coordinates: from[2][n],
where from[0][i], from[1][i] is the (lat,lon)
coordinate of the ith point
@param to       resulting array of projection coordinates,
where to[0][i], to[1][i] is the (x,y) coordinate
of the ith point
@param latIndex index of latitude in "from"
@param lonIndex index of longitude in "from"
@return the "to" array.