Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
GeoSentinel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mario Chirinos Colunga
GeoSentinel
Commits
30a2e2fb
Commit
30a2e2fb
authored
May 28, 2018
by
Mario Chirinos Colunga
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndvi
parent
e69e26c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
producListToNDVI.sh
tools/producListToNDVI.sh
+1
-1
productListToIndex.sh
tools/productListToIndex.sh
+8
-6
No files found.
tools/producListToNDVI.sh
View file @
30a2e2fb
...
@@ -6,4 +6,4 @@ WINDOW=$3 #Crop Window
...
@@ -6,4 +6,4 @@ WINDOW=$3 #Crop Window
$B1
=
"08"
$B1
=
"08"
$B2
=
"04"
$B2
=
"04"
sh productListToIndex.sh
$PRODCUTSDIR
$JP2DIR
$WINDOW
$JP2DIR
/ndvi/
$B1
$B2
sh productListToIndex.sh
$PRODCUTSDIR
$JP2DIR
$WINDOW
$JP2DIR
"ndvi/"
$B1
$B2
tools/productListToIndex.sh
View file @
30a2e2fb
...
@@ -48,14 +48,16 @@ do
...
@@ -48,14 +48,16 @@ do
python3
$HOME
/git/GeoSentinel/geosentinel/normalizedIndex.py
$B1FN
$B2FN
$OUTPUTDIR
"/"
$fileout2
"_"
$fileout1
".tiff"
python3
$HOME
/git/GeoSentinel/geosentinel/normalizedIndex.py
$B1FN
$B2FN
$OUTPUTDIR
"/"
$fileout2
"_"
$fileout1
".tiff"
fi
fi
if
[
!
-d
"video"
]
;
then
cd
$OUTPUTDIR
mkdir
video
if
[
!
-d
$fileout1
]
;
then
mkdir
$fileout1
fi
fi
cd
..
if
[
!
-e
$OUTPUTDIR$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
]
;
then
gdal_translate
-projwin
$BOX
-projwin_srs
WGS84
-ot
Byte
-scale
0 255 0 255
-of
JPEG
$OUTPUTDIR$$
fileout2
"_"
$fileout1
".tiff"
$OUTPUTDIR$fileout1
/
$fileout2
"_"
$fileout1
".jpg"
fi
# set GDAL_PAM_ENABLED=NO
gdal_translate
-projwin
$BOX
-projwin_srs
WGS84
-ot
Byte
-scale
0 255 0 255
-of
JPEG
$OUTPUTDIR
"/"
$fileout2
"_"
$fileout1
".tiff"
video/
$fileout2
"_"
$fileout1
".jpg"
# set GDAL_PAM_ENABLED=YES
rm
*
.xml
cd
$PRODCUTSDIR
cd
$PRODCUTSDIR
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment