visad/src/main/java/ucar/nc2/iosp/mcidas/McIDASAreaProjection.java
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) {
    double toX, toY;
    double fromLat = latLon.getLatitude();
    double fromLon = latLon.getLongitude();


    double[][] xy = anav.toLinEle(new double[][]{{fromLat}, {fromLon}});
    if (xy == null) return null;
    toX = xy[0][0];
    toY = xy[1][0];

    result.setLocation(toX, toY);
    return result;
  }
public ProjectionPoint latLonToProj(LatLonPoint latLon, ProjectionPointImpl result) {
    double toX, toY;
    double fromLat = latLon.getLatitude();
    double fromLon = latLon.getLongitude();


    double[][] xy = anav.toLinEle(new double[][]{{fromLat}, {fromLon}});
    if (xy == null) return null;
    toX = xy[0][0];
    toY = xy[1][0];

    result.setLocation(toX, toY);
    return result;
  }
Convert a LatLonPoint to projection coordinates

@param latLon convert from these lat, lon coordinates
@param result the object to write to
@return the given result