Commit 5bba95dc authored by Mario Chirinos's avatar Mario Chirinos
Browse files

readme

parent 66ca0a47
Loading
Loading
Loading
Loading
+3 −3
Changes for README.md: 3 added lines, 3 removed lines.
Original line number Original line Diff line number Diff line
@@ -75,11 +75,11 @@ Este es el archivo principal que se usa para realizar el análisis. Este código
Este archivo realiza todo el procesamiento necesario para obtener los datos del área verde dentro del polígono de interés.
Este archivo realiza todo el procesamiento necesario para obtener los datos del área verde dentro del polígono de interés.
Este códigos realiza los siguientes pasos.
Este códigos realiza los siguientes pasos.


* **Descarga de los productos L2A**  utilizado el código *findProducts.py* de el repositorio [**Geosentinel**](http://gitlab.geoint.mx/mario.chirinos/GeoSentinel).
* **Descarga de los productos L2A**  utilizado el código *findProducts.py* del repositorio [**Geosentinel**](http://gitlab.geoint.mx/mario.chirinos/GeoSentinel).


* **Extraer las imágenes** del producto L2A en formato ZIP por medio del código *L2AProductListExtractData*.
* **Extraer las imágenes** del producto L2A en formato ZIP por medio del código *L2AProductListExtractData*  del repositorio [**Geosentinel**](http://gitlab.geoint.mx/mario.chirinos/GeoSentinel).


* 
*  **Crear un mosaico** con todas las imágenes que conforman la región de interés utilizado el código *mergeImagesByDirectory.sh* del repositorio [**Geosentinel**](http://gitlab.geoint.mx/mario.chirinos/GeoSentinel).


* 
* 
### 
### 
+36 −36
Changes for scripts/GI_L2ASCL_AreaProcessing.sh: 36 added lines, 36 removed lines.
Original line number Original line Diff line number Diff line
@@ -39,45 +39,45 @@ cd ..
yes yes | findProducts.py $USERDIR"findProducts.json"
yes yes | findProducts.py $USERDIR"findProducts.json"




##2.- Extract Images
#2.- Extract Images
#echo ${RED}"Extracting JP2 Images..."${NC}
echo ${RED}"Extracting JP2 Images..."${NC}
#if [ ! -d "jp2" ]; then
if [ ! -d "jp2" ]; then
#	mkdir jp2
	mkdir jp2
#fi
fi
#if [ $BYTILE -ne "0" ]; then
if [ $BYTILE -ne "0" ]; then
#        echo "BY TILE"
        echo "BY TILE"
#	L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4 1
	L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4 1

#else
#        echo "BY DATE"
#	L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4 0
#fi


##3.- Merge Images
else
#echo ${RED}"\nMerging Images..."${NC}
        echo "BY DATE"
#if [ $BYTILE -ne "0" ]; then
	L2AProductListExtractData.sh $USERDIR"L2A/" $USERDIR"jp2/" 4 0
#	echo "BY TILE"
fi
#	cd $USERDIR"jp2/"
#	if [ ! -d "../out" ]; then
#		mkdir "../out"
#	fi
##	ls -d */ | parallel -q --jobs 1 mergeImagesByDirectory.sh $USERDIR"jp2/"{} "$wtk" 4
#	for i in $(ls -d */) ; do
#		if [ ! -d "../out/"$i ]; then
#			mkdir "../out/"$i
#		fi
#		mergeImagesByDirectory.sh $USERDIR"jp2/"$i ../../../out/$i "$wkt"


#	done
#3.- Merge Images
#else
echo ${RED}"\nMerging Images..."${NC}
#	echo "BY DATE"
if [ $BYTILE -ne "0" ]; then
#        cd $USERDIR"jp2/"
	echo "BY TILE"
#        if [ ! -d "../out" ]; then
	cd $USERDIR"jp2/"
#                mkdir "../out"
	if [ ! -d "../out" ]; then
#        fi
		mkdir "../out"
#        mergeImagesByDirectory.sh $USERDIR"jp2/" $USERDIR"out/" "$wkt" 4
	fi
#	ls -d */ | parallel -q --jobs 1 mergeImagesByDirectory.sh $USERDIR"jp2/"{} "$wtk" 4
	for i in $(ls -d */) ; do
		if [ ! -d "../out/"$i ]; then
			mkdir "../out/"$i
		fi
		mergeImagesByDirectory.sh $USERDIR"jp2/"$i ../../../out/$i "$wkt"

	done
else
	echo "BY DATE"
        cd $USERDIR"jp2/"
        if [ ! -d "../out" ]; then
                mkdir "../out"
        fi
        mergeImagesByDirectory.sh $USERDIR"jp2/" $USERDIR"out/" "$wkt" 4


#fi
fi


##4.- Mask raster with shape file
##4.- Mask raster with shape file
#echo ${RED}"\nApplying Mask..."${NC}
#echo ${RED}"\nApplying Mask..."${NC}