Skip to content

Commit

Permalink
Merge pull request #37 from PermafrostDiscoveryGateway/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
julietcohen authored May 1, 2024
2 parents f39a3b7 + e709e50 commit feb144d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Viz-workflow: the Permafrost Discovery Gateway geospatial data visualization workflow

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

Cite this software as:

> 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
> 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
## Usage

Expand Down
44 changes: 33 additions & 11 deletions infrastructure_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
# always include the tailing slash "/"
# define user on Delta, avoid writing files to other user's dir
user = subprocess.check_output("whoami").strip().decode("ascii")
head_node = 'cn102/'
head_node = 'cn014/'
#head_node = 'gpub___'

INPUT = '/scratch/bbou/julietcohen/infrastructure/input/'
output_subdir = 'infrastructure/output'
INPUT = '/scratch/bbou/julietcohen/infrastructure/input/20240423/'
output_subdir = 'infrastructure/output/20240423'
OUTPUT = f'/scratch/bbou/{user}/{output_subdir}/'

STAGING_LOCAL = '/tmp/staged/'
Expand Down Expand Up @@ -44,11 +44,33 @@
"tms_id": "WGS1984Quad",
"z_range": [
0,
12
13
],
"geometricError": 57,
"z_coord": 0,
"statistics": [
{
"name": "palette_code",
"weight_by": "area",
"property": "palette_code",
"aggregation_method": "max",
"resampling_method": "nearest",
"val_range": [
1,
7
],
"palette": [
"#e67428", # 11=linear transport infrastructure (asphalt)
"#9939a7", # 12=linear transport infrastructure (gravel)
"#4daf4a", # 13=linear transport infrastructure (undefined)
"#e41a1c", # 20=buildings (and other constructions such as bridges)
"#787878", # 30=other impacted area (includes gravel pads, mining sites)
"#e567e9", # 40=airstrip
"#1f78b4" # 50=reservoir or other water body impacted by human activities
],
"nodata_val": 0,
"nodata_color": "#ffffff00"
},
{
"name": "infrastructure_code",
"weight_by": "area",
Expand All @@ -60,13 +82,13 @@
50
],
"palette": [
"#f48525",
"#f4e625",
"#47f425",
"#25f4e2",
"#2525f4",
"#f425c3",
"#f42525"
"#e67428", # 11=linear transport infrastructure (asphalt)
"#9939a7", # 12=linear transport infrastructure (gravel)
"#4daf4a", # 13=linear transport infrastructure (undefined)
"#e41a1c", # 20=buildings (and other constructions such as bridges)
"#787878", # 30=other impacted area (includes gravel pads, mining sites)
"#e567e9", # 40=airstrip
"#1f78b4" # 50=reservoir or other water body impacted by human activities
],
"nodata_val": 0,
"nodata_color": "#ffffff00"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/PermafrostDiscoveryGateway/viz-workflow',
version='0.9.2',
version='0.9.3',
zip_safe=False,
)
4 changes: 2 additions & 2 deletions slurm/BEST_cpu_ray_double_srun.slurm
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ set -x

echo "This is BEST_cpu_ray_double_srun.slurm"

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

0 comments on commit feb144d

Please sign in to comment.