The script herein preprocess Level-2 OC swath imagery for upload and ingestion into Google Earth Engine (GEE). The script can be adapted to any swath imagery other than OC data.
- Sample files were downloaded from NASA's OB.DAAC and JAXA's G-Portal.
- MODIS/Aqua
- SGLI/GCOM-C
Obtain the files from the above links and once downloaded save them in sample_data
folder.
There 3 Python notebooks included
- SWATH-2-GEOTIFF-2-GEE.ipynb - does the swath remapping and translation of the GeoTIFF image. It also includes the steps for data ingestion. Further, remapping with JAXA's DCT is also included.
- SWATH_REMAP_MODISA.ipynb - reproduces the figures for MODIS/Aqua remapping. The histograms in this notebook are also reproduced in GEE and can be found at this link.
- SWATH_REMAP_SGLI.ipynb - reproduces the figures for SGLI/GCOM-C remapping. Similar to MODIS/Aqua, the histograms in this notebook are also reproduced in GEE and can be found at this link.
See the above notebooks for details, briefly:
- Obtain the products for your region of interest from the OB.DAAC, G-Portal, or any other data provider.
- Define in
SWATH-2-GEOTIFF-2-GEE.ipynb
the input and output parameters including the I/O path, projection of the target area, and the Google Cloud bucket and Earth Engine parameters in case of using command-line tools. - Run the remapping cells and watch the output results in the
result
folder. The DCT remapping step can be commented out. - [Optional] - Upload the GeoTIFF file to GCloud, then build the manifest file.
- [Optional] - Use the manifest file to ingest the file.
The code was used in Maúre, Simon, Terauchi, 2022 Remote Sensing. 2022; 14(19):4906