Skip to content

Commit

Permalink
Updated for IIS
Browse files Browse the repository at this point in the history
  • Loading branch information
3PIV committed Apr 7, 2021
1 parent ca1b8e4 commit 3c055c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion preprocessing/merge_vegetation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for color in {1..2}; do
cp tmp/vegetation_high_hardwood_"$color".tif sublayers/vegetation_"$j"_"$color".tif
j=$(( j + 1 ));

cp tmp/vegetation_montane_alluv_"$color".tif sublayers/vegetation_"$j"_"$color".tif
cp tmp/vegetation_montane_alluv__"$color".tif sublayers/vegetation_"$j"_"$color".tif
j=$(( j + 1 ));

cp tmp/vegetation_oak_"$color".tif sublayers/vegetation_"$j"_"$color".tif
Expand Down
5 changes: 5 additions & 0 deletions preprocessing/patch_data_with_env_contributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@
if __name__ == '__main__':
arguments = docopt(__doc__)
with open(arguments['<data_file>']) as fp:
print('data:', arguments['<data_file>'])
data = json.load(fp)
with open(arguments['<irma_mappings_file>']) as fp:
print('irma:', arguments['<irma_mappings_file>'])
irma_mappings = json.load(fp)
with open(arguments['<env_stats_file>']) as fp:
print('env:', arguments['<env_stats_file>'])
temp = fp.readlines()
temp = [i.strip().split() for i in temp]

Expand All @@ -42,10 +45,12 @@
env_stats[i[0]] = [[i[1], i[2]]]

for k, v in data.items():
print(k, v)
if k in short_to_long_name and short_to_long_name[k] in env_stats:
_long = short_to_long_name[k]
data[k]['related-species'] = []
for i, species in enumerate(env_stats[_long]):
print(i)
latin = env_stats[_long][i][0]
contrib = env_stats[_long][i][1]
id = irma_mappings[latin]['id']
Expand Down
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
publicPath: ''
};

0 comments on commit 3c055c1

Please sign in to comment.