Skip to content

Commit

Permalink
Merge pull request #24 from gabrieletijunaityte/gh-pages
Browse files Browse the repository at this point in the history
Solve confusion with bash script
  • Loading branch information
GreatEmerald committed Sep 5, 2024
2 parents 1cccab1 + b0f8cd8 commit a4ba478
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ rm input.tif
```{block, type="alert alert-success"}
> **Question 6**: Try to write to calculate the NDVI using the lines above in a nice and short shell script.
- Hint 1: `cd ../data` (to move back from the Bash directory and move into the data directory)
- Hint 1: use `cd ..` to move to the parent directory
- Hint 2: No spaces in file names are allowed and try to use variables e.g. `fn=$(ls *.tif)`
```
Expand All @@ -601,7 +601,7 @@ Let's now check if the range of the NDVI values makes sense, and make a nice scr
echo "teamname"
echo "Current date"
echo "Calculate LandSat NDVI"
mkdir -p data output
mkdir -p output
fn=data/*.tif
echo "The input file(s): $fn"
outfn=output/ndvi.tif
Expand Down
13 changes: 6 additions & 7 deletions index.html

Large diffs are not rendered by default.

0 comments on commit a4ba478

Please sign in to comment.