/** * Transform integer FGF coordinates to (longitude, latitude) of pixel center * The (i,j) pixel, zero-based, refers to the pixel center. * * @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 * @return (Longitude, Latitude), units: degrees, of FGF (i,j) pixel center */ public double[] elemLineToEarth(int elem, int line, double scale_x, double offset_x, double scale_y, double offset_y) { return FGFtoEarth((double) elem, (double) line, scale_x, offset_x, scale_y, offset_y); }
/** * Transform integer FGF coordinates to (longitude, latitude) of pixel center * The (i,j) pixel, zero-based, refers to the pixel center. * * @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 * @return (Longitude, Latitude), units: degrees, of FGF (i,j) pixel center */ public double[] elemLineToEarth(int elem, int line, double scale_x, double offset_x, double scale_y, double offset_y) { return FGFtoEarth((double) elem, (double) line, scale_x, offset_x, scale_y, offset_y); }