src/grib_iterator_class_mercator.c
/* Adjust longitude (in radians) to range -180 to 180 */
Adjust longitude (in radians) to range -180 to 180
Adjust longitude ( in radians ) to range - 180 to 180
static double adjust_lon_radians(double lon)
{
    if (lon > M_PI)  lon -= 2 * M_PI;
    if (lon < -M_PI) lon += 2 * M_PI;
    return lon;
}
static double adjust_lon_radians ( double lon ) { if ( lon > M_PI ) lon -= 2 * M_PI ; if ( lon < - M_PI ) lon += 2 * M_PI ; return lon ; }
Adjust longitude (in radians) to range -180 to 180
Adjust longitude ( in radians ) to range - 180 to 180