Skip to content
Snippets Groups Projects
Commit 130580b2 authored by lin xiong's avatar lin xiong
Browse files

env

parent 23427ed8
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
set -x
basedir=$( cd "$(dirname "$0")" ; pwd -P )
# mamba env update -n r-with-gdal --file "${basedir}/env_main.yaml"
source activate base
#install requirements packages
mamba env update -f ${basedir}/environment.yaml
# install the package
pip install git+https://github.com/remotesensinginfo/pysl4land.git
name: base
channels:
- conda-forge
- defaults
dependencies:
- geopandas
- h5py
- scipy
#!/bin/bash
#source activate base ??? do I have to incldue this ????
# # $1, $2, $3, ... represent the first, second, third, etc. arguments
# FOREST_HEIGHT_2000="input/2000_*.tif" # input or inputs????? # input in code?
# files are downloaded here.
INPUT_FILENAME=$(ls input/*.h5) # # | head -1 get first input tif file. # each time i input one.
# FOREST_LOSS="input/netloss_${tile}.tif"
OUTPUT_FILENAME=$1
basedir=$(cd "$(dirname "$0")" ; pwd -P) # $0 represents the script name itself
mkdir -p output
pysl4landgeditools.py --input_file ${INPUT_FILENAME} --output_file output/${OUTPUT_FILENAME}
\ No newline at end of file
#!/bin/bash
set -x
basedir=$( cd "$(dirname "$0")" ; pwd -P )
# mamba env update -n r-with-gdal --file "${basedir}/env_main.yaml"
source activate base
#install requirements packages
mamba env update -f ${basedir}/environment.yaml
# install the package
pip install git+https://github.com/remotesensinginfo/pysl4land.git
name: base
channels:
- conda-forge
- defaults
dependencies:
- geopandas
- h5py
- scipy
#!/bin/bash
#source activate base ??? do I have to incldue this ????
# # $1, $2, $3, ... represent the first, second, third, etc. arguments
# FOREST_HEIGHT_2000="input/2000_*.tif" # input or inputs????? # input in code?
# files are downloaded here.
INPUT_FILENAME=$(ls input/*.h5) # # | head -1 get first input tif file. # each time i input one.
# FOREST_LOSS="input/netloss_${tile}.tif"
OUTPUT_FILENAME=$1
basedir=$(cd "$(dirname "$0")" ; pwd -P) # $0 represents the script name itself
mkdir -p output
pysl4landgeditools.py --input_file ${INPUT_FILENAME} --output_file output/${OUTPUT_FILENAME}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment