anta-database 0.3.6__tar.gz → 0.4.0__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.
Files changed (72) hide show
  1. {anta_database-0.3.6 → anta_database-0.4.0}/.gitignore +5 -0
  2. anta_database-0.4.0/PKG-INFO +117 -0
  3. anta_database-0.4.0/README.md +83 -0
  4. anta_database-0.4.0/ROADMAP.md +18 -0
  5. anta_database-0.4.0/anta_database/__init__.py +30 -0
  6. anta_database-0.4.0/anta_database/compiling/__init__.py +10 -0
  7. anta_database-0.4.0/anta_database/compiling/compile.py +1206 -0
  8. anta_database-0.4.0/anta_database/compiling/zarr_converter_simple.py +175 -0
  9. anta_database-0.4.0/anta_database/data/ANT_Basins_IMBIE2_v1.6.parquet +0 -0
  10. anta_database-0.3.6/anta_database/data/GL.pkl → anta_database-0.4.0/anta_database/data/GL.parquet +0 -0
  11. anta_database-0.4.0/anta_database/data/centeroid_coors_basins.parquet +0 -0
  12. anta_database-0.4.0/anta_database/data/convert_data.py +19 -0
  13. anta_database-0.4.0/anta_database/data/ice-core-coordinates.csv +11 -0
  14. anta_database-0.4.0/anta_database/data/site-coords.parquet +0 -0
  15. anta_database-0.4.0/anta_database/database/__init__.py +9 -0
  16. anta_database-0.4.0/anta_database/database/database.py +1050 -0
  17. anta_database-0.4.0/anta_database/indexing/__init__.py +9 -0
  18. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/indexing/index_database.py +161 -92
  19. anta_database-0.4.0/anta_database/plotting/__init__.py +9 -0
  20. anta_database-0.4.0/anta_database/plotting/plotting.py +1095 -0
  21. anta_database-0.4.0/anta_database/test_interactive.py +38 -0
  22. anta_database-0.4.0/anta_database/test_interactive_full.py +89 -0
  23. anta_database-0.4.0/anta_database.egg-info/PKG-INFO +117 -0
  24. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database.egg-info/SOURCES.txt +11 -3
  25. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database.egg-info/requires.txt +2 -0
  26. anta_database-0.4.0/anta_database.egg-info/scm_file_list.json +53 -0
  27. anta_database-0.4.0/anta_database.egg-info/scm_version.json +8 -0
  28. {anta_database-0.3.6 → anta_database-0.4.0}/pyproject.toml +2 -0
  29. anta_database-0.3.6/PKG-INFO +0 -113
  30. anta_database-0.3.6/README.md +0 -81
  31. anta_database-0.3.6/ROADMAP.md +0 -12
  32. anta_database-0.3.6/anta_database/__init__.py +0 -4
  33. anta_database-0.3.6/anta_database/anta_database.py +0 -4
  34. anta_database-0.3.6/anta_database/compiling/__init__.py +0 -2
  35. anta_database-0.3.6/anta_database/compiling/compile.py +0 -981
  36. anta_database-0.3.6/anta_database/data/site-coords.pkl +0 -0
  37. anta_database-0.3.6/anta_database/database/__init__.py +0 -1
  38. anta_database-0.3.6/anta_database/database/database.py +0 -903
  39. anta_database-0.3.6/anta_database/indexing/__init__.py +0 -1
  40. anta_database-0.3.6/anta_database/plotting/__init__.py +0 -1
  41. anta_database-0.3.6/anta_database/plotting/plotting.py +0 -717
  42. anta_database-0.3.6/anta_database.egg-info/PKG-INFO +0 -113
  43. {anta_database-0.3.6 → anta_database-0.4.0}/.github/workflows/deploy.yml +0 -0
  44. {anta_database-0.3.6 → anta_database-0.4.0}/.github/workflows/release.yml +0 -0
  45. {anta_database-0.3.6 → anta_database-0.4.0}/LICENSE +0 -0
  46. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/compiling/reconnect.py +0 -0
  47. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/ANT_Basins_IMBIE2_v1.6.cpg +0 -0
  48. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/ANT_Basins_IMBIE2_v1.6.dbf +0 -0
  49. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/ANT_Basins_IMBIE2_v1.6.prj +0 -0
  50. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shp +0 -0
  51. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/ANT_Basins_IMBIE2_v1.6.shx +0 -0
  52. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/centeroid_coords_basins.cpg +0 -0
  53. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/centeroid_coords_basins.dbf +0 -0
  54. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/centeroid_coords_basins.prj +0 -0
  55. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/centeroid_coords_basins.shp +0 -0
  56. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/data/centeroid_coords_basins.shx +0 -0
  57. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database/figures/AntA_38ka.png +0 -0
  58. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database.egg-info/dependency_links.txt +0 -0
  59. {anta_database-0.3.6 → anta_database-0.4.0}/anta_database.egg-info/top_level.txt +0 -0
  60. {anta_database-0.3.6 → anta_database-0.4.0}/book/_config.yml +0 -0
  61. {anta_database-0.3.6 → anta_database-0.4.0}/book/_toc.yml +0 -0
  62. {anta_database-0.3.6 → anta_database-0.4.0}/book/advanced.md +0 -0
  63. {anta_database-0.3.6 → anta_database-0.4.0}/book/contact.md +0 -0
  64. {anta_database-0.3.6 → anta_database-0.4.0}/book/contribute.md +0 -0
  65. {anta_database-0.3.6 → anta_database-0.4.0}/book/figures/Overview_all.png +0 -0
  66. {anta_database-0.3.6 → anta_database-0.4.0}/book/intro.md +0 -0
  67. {anta_database-0.3.6 → anta_database-0.4.0}/book/logo.png +0 -0
  68. {anta_database-0.3.6 → anta_database-0.4.0}/book/pism_example.ipynb +0 -0
  69. {anta_database-0.3.6 → anta_database-0.4.0}/book/quick_start.ipynb +0 -0
  70. {anta_database-0.3.6 → anta_database-0.4.0}/book/references.bib +0 -0
  71. {anta_database-0.3.6 → anta_database-0.4.0}/book/requirements.txt +0 -0
  72. {anta_database-0.3.6 → anta_database-0.4.0}/setup.cfg +0 -0
@@ -6,3 +6,8 @@ venv/
6
6
  .env
7
7
  dist/
8
8
  archives/
9
+
10
+ .agent-shell/
11
+ example*.py
12
+ test*.py
13
+ site/
@@ -0,0 +1,117 @@
1
+ Metadata-Version: 2.4
2
+ Name: anta_database
3
+ Version: 0.4.0
4
+ Summary: SQLite database for the AntArchitecture Community Data
5
+ Author: Antoine Hermant
6
+ Author-email: antoine.hermant@etik.com
7
+ License-Expression: MIT
8
+ Project-URL: Homepage, https://antoinehermant.github.io/anta_database/intro
9
+ Project-URL: Documentation, https://antoinehermant.github.io/anta_database/quick_start
10
+ Project-URL: Repository, https://github.com/antoinehermant/anta_database.git
11
+ Project-URL: Issues, https://github.com/antoinehermant/anta_database/issues
12
+ Keywords: isochrones,database,IRH,radar
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Topic :: Scientific/Engineering :: Physics
16
+ Classifier: Programming Language :: Python
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: pandas
21
+ Requires-Dist: geopandas
22
+ Requires-Dist: fastparquet
23
+ Requires-Dist: pyarrow
24
+ Requires-Dist: xarray
25
+ Requires-Dist: h5netcdf
26
+ Requires-Dist: h5py
27
+ Requires-Dist: pyproj
28
+ Requires-Dist: scipy
29
+ Requires-Dist: matplotlib
30
+ Requires-Dist: colormaps
31
+ Requires-Dist: tqdm
32
+ Requires-Dist: pyshp
33
+ Dynamic: license-file
34
+
35
+ <h1 align="center">
36
+ <a href="https://antoinehermant.github.io/anta_database/index">
37
+ <img src="https://raw.githubusercontent.com/antoinehermant/anta_database/main/book/logo.png" width="200">
38
+ </a>
39
+ </h1>
40
+
41
+ [![PyPI version](https://img.shields.io/pypi/v/anta_database)](https://pypi.org/project/anta_database/)
42
+ [![Downloads](https://img.shields.io/pypi/dm/anta_database)](https://pypi.org/project/anta_database/)
43
+ [![GitHub issues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/antoinehermant/anta_database/issues)
44
+
45
+ # AntADatabase
46
+
47
+ **Visit the [Home Page](https://antoinehermant.github.io/anta_database/index) for full documentation and examples.**
48
+
49
+ **SQL database for the AntArchitecture Community Data**
50
+
51
+ AntADatabase is a Python package providing efficient access to Internal Reflecting Horizons (isochrones) data across Antarctica. Designed for ice sheet modelers, it offers fast, memory-efficient data structures to constrain models with published IRH data.
52
+
53
+ ## Key Features
54
+
55
+ - **SQL Indexing**: Fast querying of IRH data by dataset, institute, project, age, region, basin, variable, or flight ID
56
+ - **HDF5 Storage**: Data stored in HDF5 format for optimal read performance
57
+ - **Plotting Tools**: Built-in visualization functions for quick data exploration
58
+ - **Lazy Data Generation**: Generate data for later use
59
+
60
+ ## Data Variables
61
+
62
+ Each dataset contains (when available):
63
+ - `PSX`, `PSY`: Coordinates
64
+ - `Distance`: Along-track distance
65
+ - `IRH_DEPTH`: Internal Reflecting Horizon depth
66
+ - `IRH_NUM`: Number of traced IRHs per point
67
+ - `ICE_THK`: Ice thickness
68
+ - `SURF_ELEV`: Surface elevation
69
+ - `BED_ELEV`: Bed elevation
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ pip install anta_database
75
+ ```
76
+
77
+ For the latest development version:
78
+ ```bash
79
+ pip install git+https://github.com/antoinehermant/anta_database.git
80
+ ```
81
+
82
+ ## Quick Start
83
+
84
+ ```python
85
+ from anta_database import Database
86
+
87
+ # Initialize database (contact maintainer for data access)
88
+ db = Database("/path/to/AntADatabase/")
89
+
90
+ # Query data by various criteria
91
+ db.query(dataset="Cavitte_2020", age=10000)
92
+
93
+ # Visualize data
94
+ db.plot.var(title="My IRH Data")
95
+ ```
96
+
97
+ ## Documentation
98
+
99
+ Full documentation and examples are available on the [Home Page](https://antoinehermant.github.io/anta_database/index).
100
+
101
+ ## Data Access
102
+
103
+ The database files are not publicly hosted. Please contact [antoine.hermant@unibe.ch](mailto:antoine.hermant@unibe.ch) to request access to the data.
104
+
105
+ ## Support
106
+
107
+ - **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/antoinehermant/anta_database/issues)
108
+ - **Contact**: antoine.hermant@unibe.ch
109
+
110
+ ## Citation
111
+
112
+ If you use this tool in your work, please cite this repository and the original data sources using their provided DOIs.
113
+
114
+ ## Acknowledgments
115
+
116
+ Developed as part of the CHARIBDIS project (Swiss National Science Foundation grant no. 211542).
117
+
@@ -0,0 +1,83 @@
1
+ <h1 align="center">
2
+ <a href="https://antoinehermant.github.io/anta_database/index">
3
+ <img src="https://raw.githubusercontent.com/antoinehermant/anta_database/main/book/logo.png" width="200">
4
+ </a>
5
+ </h1>
6
+
7
+ [![PyPI version](https://img.shields.io/pypi/v/anta_database)](https://pypi.org/project/anta_database/)
8
+ [![Downloads](https://img.shields.io/pypi/dm/anta_database)](https://pypi.org/project/anta_database/)
9
+ [![GitHub issues](https://img.shields.io/badge/issue_tracking-github-blue.svg)](https://github.com/antoinehermant/anta_database/issues)
10
+
11
+ # AntADatabase
12
+
13
+ **Visit the [Home Page](https://antoinehermant.github.io/anta_database/index) for full documentation and examples.**
14
+
15
+ **SQL database for the AntArchitecture Community Data**
16
+
17
+ AntADatabase is a Python package providing efficient access to Internal Reflecting Horizons (isochrones) data across Antarctica. Designed for ice sheet modelers, it offers fast, memory-efficient data structures to constrain models with published IRH data.
18
+
19
+ ## Key Features
20
+
21
+ - **SQL Indexing**: Fast querying of IRH data by dataset, institute, project, age, region, basin, variable, or flight ID
22
+ - **HDF5 Storage**: Data stored in HDF5 format for optimal read performance
23
+ - **Plotting Tools**: Built-in visualization functions for quick data exploration
24
+ - **Lazy Data Generation**: Generate data for later use
25
+
26
+ ## Data Variables
27
+
28
+ Each dataset contains (when available):
29
+ - `PSX`, `PSY`: Coordinates
30
+ - `Distance`: Along-track distance
31
+ - `IRH_DEPTH`: Internal Reflecting Horizon depth
32
+ - `IRH_NUM`: Number of traced IRHs per point
33
+ - `ICE_THK`: Ice thickness
34
+ - `SURF_ELEV`: Surface elevation
35
+ - `BED_ELEV`: Bed elevation
36
+
37
+ ## Installation
38
+
39
+ ```bash
40
+ pip install anta_database
41
+ ```
42
+
43
+ For the latest development version:
44
+ ```bash
45
+ pip install git+https://github.com/antoinehermant/anta_database.git
46
+ ```
47
+
48
+ ## Quick Start
49
+
50
+ ```python
51
+ from anta_database import Database
52
+
53
+ # Initialize database (contact maintainer for data access)
54
+ db = Database("/path/to/AntADatabase/")
55
+
56
+ # Query data by various criteria
57
+ db.query(dataset="Cavitte_2020", age=10000)
58
+
59
+ # Visualize data
60
+ db.plot.var(title="My IRH Data")
61
+ ```
62
+
63
+ ## Documentation
64
+
65
+ Full documentation and examples are available on the [Home Page](https://antoinehermant.github.io/anta_database/index).
66
+
67
+ ## Data Access
68
+
69
+ The database files are not publicly hosted. Please contact [antoine.hermant@unibe.ch](mailto:antoine.hermant@unibe.ch) to request access to the data.
70
+
71
+ ## Support
72
+
73
+ - **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/antoinehermant/anta_database/issues)
74
+ - **Contact**: antoine.hermant@unibe.ch
75
+
76
+ ## Citation
77
+
78
+ If you use this tool in your work, please cite this repository and the original data sources using their provided DOIs.
79
+
80
+ ## Acknowledgments
81
+
82
+ Developed as part of the CHARIBDIS project (Swiss National Science Foundation grant no. 211542).
83
+
@@ -0,0 +1,18 @@
1
+ # Roadmap
2
+
3
+ Here is a todo list of features that we want to include in the AntADatabase.
4
+
5
+ ## Important
6
+ - [x] Implement HDF5 format (In process, for next release)
7
+ - [x] Filter by radar system
8
+ - [x] Create shapefiles, e.g. for QAntarctica
9
+ - [ ] More familiar basin/region naming (e.g. Wilkes, Thwaites etc)
10
+ - [ ] Cloud host (some testing with cloud_database branch)
11
+ - [ ] Improved age assignment (currently hardcoded during raw data processing, but could be done in the Indexing so ages are updated simply by reindexing)
12
+ - [ ] Sort airbone vs ground-based data (e.g. extra flag)
13
+
14
+ ## To discuss
15
+ - [ ] A netCDF version
16
+ - [ ] Implement method to date layers from closest/latest chronology
17
+ - [ ] Refine isochrone ages for consistent layers across the database
18
+
@@ -0,0 +1,30 @@
1
+ """
2
+ Anta Database Package
3
+
4
+ Main package for isochrone database access and processing.
5
+ """
6
+
7
+ # Database modules
8
+ from .database.database import Database
9
+
10
+ # Compiling modules
11
+ from .compiling.zarr_converter_simple import FlightLineZarrConverter
12
+ from .compiling.compile import CompileDatabase
13
+
14
+ # Indexing modules
15
+ from .indexing.index_database import IndexDatabase
16
+
17
+ # Plotting modules
18
+ from .plotting.plotting import Plotting
19
+
20
+ __all__ = [
21
+ # Database classes
22
+ "Database",
23
+ # Compiling classes
24
+ "FlightLineZarrConverter",
25
+ "CompileDatabase",
26
+ # Indexing functions
27
+ "IndexDatabase",
28
+ # Plotting functions
29
+ "Plotting",
30
+ ]
@@ -0,0 +1,10 @@
1
+ """
2
+ Compiling module
3
+
4
+ Contains classes and functions for data compilation and conversion.
5
+ """
6
+
7
+ from .zarr_converter_simple import FlightLineZarrConverter
8
+ from .compile import CompileDatabase
9
+
10
+ __all__ = ["FlightLineZarrConverter", "CompileDatabase"]