Skip to content

Commit feb144d

Browse files
authored
Merge pull request #37 from PermafrostDiscoveryGateway/develop
Develop
2 parents f39a3b7 + e709e50 commit feb144d

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Viz-workflow: the Permafrost Discovery Gateway geospatial data visualization workflow
22

33
- **Authors**: Robyn Thiessen-Bock ; Juliet Cohen ; Matthew B. Jones ; Kastan Day ; Lauren Walker
4-
- **DOI**: [10.18739/A2NS0M04C](https://ezid.cdlib.org/id/doi:10.18739/A2NS0M04C)
4+
- **DOI**: [10.18739/A2599Z362](https://ezid.cdlib.org/id/doi:10.18739/A2599Z362)
55
- **License**: [Apache 2](https://opensource.org/license/apache-2-0/)
66
- [Package source code on GitHub](https://github.com/PermafrostDiscoveryGateway/viz-workflow)
77
- [Submit bugs and feature requests](https://github.com/PermafrostDiscoveryGateway/viz-workflow/issues/new)
@@ -14,7 +14,7 @@ The Permafrost Discovery Gateway visualization workflow uses [viz-staging](https
1414

1515
Cite this software as:
1616

17-
> Robyn Thiessen-Bock, Juliet Cohen, Matthew B. Jones, Kastan Day, Lauren Walker. 2023. Viz-workflow: the Permafrost Discovery Gateway geospatial data visualization workflow (version 0.9.2). Arctic Data Center. doi: 10.18739/A2NS0M04C
17+
> Robyn Thiessen-Bock, Juliet Cohen, Matthew B. Jones, Kastan Day, Lauren Walker. 2023. Viz-workflow: the Permafrost Discovery Gateway geospatial data visualization workflow (version 0.9.3). Arctic Data Center. doi: 10.18739/A2599Z362
1818
1919
## Usage
2020

infrastructure_config.py

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# always include the tailing slash "/"
66
# define user on Delta, avoid writing files to other user's dir
77
user = subprocess.check_output("whoami").strip().decode("ascii")
8-
head_node = 'cn102/'
8+
head_node = 'cn014/'
99
#head_node = 'gpub___'
1010

11-
INPUT = '/scratch/bbou/julietcohen/infrastructure/input/'
12-
output_subdir = 'infrastructure/output'
11+
INPUT = '/scratch/bbou/julietcohen/infrastructure/input/20240423/'
12+
output_subdir = 'infrastructure/output/20240423'
1313
OUTPUT = f'/scratch/bbou/{user}/{output_subdir}/'
1414

1515
STAGING_LOCAL = '/tmp/staged/'
@@ -44,11 +44,33 @@
4444
"tms_id": "WGS1984Quad",
4545
"z_range": [
4646
0,
47-
12
47+
13
4848
],
4949
"geometricError": 57,
5050
"z_coord": 0,
5151
"statistics": [
52+
{
53+
"name": "palette_code",
54+
"weight_by": "area",
55+
"property": "palette_code",
56+
"aggregation_method": "max",
57+
"resampling_method": "nearest",
58+
"val_range": [
59+
1,
60+
7
61+
],
62+
"palette": [
63+
"#e67428", # 11=linear transport infrastructure (asphalt)
64+
"#9939a7", # 12=linear transport infrastructure (gravel)
65+
"#4daf4a", # 13=linear transport infrastructure (undefined)
66+
"#e41a1c", # 20=buildings (and other constructions such as bridges)
67+
"#787878", # 30=other impacted area (includes gravel pads, mining sites)
68+
"#e567e9", # 40=airstrip
69+
"#1f78b4" # 50=reservoir or other water body impacted by human activities
70+
],
71+
"nodata_val": 0,
72+
"nodata_color": "#ffffff00"
73+
},
5274
{
5375
"name": "infrastructure_code",
5476
"weight_by": "area",
@@ -60,13 +82,13 @@
6082
50
6183
],
6284
"palette": [
63-
"#f48525",
64-
"#f4e625",
65-
"#47f425",
66-
"#25f4e2",
67-
"#2525f4",
68-
"#f425c3",
69-
"#f42525"
85+
"#e67428", # 11=linear transport infrastructure (asphalt)
86+
"#9939a7", # 12=linear transport infrastructure (gravel)
87+
"#4daf4a", # 13=linear transport infrastructure (undefined)
88+
"#e41a1c", # 20=buildings (and other constructions such as bridges)
89+
"#787878", # 30=other impacted area (includes gravel pads, mining sites)
90+
"#e567e9", # 40=airstrip
91+
"#1f78b4" # 50=reservoir or other water body impacted by human activities
7092
],
7193
"nodata_val": 0,
7294
"nodata_color": "#ffffff00"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
test_suite='tests',
5151
tests_require=test_requirements,
5252
url='https://github.com/PermafrostDiscoveryGateway/viz-workflow',
53-
version='0.9.2',
53+
version='0.9.3',
5454
zip_safe=False,
5555
)

slurm/BEST_cpu_ray_double_srun.slurm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ set -x
3838

3939
echo "This is BEST_cpu_ray_double_srun.slurm"
4040

41-
# venv init
42-
source /scratch/bbou/julietcohen/venv/infrastructure/bin/activate
41+
# venv init or conda activate
42+
conda activate arc_inf
4343
# source /scratch/bbou/julietcohen/venv/iwp_3/bin/activate
4444
# set file soft limit to maximum value (not unlimited because that's not permitted)
4545
# before any srun's are executed

0 commit comments

Comments
 (0)