ecoscape-utilities 0.0.31__py3-none-any.whl → 0.0.32__py3-none-any.whl
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.
Potentially problematic release.
This version of ecoscape-utilities might be problematic. Click here for more details.
- ecoscape_utilities/ebird_db.py +3 -1
- {ecoscape_utilities-0.0.31.dist-info → ecoscape_utilities-0.0.32.dist-info}/METADATA +13 -1
- ecoscape_utilities-0.0.32.dist-info/RECORD +8 -0
- {ecoscape_utilities-0.0.31.dist-info → ecoscape_utilities-0.0.32.dist-info}/licenses/LICENSE.md +1 -1
- ecoscape_utilities-0.0.31.dist-info/RECORD +0 -8
- {ecoscape_utilities-0.0.31.dist-info → ecoscape_utilities-0.0.32.dist-info}/WHEEL +0 -0
- {ecoscape_utilities-0.0.31.dist-info → ecoscape_utilities-0.0.32.dist-info}/top_level.txt +0 -0
ecoscape_utilities/ebird_db.py
CHANGED
|
@@ -493,7 +493,7 @@ class Validation(object):
|
|
|
493
493
|
If the cached version is not found, it is created.
|
|
494
494
|
The cached version contains pre-translated coordinates to pixel values.
|
|
495
495
|
:param obs_fn: Observations filename.
|
|
496
|
-
:param geotiff_fn: name of a geotiff (
|
|
496
|
+
:param geotiff_fn: name of a geotiff (repopulation is preferred) used
|
|
497
497
|
for translating coordinates to pixel coordinates.
|
|
498
498
|
"""
|
|
499
499
|
self.obs_fn = obs_fn
|
|
@@ -594,6 +594,8 @@ class Validation(object):
|
|
|
594
594
|
:param weighted_tile_size: size of the tile to attribute grouped weights to
|
|
595
595
|
:returns: a dataframe with columns repopulation, observation ratio, and weights
|
|
596
596
|
'''
|
|
597
|
+
assert repop_tif.crs == hab.crs, "Repopulation and habitat geotiffs must have the same CRS"
|
|
598
|
+
assert repop_tif.size == hab.size, "Repopulation and habitat geotiffs must have the same size"
|
|
597
599
|
df = pd.DataFrame(columns=['repop', 'hab', 'max_repop', 'max_hab', 'obs_ratio', 'lat', 'lng', 'x', 'y', ])
|
|
598
600
|
count = defaultdict(int)
|
|
599
601
|
for (square, ratio) in observation_ratios:
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ecoscape-utilities
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.32
|
|
4
4
|
Summary: A collection of EcoScape utilities.
|
|
5
|
+
Author-email: Luca de Alfaro <luca@ucsc.edu>, Coen Adler <ctadler@ucsc.edu>, Artie Nazarov <anazarov@ucsc.edu>, Natalia Ocampo-Peñuela <nocampop@ucsc.edu>, Jasmine Tai <cjtai@ucsc.edu>, Natalie Valett <nvalett@ucsc.edu>
|
|
6
|
+
Project-URL: Homepage, https://github.com/ecoscape-earth/ecoscape-utilities
|
|
7
|
+
Project-URL: Bug Tracker, https://github.com/ecoscape-earth/ecoscape-utilities/issues
|
|
5
8
|
Classifier: Programming Language :: Python :: 3
|
|
6
9
|
Classifier: License :: OSI Approved :: BSD License
|
|
7
10
|
Classifier: Operating System :: OS Independent
|
|
@@ -22,3 +25,12 @@ These are not packages distributed with pip. To install on Colab, simply do:
|
|
|
22
25
|
|
|
23
26
|
!pip install git+https://github.com/ecoscape-earth/ecoscape-utilities.git
|
|
24
27
|
|
|
28
|
+
## Authors
|
|
29
|
+
|
|
30
|
+
* Luca de Alfaro (luca@ucsc.edu)
|
|
31
|
+
* Natalia Ocampo-Peñuela (nocampop@ucsc.edu)
|
|
32
|
+
* Coen Adler (ctadler@ucsc.edu)
|
|
33
|
+
* Artie Nazarov (anazarov@ucsc.edu)
|
|
34
|
+
* Natalie Valett (nvalett@ucsc.edu)
|
|
35
|
+
* Jasmine Tai (cjtai@ucsc.edu)
|
|
36
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
ecoscape_utilities/__init__.py,sha256=LXt1rL9JVsjnCmsNZwZ2aoElphIK-koaEDdW6ffZsMQ,50
|
|
2
|
+
ecoscape_utilities/bird_runs.py,sha256=v43PfH_4ojpkTE-EFOJxr0oOW3M9suNm_1zMjZ9P-eI,5409
|
|
3
|
+
ecoscape_utilities/ebird_db.py,sha256=A3xoeymVIZbnxhYwlS9Ex22NJdeUVJDI_PATT0BGL3k,31321
|
|
4
|
+
ecoscape_utilities-0.0.32.dist-info/licenses/LICENSE.md,sha256=3vh2mpA_XIR3FJot6a5F9DqktAoq45sEGIRkYjvAEeU,1304
|
|
5
|
+
ecoscape_utilities-0.0.32.dist-info/METADATA,sha256=7o3bGeSdY49LAM57i-Cknxwt3hHBGMdAHZNTfszgMw0,1382
|
|
6
|
+
ecoscape_utilities-0.0.32.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
ecoscape_utilities-0.0.32.dist-info/top_level.txt,sha256=jLf7iMlySaJg0Vh8z4lbAaqOc5W5ruMgKFvp797CryQ,19
|
|
8
|
+
ecoscape_utilities-0.0.32.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
ecoscape_utilities/__init__.py,sha256=LXt1rL9JVsjnCmsNZwZ2aoElphIK-koaEDdW6ffZsMQ,50
|
|
2
|
-
ecoscape_utilities/bird_runs.py,sha256=v43PfH_4ojpkTE-EFOJxr0oOW3M9suNm_1zMjZ9P-eI,5409
|
|
3
|
-
ecoscape_utilities/ebird_db.py,sha256=kAskQs-wMmEvw0il43FmiXFTdaVfB0ixSTdplM8LSxo,31113
|
|
4
|
-
ecoscape_utilities-0.0.31.dist-info/licenses/LICENSE.md,sha256=k1X_-oX09VNJtOCwd34FfQCLUJvhCaV7OHk-3zzBYLs,1279
|
|
5
|
-
ecoscape_utilities-0.0.31.dist-info/METADATA,sha256=iCqY5VIZiMfSw95lpkVJevOUpcY5VgNePuNEyRO8KoM,772
|
|
6
|
-
ecoscape_utilities-0.0.31.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
-
ecoscape_utilities-0.0.31.dist-info/top_level.txt,sha256=jLf7iMlySaJg0Vh8z4lbAaqOc5W5ruMgKFvp797CryQ,19
|
|
8
|
-
ecoscape_utilities-0.0.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|