anta-database 0.3.0__tar.gz → 0.3.1__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.
- {anta_database-0.3.0 → anta_database-0.3.1}/PKG-INFO +2 -1
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/database/database.py +2 -1
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/plotting/plotting.py +10 -9
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/PKG-INFO +2 -1
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/requires.txt +1 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/pyproject.toml +1 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/.github/workflows/deploy.yml +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/.github/workflows/release.yml +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/.gitignore +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/LICENSE +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/README.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/ROADMAP.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/__init__.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/anta_database.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/__init__.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/compile.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/compiling/reconnect.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.cpg +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.dbf +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.prj +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shp +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shx +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/GL.pkl +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.cpg +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.dbf +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.prj +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.shp +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/centeroid_coords_basins.shx +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/data/site-coords.pkl +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/database/__init__.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/figures/AntA_38ka.png +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/indexing/__init__.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/indexing/index_database.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database/plotting/__init__.py +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/SOURCES.txt +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/dependency_links.txt +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/anta_database.egg-info/top_level.txt +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/_config.yml +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/_toc.yml +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/advanced.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/contact.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/contribute.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/figures/Overview_all.png +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/intro.md +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/logo.png +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/quick_start.ipynb +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/references.bib +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/book/requirements.txt +0 -0
- {anta_database-0.3.0 → anta_database-0.3.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anta_database
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: SQLite database for the AntArchitecture Community Data
|
|
5
5
|
Author: Antoine Hermant
|
|
6
6
|
Author-email: antoine.hermant@etik.com
|
|
@@ -20,6 +20,7 @@ License-File: LICENSE
|
|
|
20
20
|
Requires-Dist: pandas
|
|
21
21
|
Requires-Dist: geopandas
|
|
22
22
|
Requires-Dist: xarray
|
|
23
|
+
Requires-Dist: h5netcdf
|
|
23
24
|
Requires-Dist: h5py
|
|
24
25
|
Requires-Dist: pyproj
|
|
25
26
|
Requires-Dist: scipy
|
|
@@ -759,7 +759,8 @@ class Database:
|
|
|
759
759
|
df[int(age)] = ds[var][::downscale_factor, irh_index]
|
|
760
760
|
|
|
761
761
|
else:
|
|
762
|
-
|
|
762
|
+
if var in ds.keys():
|
|
763
|
+
df[var] = ds[var][::downscale_factor]
|
|
763
764
|
|
|
764
765
|
metadata = {
|
|
765
766
|
'dataset': file_md['dataset'],
|
|
@@ -206,7 +206,7 @@ class Plotting:
|
|
|
206
206
|
downscale_factor: Optional[int] = None,
|
|
207
207
|
title: Optional[str] = None,
|
|
208
208
|
xlim: tuple = (None, None),
|
|
209
|
-
ylim: tuple = (
|
|
209
|
+
ylim: tuple = (3500, 0),
|
|
210
210
|
scale_factor: float = 1.0,
|
|
211
211
|
marker_size: Optional[float] = 2,
|
|
212
212
|
latex: bool = False,
|
|
@@ -576,14 +576,14 @@ class Plotting:
|
|
|
576
576
|
# --- Format Figure ---
|
|
577
577
|
print('Formatting ...')
|
|
578
578
|
|
|
579
|
-
x0, x1 = ax.get_xlim() if xlim == (None, None) else xlim
|
|
580
|
-
y0, y1 = ax.get_ylim() if ylim == (None, None) else ylim
|
|
581
|
-
x_extent = x1 - x0
|
|
582
|
-
y_extent = y1 - y0
|
|
583
|
-
aspect_ratio = y_extent / x_extent
|
|
584
579
|
ax.set_xlim(*xlim)
|
|
585
580
|
ax.set_ylim(*ylim)
|
|
586
581
|
if color_by != 'transect':
|
|
582
|
+
x0, x1 = ax.get_xlim() if xlim == (None, None) else xlim
|
|
583
|
+
y0, y1 = ax.get_ylim() if ylim == (None, None) else ylim
|
|
584
|
+
x_extent = x1 - x0
|
|
585
|
+
y_extent = y1 - y0
|
|
586
|
+
aspect_ratio = y_extent / x_extent
|
|
587
587
|
ax.set_xlabel('x [km]')
|
|
588
588
|
ax.set_ylabel('y [km]')
|
|
589
589
|
ax.set_aspect('equal')
|
|
@@ -624,9 +624,10 @@ class Plotting:
|
|
|
624
624
|
center_coords['x'] = center_coords['geometry'].x
|
|
625
625
|
center_coords['y'] = center_coords['geometry'].y
|
|
626
626
|
for x, y, sub in zip(center_coords['x'], center_coords['y'], center_coords['Subregion']):
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
627
|
+
if x0 <= x <= x1 and y0 <= y <= y1: # Only plot if within current view
|
|
628
|
+
ax.text(x, y, sub, fontsize=12, color='k', ha='center',
|
|
629
|
+
path_effects=[path_effects.withStroke(linewidth=5, foreground=(1,1,1,0.7))]
|
|
630
|
+
)
|
|
630
631
|
# --- Plot ice core sites ---
|
|
631
632
|
if stations and color_by != 'transect':
|
|
632
633
|
site_coords = pd.read_pickle(self._site_coords_path)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: anta_database
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: SQLite database for the AntArchitecture Community Data
|
|
5
5
|
Author: Antoine Hermant
|
|
6
6
|
Author-email: antoine.hermant@etik.com
|
|
@@ -20,6 +20,7 @@ License-File: LICENSE
|
|
|
20
20
|
Requires-Dist: pandas
|
|
21
21
|
Requires-Dist: geopandas
|
|
22
22
|
Requires-Dist: xarray
|
|
23
|
+
Requires-Dist: h5netcdf
|
|
23
24
|
Requires-Dist: h5py
|
|
24
25
|
Requires-Dist: pyproj
|
|
25
26
|
Requires-Dist: scipy
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|