forecasting/phenology/pheno_utils.py
def pixel_loc ( longitude, latitude ):
    """This function gets the pixel location from a given longitude and latitude.
    It is used by user-level functions, and assumes the global 1.5 degree 
    grid from ERA interim is being used."""
    
    igeoT = [ 120.0, 0.6666666666666666, 0.0, 60.0, 0.0, -0.6666666666666666]
    
    [ix, iy] = gdal.ApplyGeoTransform ( igeoT, longitude, latitude)
    return ( ix, iy )
This function gets the pixel location from a given longitude and latitude.
    It is used by user-level functions, and assumes the global 1.5 degree 
    grid from ERA interim is being used.
This function gets the pixel location from a given longitude and latitude.
It is used by user-level functions, and assumes the global 1.5 degree
grid from ERA interim is being used.
This function gets the pixel location from a given longitude and latitude . It is used by user - level functions and assumes the global 1 . 5 degree grid from ERA interim is being used .
def pixel_loc ( longitude, latitude ):
    igeoT = [ 120.0, 0.6666666666666666, 0.0, 60.0, 0.0, -0.6666666666666666]
    [ix, iy] = gdal.ApplyGeoTransform ( igeoT, longitude, latitude)
    return ( ix, iy )
def pixel_loc ( longitude , latitude ) : igeoT = [ 120.0 , 0.6666666666666666 , 0.0 , 60.0 , 0.0 , - 0.6666666666666666 ] [ ix , iy ] = gdal . ApplyGeoTransform ( igeoT , longitude , latitude ) return ( ix , iy )
This function gets the pixel location from a given longitude and latitude.
This function gets the pixel location from a given longitude and latitude .
"""This function gets the pixel location from a given longitude and latitude.
    It is used by user-level functions, and assumes the global 1.5 degree 
    grid from ERA interim is being used."""
longitude
latitude