collekt 0.2.0__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.
- collekt/__init__.py +54 -0
- collekt/assemble/__init__.py +10 -0
- collekt/assemble/gridded.py +823 -0
- collekt/cli/__init__.py +3 -0
- collekt/cli/commands/__init__.py +13 -0
- collekt/cli/commands/config.py +26 -0
- collekt/cli/commands/doctor.py +33 -0
- collekt/cli/commands/fetch.py +108 -0
- collekt/cli/main.py +46 -0
- collekt/conf/default.yaml +21 -0
- collekt/conf/source/cmems_global.yaml +176 -0
- collekt/conf/source/cmems_ibi.yaml +94 -0
- collekt/conf/source/cmems_med.yaml +148 -0
- collekt/conf/source/cmems_nws.yaml +73 -0
- collekt/conf/source/dataspace.yaml +27 -0
- collekt/conf/source/ecmwf.yaml +55 -0
- collekt/conf/source/eodyn.yaml +27 -0
- collekt/conf/source/hozint.yaml +11 -0
- collekt/conf/source/skytruth.yaml +12 -0
- collekt/core/__init__.py +0 -0
- collekt/core/availability.py +379 -0
- collekt/core/catalog.py +120 -0
- collekt/core/collect.py +126 -0
- collekt/core/config/__init__.py +40 -0
- collekt/core/config/loader.py +145 -0
- collekt/core/config/schema.py +254 -0
- collekt/core/datasets.py +262 -0
- collekt/core/diagnostics.py +45 -0
- collekt/core/doctor.py +72 -0
- collekt/core/exporting.py +72 -0
- collekt/core/fetcher.py +185 -0
- collekt/core/geo.py +55 -0
- collekt/core/manifest.py +167 -0
- collekt/core/naming.py +62 -0
- collekt/core/reporting.py +97 -0
- collekt/core/request.py +200 -0
- collekt/core/result.py +41 -0
- collekt/core/temporal.py +76 -0
- collekt/resources/.gitignore +0 -0
- collekt/resources/regions/norway.geojson +171 -0
- collekt/resources/schema/manifest.schema.json +104 -0
- collekt/sources/__init__.py +21 -0
- collekt/sources/base.py +138 -0
- collekt/sources/cmems.py +410 -0
- collekt/sources/copernicus_dataspace.py +240 -0
- collekt/sources/ecmwf_open_data.py +318 -0
- collekt/sources/eodyn.py +360 -0
- collekt/sources/era5.py +198 -0
- collekt/sources/hozint.py +137 -0
- collekt/sources/planning.py +134 -0
- collekt/sources/skytruth.py +276 -0
- collekt/sources/skytruth.spec.yaml +135 -0
- collekt/version.py +4 -0
- collekt-0.2.0.dist-info/METADATA +175 -0
- collekt-0.2.0.dist-info/RECORD +58 -0
- collekt-0.2.0.dist-info/WHEEL +4 -0
- collekt-0.2.0.dist-info/entry_points.txt +3 -0
- collekt-0.2.0.dist-info/licenses/LICENSE +28 -0
collekt/__init__.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""collekt: a library to facilitate spatio-temporal data collection.
|
|
2
|
+
|
|
3
|
+
Public API.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from dotenv import find_dotenv, load_dotenv
|
|
7
|
+
|
|
8
|
+
# Importing the sources package registers the built-in source adapters.
|
|
9
|
+
from collekt import sources # noqa: F401
|
|
10
|
+
from collekt.assemble import Assembler
|
|
11
|
+
from collekt.core.catalog import available_datasets, describe_datasets
|
|
12
|
+
from collekt.core.datasets import (
|
|
13
|
+
CMEMS,
|
|
14
|
+
ERA5,
|
|
15
|
+
CopernicusDataSpace,
|
|
16
|
+
DatasetConfig,
|
|
17
|
+
ECMWFOpenData,
|
|
18
|
+
Hozint,
|
|
19
|
+
SkyTruth,
|
|
20
|
+
eOdyn,
|
|
21
|
+
)
|
|
22
|
+
from collekt.core.doctor import DoctorCheck, run_doctor
|
|
23
|
+
from collekt.core.fetcher import Fetcher
|
|
24
|
+
from collekt.core.request import Region, Request
|
|
25
|
+
from collekt.core.result import Result
|
|
26
|
+
|
|
27
|
+
from .version import __version__, __version_info__
|
|
28
|
+
|
|
29
|
+
# Load a project-local .env (searched upward from the working directory) so
|
|
30
|
+
# credentials placed there reach every provider adapter: the provider tools read
|
|
31
|
+
# the OS environment, which this fills. Existing environment variables win.
|
|
32
|
+
load_dotenv(find_dotenv(usecwd=True))
|
|
33
|
+
|
|
34
|
+
__all__ = [
|
|
35
|
+
"Assembler",
|
|
36
|
+
"CMEMS",
|
|
37
|
+
"CopernicusDataSpace",
|
|
38
|
+
"DatasetConfig",
|
|
39
|
+
"DoctorCheck",
|
|
40
|
+
"ECMWFOpenData",
|
|
41
|
+
"ERA5",
|
|
42
|
+
"Fetcher",
|
|
43
|
+
"Hozint",
|
|
44
|
+
"Region",
|
|
45
|
+
"Request",
|
|
46
|
+
"Result",
|
|
47
|
+
"SkyTruth",
|
|
48
|
+
"available_datasets",
|
|
49
|
+
"describe_datasets",
|
|
50
|
+
"eOdyn",
|
|
51
|
+
"run_doctor",
|
|
52
|
+
"__version__",
|
|
53
|
+
"__version_info__",
|
|
54
|
+
]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Analysis-ready assembly of downloaded collections.
|
|
2
|
+
|
|
3
|
+
`Assembler` builds gridded outputs (xarray / NetCDF / Zarr / NumPy) from a
|
|
4
|
+
`collekt.Result`. Feature (tabular) sources are written directly by their
|
|
5
|
+
adapters and are not assembled here.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from collekt.assemble.gridded import Assembler
|
|
9
|
+
|
|
10
|
+
__all__ = ["Assembler"]
|