ngiab-data-preprocess 4.6.0__py3-none-any.whl → 4.6.2__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.
- data_processing/file_paths.py +0 -3
- data_processing/forcings.py +1 -1
- ngiab_data_cli/__main__.py +2 -1
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/METADATA +2 -2
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/RECORD +9 -9
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/WHEEL +0 -0
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/entry_points.txt +0 -0
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/licenses/LICENSE +0 -0
- {ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/top_level.txt +0 -0
data_processing/file_paths.py
CHANGED
|
@@ -13,7 +13,6 @@ class FilePaths:
|
|
|
13
13
|
hydrofabric_dir = Path("~/.ngiab/hydrofabric/v2.2").expanduser()
|
|
14
14
|
hydrofabric_download_log = Path("~/.ngiab/hydrofabric/v2.2/download_log.json").expanduser()
|
|
15
15
|
no_update_hf = Path("~/.ngiab/hydrofabric/v2.2/no_update").expanduser()
|
|
16
|
-
cache_dir = Path("~/.ngiab/zarr_cache").expanduser()
|
|
17
16
|
output_dir = None
|
|
18
17
|
data_sources = Path(__file__).parent.parent / "data_sources"
|
|
19
18
|
map_app_static = Path(__file__).parent.parent / "map_app" / "static"
|
|
@@ -53,8 +52,6 @@ class FilePaths:
|
|
|
53
52
|
self.output_dir = Path(output_dir)
|
|
54
53
|
self.folder_name = self.output_dir.stem
|
|
55
54
|
|
|
56
|
-
self.cache_dir.mkdir(parents=True, exist_ok=True)
|
|
57
|
-
|
|
58
55
|
@classmethod
|
|
59
56
|
def get_working_dir(cls) -> Path | None:
|
|
60
57
|
try:
|
data_processing/forcings.py
CHANGED
|
@@ -382,7 +382,7 @@ def compute_zonal_stats(
|
|
|
382
382
|
|
|
383
383
|
cat_chunks: List[pd.DataFrame] = np.array_split(catchments, num_partitions) # type: ignore
|
|
384
384
|
|
|
385
|
-
progress_file = FilePaths(output_dir=forcings_dir.parent
|
|
385
|
+
progress_file = FilePaths(output_dir=forcings_dir.parent).forcing_progress_file
|
|
386
386
|
ex_var_name = list(gridded_data.data_vars)[0]
|
|
387
387
|
example_time_chunks = get_index_chunks(gridded_data[ex_var_name])
|
|
388
388
|
all_steps = len(example_time_chunks) * len(gridded_data.data_vars)
|
ngiab_data_cli/__main__.py
CHANGED
|
@@ -9,6 +9,7 @@ with rich.status.Status("loading") as status:
|
|
|
9
9
|
import subprocess
|
|
10
10
|
import time
|
|
11
11
|
from multiprocessing import cpu_count
|
|
12
|
+
from pathlib import Path
|
|
12
13
|
|
|
13
14
|
import geopandas as gpd
|
|
14
15
|
from data_processing.create_realization import create_lstm_realization, create_realization
|
|
@@ -143,7 +144,7 @@ def main() -> None:
|
|
|
143
144
|
|
|
144
145
|
if args.output_root:
|
|
145
146
|
with open(FilePaths.config_file, "w") as config_file:
|
|
146
|
-
config_file.write(args.output_root)
|
|
147
|
+
config_file.write(str(Path(args.output_root).expanduser().absolute()))
|
|
147
148
|
logging.info(
|
|
148
149
|
f"Changed default directory where outputs are stored to {args.output_root}"
|
|
149
150
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ngiab_data_preprocess
|
|
3
|
-
Version: 4.6.
|
|
3
|
+
Version: 4.6.2
|
|
4
4
|
Summary: Graphical Tools for creating Next Gen Water model input data.
|
|
5
5
|
Author-email: Josh Cunningham <jcunningham8@ua.edu>
|
|
6
6
|
Project-URL: Homepage, https://github.com/CIROH-UA/NGIAB_data_preprocess
|
|
@@ -20,7 +20,7 @@ Requires-Dist: igraph==0.11.4
|
|
|
20
20
|
Requires-Dist: s3fs==2024.3.1
|
|
21
21
|
Requires-Dist: xarray==2024.2.0
|
|
22
22
|
Requires-Dist: zarr==2.17.1
|
|
23
|
-
Requires-Dist: netCDF4
|
|
23
|
+
Requires-Dist: netCDF4<1.7.3,>=1.6.5
|
|
24
24
|
Requires-Dist: dask==2024.4.1
|
|
25
25
|
Requires-Dist: dask[distributed]==2024.4.1
|
|
26
26
|
Requires-Dist: h5netcdf==1.3.0
|
|
@@ -2,8 +2,8 @@ data_processing/create_realization.py,sha256=b1a9Wuld9saJ-zzVDPY_kba3-ZOVbRuobyR
|
|
|
2
2
|
data_processing/dask_utils.py,sha256=A2IP94WAz8W9nek3etXKEKTOxGPf0NWSFLh8cZ5S-xU,2454
|
|
3
3
|
data_processing/dataset_utils.py,sha256=0FhspUlGUs0iJLwYY0dl_1fjt0_zwhe9Hl-jikIgrpk,8312
|
|
4
4
|
data_processing/datasets.py,sha256=_EJ1uZSWTU1HWpvF7TQSikneJqWZFikTrdo9usCV8A0,4665
|
|
5
|
-
data_processing/file_paths.py,sha256=
|
|
6
|
-
data_processing/forcings.py,sha256=
|
|
5
|
+
data_processing/file_paths.py,sha256=7MpwfIQewLRrDpAw1dxTjTperUwOk3EC_kthmnJSRII,4851
|
|
6
|
+
data_processing/forcings.py,sha256=8WY3w-TrhuCexnvUtvNCaUM9Uu3F5IaSO2qpIsUEtyg,21527
|
|
7
7
|
data_processing/gpkg_utils.py,sha256=VoQG53zaGcdmkU9M_7kRrk_vygRGJV9E-wX-T48Rzj8,20576
|
|
8
8
|
data_processing/graph_utils.py,sha256=4D72wMSiCRKCPC7JUz7XCoaISRGLuqDx6wpeO_VP8fk,8301
|
|
9
9
|
data_processing/s3fs_utils.py,sha256=ki1EmA0ezV0r26re6dRWIGzL5FudGdwF9Qw1eVLR0Bc,2747
|
|
@@ -31,13 +31,13 @@ map_app/static/js/main.js,sha256=8vWWO56vc8LEhyp3AeRiJw1tsqebZtkG9IOS65b154w,110
|
|
|
31
31
|
map_app/static/resources/loading.gif,sha256=ggdkZf1AD7rSwIpSJwfiIqANgmVV1WHlxGuKxQKv7uY,72191
|
|
32
32
|
map_app/static/resources/screenshot.jpg,sha256=Ia358aX-OHM9BP4B8lX05cLnguF2fHUIimno9bnFLYw,253730
|
|
33
33
|
map_app/templates/index.html,sha256=vgcefTU3GmRDNL6P5Xi284nO2vdLxxIW8c5xp3SHsTg,8664
|
|
34
|
-
ngiab_data_cli/__main__.py,sha256=
|
|
34
|
+
ngiab_data_cli/__main__.py,sha256=_8IFqL2CGZGMsC71uutqHOIjZpfYBD91yKTk4dvEa3c,11318
|
|
35
35
|
ngiab_data_cli/arguments.py,sha256=97BFzlj68tt9tRCR3rTPnK6o7zd7dUCdPg8Cypa2aKA,4782
|
|
36
36
|
ngiab_data_cli/custom_logging.py,sha256=iS2XozaxudcxQj17qAsrCgbVK9LJAYAPmarJuVWJo1k,1280
|
|
37
37
|
ngiab_data_cli/forcing_cli.py,sha256=eIWRxRWUwPqR16fihFDEIV4VzGlNuvcD6lJW5VYjkPU,3635
|
|
38
|
-
ngiab_data_preprocess-4.6.
|
|
39
|
-
ngiab_data_preprocess-4.6.
|
|
40
|
-
ngiab_data_preprocess-4.6.
|
|
41
|
-
ngiab_data_preprocess-4.6.
|
|
42
|
-
ngiab_data_preprocess-4.6.
|
|
43
|
-
ngiab_data_preprocess-4.6.
|
|
38
|
+
ngiab_data_preprocess-4.6.2.dist-info/licenses/LICENSE,sha256=6dMSprwwnsRzEm02mEDbKHD9dUbL8bPIt9Vhrhb0Ulk,1081
|
|
39
|
+
ngiab_data_preprocess-4.6.2.dist-info/METADATA,sha256=4-3gEQYdntUMc7yq4cxNFTNodjxFyj3h7Ky6FbPEUxo,13351
|
|
40
|
+
ngiab_data_preprocess-4.6.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
41
|
+
ngiab_data_preprocess-4.6.2.dist-info/entry_points.txt,sha256=spwlhKEJ3ZnNETQsJGeTjD7Vwy8O_zGHb9GdX8ACCtw,128
|
|
42
|
+
ngiab_data_preprocess-4.6.2.dist-info/top_level.txt,sha256=CjhYAUZrdveR2fOK6rxffU09VIN2IuPD7hk4V3l3pV0,52
|
|
43
|
+
ngiab_data_preprocess-4.6.2.dist-info/RECORD,,
|
|
File without changes
|
{ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{ngiab_data_preprocess-4.6.0.dist-info → ngiab_data_preprocess-4.6.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|