forked from LBaudoux/MLULC
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version 2.0: described in the manuscript submitted at ESSD
- Loading branch information
Showing
62 changed files
with
7,549 additions
and
6,418 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
**/__pycache__/** | ||
.idea/** | ||
data/* | ||
data | ||
experiments/* | ||
configs/* | ||
figures/* | ||
|
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
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,73 @@ | ||
#!/usr/bin/bash | ||
# | ||
# Helper for the download and set up of the data of ECOCLIMAP-SG-ML | ||
# | ||
|
||
# To be executed to the directory where the data will be stored (with at least 25GB per member) | ||
|
||
set -vx | ||
mkdir outputs | ||
|
||
# 1. Weights | ||
mkdir saved_models | ||
cd saved_models | ||
wget https://zenodo.org/records/11242911/files/mmt-weights-v2.0.ckpt | ||
wget https://zenodo.org/records/11242911/files/mmt-weights-v2.0.config.yaml | ||
echo "Weights downloaded in $PWD" | ||
cd .. | ||
|
||
# 2. ECOSG-ML files | ||
mkdir tiff_data | ||
mkdir tiff_data/ECOCLIMAP-SG-ML | ||
cd tiff_data/ECOCLIMAP-SG-ML | ||
for MB in {0..5}; | ||
do | ||
wget "https://zenodo.org/records/11242911/files/ecosgml-v2.0-mb00$MB.zip" | ||
done | ||
echo "ECOSG-ML TIF files downloaded in $PWD. Now unzipping --- `date`" | ||
for ZIP in `ls *.zip` | ||
do | ||
unzip $ZIP -d ${ZIP::-4} | ||
done | ||
echo "ECOSG-ML TIF files unzipped --- `date`" | ||
rm *.zip | ||
cd ../.. | ||
|
||
# 3. Training/testing data | ||
wget https://zenodo.org/records/11242911/files/hdf5-v2.0.zip | ||
echo "HDF5 files downloaded in $PWD. Now unzipping --- `date`" | ||
unzip -j hdf5-v2.0.zip -d hdf5_data | ||
echo "HDF5 files unzipped --- `date`" | ||
rm hdf5-v2.0.zip | ||
|
||
|
||
# 4. ESA WorldCover | ||
cd tiff_data | ||
wget https://zenodo.org/record/7254221/files/ESA_WorldCover_10m_2021_v200_60deg_macrotile_S30W060.zip | ||
wget https://zenodo.org/record/7254221/files/ESA_WorldCover_10m_2021_v200_60deg_macrotile_N30W060.zip | ||
wget https://zenodo.org/record/7254221/files/ESA_WorldCover_10m_2021_v200_60deg_macrotile_S30E000.zip | ||
wget https://zenodo.org/record/7254221/files/ESA_WorldCover_10m_2021_v200_60deg_macrotile_N30E000.zip | ||
echo "ESA WorldCover TIF files downloaded in $PWD. Now unzipping --- `date`" | ||
unzip '*.zip' -d ESA-WorldCover-2021 | ||
echo "ESA WorldCover TIF files unzipped --- `date`" | ||
rm *.zip | ||
cd .. | ||
|
||
|
||
# 5. ECOCLIMAP-SG | ||
mkdir tiff_data/ECOCLIMAP-SG-plus | ||
cd tiff_data/ECOCLIMAP-SG-plus | ||
wget https://zenodo.org/records/11517903/files/best-guess_map.zip | ||
unzip -j best-guess_map.zip -d bguess-ecosgp-v2.0 | ||
wget https://zenodo.org/records/11517903/files/quality_score_map.zip | ||
unzip -j quality_score_map.zip -d qscore-ecosgp-v2.0 | ||
cd ../.. | ||
|
||
# 6. ECOCLIMAP-SG | ||
mkdir tiff_data/ECOCLIMAP-SG | ||
|
||
set +vx | ||
echo " " | ||
echo "The data directory is almost ready. Two last things are to be done from the package root directory:" | ||
echo " ln -s $PWD data # Create a symbolic link in the package directory" | ||
echo " python scripts/download_ecoclimapsg.py --landingdir $PWD/tiff_data/ECOCLIMAP-SG # Download and extract ECOSG in TIF" |
Empty file.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.