SGLICollect is an open-source software for searching, downloading and reading SGLI/GCOM-C products from both GPORTAL and JASMES.
Acknowledgment: This project was developed as part of my master's degree at Kyoto University of Advanced Science, under the Remote Sensing Laboratory.
This project is built for research purposes to collect and extract data.
The research contributes towards my master's degree, under the supervision of Professor Salem Ibrahim Salem.
This section explains how to download and set up SGLICollect for various environments (The GUI version of SGLICollect is currently under construction)
-
Download the bash installer:
curl -L -o SGLICollect_installer.sh https://raw.githubusercontent.com/muhammads97/SGLICollect/main/installer.sh -
Run the installer:
sh SGLICollect_installer.sh -
Add SGLICollect to the system path
Now you can use SGLICollect as follows:
SGLICollect --version
To use SGLICollect inside a conda environment please follow the instructions in this section
- Clone this repo:
git clone https://github.com/muhammads97/SGLICollect.git - Install the conda environment:
conda env create -f environment.yml - Activate the conda environment:
conda activate SGLICollect - Validate installation:
python <path to SGLICollect> --version
The SGLICollect operates using a JSON configuration file and a CSV file.
The services provided are as follows:
- Search (using latitude, longitude, and date)
- Download (using product URL)
- Extract (using product directory, latitude, and longitude)
All the parameters for these services are set using the JSON configuration file and the CSV file
To run the SGLICollect, set the parameters needed in config.json and run:
for the stand-alone version:
SGLICollect -c <path to config.json>
for the conda python installation:
python <path to SGLICollect> -c <path to config.json>
Configuration options:
operations: an array of the operations that will be performed, the available options are:search,download, andextract.args: an object containing the arguments to be used for these operations:product: satellite product, please refer to the list of products.csv: a path to a CSV file for bulk processing mode. (This will override the parameters provided for single-entry mode), refer to CSV file format.api:GPORTALorJASMES(Default:GPORTAL).download_dir: Download directory (for both single-entry and bulk-processing). If not provided, the files will be downloaded in the temp directory and they will be deleted once the processing ends.cred: path to JSON file containing account and password (refer to Credentials file).product_dir: directory of all products used for the extraction step for bulk-processing mode.no_repeat:trueorfalse. Used for search and download, if the entry already exists in the CSV or the file is already downloaded the operation will be skipped. (default: false)
L1B: Level 1 B SGLI product from GPortal.L2P: Level 2 Water Quality Products from GPortal.L2R: Level 2 Remote Sensing Reflectance from GPortal.
ALL: All JASMES Products will be obtained:- NWLR_380
- NWLR_412
- NWLR_443
- NWLR_490
- NWLR_530
- NWLR_565
- NWLR_670
- CDOM
- CHLA
- TSM
- SST
a Json file containing account and password for GPortal or JASMES
Example:
{
"account": "username",
"password": "password"
}
- date
- lat
- lon
- Output columns for GPORTAL:
- identifier
- file_status
- download_url
- preview_url
- cloud_coverage (%)
- Output columns for JASMES:
- ftp_path_ (example: ftp_path_CDOM)
- download_url (GPortal)/ftp_path_ (JASMES)
No updates to the CSV, the files will be downloaded either in the specified download_dir or in the temp folder.
- identifier (GPortal)/ ftp_path_ (JASMES)
- lat
- lon
- L1B:
- Rt11_GPORTAL: Reflectance at band 11
- Rt10_GPORTAL: Reflectance at band 10
- Rt09_GPORTAL: Reflectance at band 09
- Rt08_GPORTAL: Reflectance at band 08
- Rt07_GPORTAL: Reflectance at band 07
- Rt06_GPORTAL: Reflectance at band 06
- Rt05_GPORTAL: Reflectance at band 05
- Rt04_GPORTAL: Reflectance at band 04
- Rt03_GPORTAL: Reflectance at band 03
- Rt02_GPORTAL: Reflectance at band 02
- Rt01_GPORTAL: Reflectance at band 01
- Lt11_GPORTAL: Radiance at band 11
- Lt10_GPORTAL: Radiance at band 10
- Lt09_GPORTAL: Radiance at band 09
- Lt08_GPORTAL: Radiance at band 08
- Lt07_GPORTAL: Radiance at band 07
- Lt06_GPORTAL: Radiance at band 06
- Lt05_GPORTAL: Radiance at band 05
- Lt04_GPORTAL: Radiance at band 04
- Lt03_GPORTAL: Radiance at band 03
- Lt02_GPORTAL: Radiance at band 02
- Lt01_GPORTAL: Radiance at band 01
- land_GPORTAL: percentage of land in the pixel
- L2R:
- Rrs_670_GPORTAL: Remote sensing reflectance at wavelength 670 nm
- Rrs_565_GPORTAL: Remote sensing reflectance at wavelength 565 nm
- Rrs_530_GPORTAL: Remote sensing reflectance at wavelength 530 nm
- Rrs_490_GPORTAL: Remote sensing reflectance at wavelength 490 nm
- Rrs_443_GPORTAL: Remote sensing reflectance at wavelength 443 nm
- Rrs_412_GPORTAL: Remote sensing reflectance at wavelength 412 nm
- Rrs_380_GPORTAL: Remote sensing reflectance at wavelength 380 nm
- L2P:
- Chla_GPORTAL : Chlorophyll-a concentration using JAXA's Standard Chla Algorithm for GPortal (mg/m3)
- aCDOM_412_GPORTAL : absorption of Colored Dissolved Organic Matter at wavelength 412 nm (1/m)
- TSM_GPORTAL : Total Suspended Matter (g/m3)
- NWLR_380_JASMES
- NWLR_412_JASMES
- NWLR_443_JASMES
- NWLR_490_JASMES
- NWLR_530_JASMES
- NWLR_565_JASMES
- NWLR_670_JASMES
- Rrs_380_JASMES
- Rrs_412_JASMES
- Rrs_443_JASMES
- Rrs_490_JASMES
- Rrs_530_JASMES
- Rrs_565_JASMES
- Rrs_670_JASMES
- CDOM_JASMES
- CHLA_JASMES
- TSM_JASMES
- SST_JASMES
config.json :
{
"operations": ["search", "download", "extract"],
"args": {
"api": "GPORTAL",
"product": "L2R",
"latitude": 44.853750035714505,
"longitude": 138.32875040812206,
"date": "2023/11/21",
"download_dir": "~/Downloads/",
"cred": "./cred.json"
}
}
Note: in this example, product_path doesn't need to be set because after the download finishes the product_path will be calculated automatically.
config.json :
{
"operations": ["search", "download", "extract"],
"args": {
"api": "GPORTAL",
"product": "L2R",
"csv": "./test.csv"
"no_repeat": false,
"download_dir": "~/Downloads/",
"product_dir": "~/Downloads/",
"cred": "./cred.json"
}
}
If you use SGLICollect in your research or project, please cite it using the following reference:
Salah, Muhammad & Salem, Salem Ibrahim (2024). muhammads97/SGLICollect: v2.1.0 (v2.1.0). Zenodo. https://doi.org/10.5281/zenodo.10819786