cdm/src/main/java/ucar/unidata/geoloc/projection/sat/GEOSTransform.java
public int[] earthToElemLine(double geographic_lon, double geographic_lat, double scale_x, double offset_x, double scale_y, double offset_y) {
    double[] fgf = earthToFGF(geographic_lon, geographic_lat, scale_x, offset_x, scale_y, offset_y);
    int elem = (int) Math.floor(fgf[0] + 0.5);
    int line = (int) Math.floor(fgf[1] + 0.5);
    return new int[]{elem, line};
  }
public int[] earthToElemLine(double geographic_lon, double geographic_lat, double scale_x, double offset_x, double scale_y, double offset_y) {
    double[] fgf = earthToFGF(geographic_lon, geographic_lat, scale_x, offset_x, scale_y, offset_y);
    int elem = (int) Math.floor(fgf[0] + 0.5);
    int line = (int) Math.floor(fgf[1] + 0.5);
    return new int[]{elem, line};
  }
public int [ ] earthToElemLine ( double geographic_lon , double geographic_lat , double scale_x , double offset_x , double scale_y , double offset_y ) { double [ ] fgf = earthToFGF ( geographic_lon , geographic_lat , scale_x , offset_x , scale_y , offset_y ) ; int elem = ( int ) Math . floor ( fgf [ 0 ] + 0.5 ) ; int line = ( int ) Math . floor ( fgf [ 1 ] + 0.5 ) ; return new int [ ] { elem , line } ; }
Transform pixel center Earth coordinates (lon,lat) to integer FGF coordinates.

@param scale_x  scaleFactor from the x coordinate variable
@param offset_x addOffset from the x coordinate variable
@param scale_y  scaleFactor from the y coordinate variable
@param offset_y addOffset from the y coordinate variable
Transform pixel center Earth coordinates ( lon lat ) to integer FGF coordinates .