earthlib.Scale
Methods for scaling image data to normalized reflectance values (0-1 float)
ASTER(image)
¶
Transform ASTER image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
94 95 96 97 98 | |
AVNIR2(image)
¶
Transform ALOS-AVNIR2 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
101 102 103 104 105 | |
DoveR(image)
¶
Transform Planet Dove-R image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
115 116 117 118 119 | |
Landsat4(image)
¶
Transform Landsat4 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
45 46 47 48 49 | |
Landsat5(image)
¶
Transform Landsat5 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
52 53 54 55 56 | |
Landsat7(image)
¶
Transform Landsat7 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
59 60 61 62 63 | |
Landsat8(image)
¶
Transform Landsat8 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
66 67 68 69 70 | |
MODIS(image)
¶
Transform MODIS image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
80 81 82 83 84 | |
NEON(image)
¶
Transform NEON image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
108 109 110 111 112 | |
PlanetScope(image)
¶
Transform PlanetScope image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
129 130 131 132 133 | |
Sentinel2(image)
¶
Transform Sentinel2 image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
73 74 75 76 77 | |
SuperDove(image)
¶
Transform Planet SuperDove image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
122 123 124 125 126 | |
VIIRS(image)
¶
Transform VIIRS image data to scaled reflectance values
Source code in earthlib/geelib/Scale.py
87 88 89 90 91 | |
bySensor(sensor)
¶
Returns the appropriate scaling function to use by sensor type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sensor
|
str
|
string with the sensor name to return (e.g. "Landsat8", "Sentinel2"). |
required |
Returns:
| Type | Description |
|---|---|
Callable
|
the scale function associated with a sensor to pass to an ee .map() call |
Source code in earthlib/geelib/Scale.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | |
getScaleParams(sensor)
¶
Look-up the scale and offset values for a sensor
Source code in earthlib/geelib/Scale.py
136 137 138 139 140 | |
scaleWrapper(image, scale=1, offset=0)
¶
Apply image rescaling and offset adjustments
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image
|
Image
|
the input image object |
required |
scale
|
float
|
the image rescaling factor |
1
|
offset
|
float
|
the image offset factor |
0
|
Returns:
| Type | Description |
|---|---|
Image
|
the input rescaled as a 0-1 floating point image |
Source code in earthlib/geelib/Scale.py
143 144 145 146 147 148 149 150 151 152 153 154 155 | |