RadGEEToolbox 1.6.5__tar.gz → 1.6.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RadGEEToolbox
3
- Version: 1.6.5
3
+ Version: 1.6.6
4
4
  Summary: Streamlined Multispectral & SAR Analysis for Google Earth Engine Python API
5
5
  Home-page: https://github.com/radwinskis/RadGEEToolbox
6
6
  Author: Mark Radwin
@@ -149,15 +149,15 @@ _____________
149
149
 
150
150
  ### Installing via pip
151
151
 
152
- To install `RadGEEToolbox` version 1.6.5 using pip (NOTE: it is recommended to create a new virtual environment):
152
+ To install `RadGEEToolbox` version 1.6.6 using pip (NOTE: it is recommended to create a new virtual environment):
153
153
 
154
154
  ```bash
155
- pip install RadGEEToolbox==1.6.5
155
+ pip install RadGEEToolbox==1.6.6
156
156
  ```
157
157
 
158
158
  ### Installing via Conda
159
159
 
160
- To install `RadGEEToolbox` version 1.6.5 using conda-forge (NOTE: it is recommended to create a new virtual environment):
160
+ To install `RadGEEToolbox` version 1.6.6 using conda-forge (NOTE: it is recommended to create a new virtual environment):
161
161
 
162
162
  ```bash
163
163
  conda install conda-forge::radgeetoolbox
@@ -188,7 +188,7 @@ To verify that `RadGEEToolbox` was installed correctly:
188
188
  python -c "import RadGEEToolbox; print(RadGEEToolbox.__version__)"
189
189
  ```
190
190
 
191
- You should see `1.6.5` printed as the version number.
191
+ You should see `1.6.6` printed as the version number.
192
192
 
193
193
  ### Want to Visualize Data? Install These Too
194
194
 
@@ -120,15 +120,15 @@ _____________
120
120
 
121
121
  ### Installing via pip
122
122
 
123
- To install `RadGEEToolbox` version 1.6.5 using pip (NOTE: it is recommended to create a new virtual environment):
123
+ To install `RadGEEToolbox` version 1.6.6 using pip (NOTE: it is recommended to create a new virtual environment):
124
124
 
125
125
  ```bash
126
- pip install RadGEEToolbox==1.6.5
126
+ pip install RadGEEToolbox==1.6.6
127
127
  ```
128
128
 
129
129
  ### Installing via Conda
130
130
 
131
- To install `RadGEEToolbox` version 1.6.5 using conda-forge (NOTE: it is recommended to create a new virtual environment):
131
+ To install `RadGEEToolbox` version 1.6.6 using conda-forge (NOTE: it is recommended to create a new virtual environment):
132
132
 
133
133
  ```bash
134
134
  conda install conda-forge::radgeetoolbox
@@ -159,7 +159,7 @@ To verify that `RadGEEToolbox` was installed correctly:
159
159
  python -c "import RadGEEToolbox; print(RadGEEToolbox.__version__)"
160
160
  ```
161
161
 
162
- You should see `1.6.5` printed as the version number.
162
+ You should see `1.6.6` printed as the version number.
163
163
 
164
164
  ### Want to Visualize Data? Install These Too
165
165
 
@@ -19,10 +19,10 @@ def _scale_landsat_sr(img):
19
19
  ee.Image: Image with scaled reflectance bands.
20
20
  """
21
21
  img = ee.Image(img)
22
- already = ee.String(img.get('rgt:scaled')).eq('landsat_sr')
22
+ is_scaled = ee.Algorithms.IsEqual(img.get('rgt:scaled'), 'landsat_sr')
23
23
  scaled = img.select(_LS_SR_BANDS).multiply(_LS_SCALE).add(_LS_OFFSET)
24
- scaled = img.addBands(scaled, None, True).set('rgt:scaled','landsat_sr')
25
- return ee.Image(ee.Algorithms.If(already, img, scaled))
24
+ out = img.addBands(scaled, None, True).set('rgt:scaled', 'landsat_sr')
25
+ return ee.Image(ee.Algorithms.If(is_scaled, img, out))
26
26
 
27
27
  class LandsatCollection:
28
28
  """
@@ -18,10 +18,10 @@ def _scale_s2_sr(img):
18
18
  ee.Image: Image with scaled reflectance bands.
19
19
  """
20
20
  img = ee.Image(img)
21
- already = ee.String(img.get('rgt:scaled')).eq('sentinel2_sr')
21
+ is_scaled = ee.Algorithms.IsEqual(img.get('rgt:scaled'), 'sentinel2_sr')
22
22
  scaled = img.select(_S2_SR_BANDS).multiply(_S2_SCALE)
23
- scaled = img.addBands(scaled, None, True).set('rgt:scaled','sentinel2_sr')
24
- return ee.Image(ee.Algorithms.If(already, img, scaled))
23
+ out = img.addBands(scaled, None, True).set('rgt:scaled', 'sentinel2_sr')
24
+ return ee.Image(ee.Algorithms.If(is_scaled, img, out))
25
25
 
26
26
  class Sentinel2Collection:
27
27
  """
@@ -1,4 +1,4 @@
1
- __version__ = "1.6.5"
1
+ __version__ = "1.6.6"
2
2
 
3
3
  from .CollectionStitch import CollectionStitch, MosaicByDate
4
4
  from .GetPalette import get_palette
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RadGEEToolbox
3
- Version: 1.6.5
3
+ Version: 1.6.6
4
4
  Summary: Streamlined Multispectral & SAR Analysis for Google Earth Engine Python API
5
5
  Home-page: https://github.com/radwinskis/RadGEEToolbox
6
6
  Author: Mark Radwin
@@ -149,15 +149,15 @@ _____________
149
149
 
150
150
  ### Installing via pip
151
151
 
152
- To install `RadGEEToolbox` version 1.6.5 using pip (NOTE: it is recommended to create a new virtual environment):
152
+ To install `RadGEEToolbox` version 1.6.6 using pip (NOTE: it is recommended to create a new virtual environment):
153
153
 
154
154
  ```bash
155
- pip install RadGEEToolbox==1.6.5
155
+ pip install RadGEEToolbox==1.6.6
156
156
  ```
157
157
 
158
158
  ### Installing via Conda
159
159
 
160
- To install `RadGEEToolbox` version 1.6.5 using conda-forge (NOTE: it is recommended to create a new virtual environment):
160
+ To install `RadGEEToolbox` version 1.6.6 using conda-forge (NOTE: it is recommended to create a new virtual environment):
161
161
 
162
162
  ```bash
163
163
  conda install conda-forge::radgeetoolbox
@@ -188,7 +188,7 @@ To verify that `RadGEEToolbox` was installed correctly:
188
188
  python -c "import RadGEEToolbox; print(RadGEEToolbox.__version__)"
189
189
  ```
190
190
 
191
- You should see `1.6.5` printed as the version number.
191
+ You should see `1.6.6` printed as the version number.
192
192
 
193
193
  ### Want to Visualize Data? Install These Too
194
194
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "RadGEEToolbox"
7
- version = "1.6.5"
7
+ version = "1.6.6"
8
8
  description = "Streamlined Multispectral & SAR Analysis for Google Earth Engine Python API"
9
9
  authors = [
10
10
  {name = "Mark Radwin", email = "markradwin@gmail.com"}
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="RadGEEToolbox",
5
- version="1.6.5",
5
+ version="1.6.6",
6
6
  author="Mark Radwin",
7
7
  author_email="markradwin@gmail.com",
8
8
  description="Streamlined Multispectral & SAR Analysis for Google Earth Engine Python API",
File without changes
File without changes