-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
FOLDER=./download/lakes | ||
|
||
set -e | ||
|
||
# for i in {0..110} | ||
# do | ||
# NEXT_YEAR=$(date +%Y -d "$START_DATE + $i month") | ||
|
||
# TIF_FILENAME=$FOLDER/$(date +%Y%m%d -d "$START_DATE + $i month").tif | ||
# NC_FILENAME=$FOLDER/$(date +%Y%m%d -d "$START_DATE + $i month").nc | ||
|
||
# echo $TIF_FILENAME | ||
|
||
# # python ./data/tif2netcdf.py -v lswt -f $TIF_FILENAME -o $NC_FILENAME | ||
# done | ||
|
||
|
||
#!/bin/bash | ||
for filename in $FOLDER/*.tif; do | ||
TIF_FILENAME=$filename | ||
NC_FILENAME=${filename%.*}.nc | ||
echo $TIF_FILENAME | ||
python ./data/tif2netcdf.py -v lswt -f $TIF_FILENAME -o $NC_FILENAME | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ | |
1250 30 230 30 | ||
500 20 210 230 | ||
-500 28 88 203 | ||
-4999 28 88 203 | ||
-5000 255 255 255 | ||
-42767 0 0 0 0 | ||
nv 0 0 0 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters