earthlib.NIRv
Methods for computing NIRv (near infrared reflectance of vegetation) from ee.Image data
ASTER(image)
¶
Transform ASTER image data to scaled reflectance values
Source code in earthlib/NIRv.py
44 45 46 47 48 | |
AVNIR2(image)
¶
Transform ALOS-AVNIR2 image data to scaled reflectance values
Source code in earthlib/NIRv.py
51 52 53 54 55 | |
DoveR(image)
¶
Transform Planet DoveR image data to scaled reflectance values
Source code in earthlib/NIRv.py
58 59 60 61 62 | |
Landsat4(image)
¶
Transform Landsat4 image data to scaled reflectance values
Source code in earthlib/NIRv.py
65 66 67 68 69 | |
Landsat5(image)
¶
Transform Landsat5 image data to scaled reflectance values
Source code in earthlib/NIRv.py
72 73 74 75 76 | |
Landsat7(image)
¶
Transform Landsat7 image data to scaled reflectance values
Source code in earthlib/NIRv.py
79 80 81 82 83 | |
Landsat8(image)
¶
Transform Landsat8 image data to scaled reflectance values
Source code in earthlib/NIRv.py
86 87 88 89 90 | |
MODIS(image)
¶
Transform MODIS image data to scaled reflectance values
Source code in earthlib/NIRv.py
93 94 95 96 97 | |
NIRvWrapper(image, red_band, nir_band)
¶
Compute NIRv for an image.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
image |
Image
|
the input image object. |
required |
red_band |
str
|
the name of the red band to use |
required |
nir_band |
str
|
the name of the near infrared band to use |
required |
Returns:
| Type | Description |
|---|---|
Image
|
appends the input image with and "NIRv" band. |
Source code in earthlib/NIRv.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
PlanetScope(image)
¶
Transform PlanetScope image data to scaled reflectance values
Source code in earthlib/NIRv.py
100 101 102 103 104 | |
Sentinel2(image)
¶
Transform Sentinel2 image data to scaled reflectance values
Source code in earthlib/NIRv.py
107 108 109 110 111 | |
SuperDove(image)
¶
Transform Planet SuperDove image data to scaled reflectance values
Source code in earthlib/NIRv.py
114 115 116 117 118 | |
VIIRS(image)
¶
Transform VIIRS image data to scaled reflectance values
Source code in earthlib/NIRv.py
121 122 123 124 125 | |
bySensor(sensor)
¶
Returns the appropriate NIRv 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 NIRv function associated with a sensor to pass to an ee .map() call |
Source code in earthlib/NIRv.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 | |
getNIRvBands(sensor)
¶
Look-up the red and near infrared bands for NIRv calculation
Source code in earthlib/NIRv.py
128 129 130 131 132 133 134 135 136 | |