This repository contains Python pipelines developed to automate the processing of Earth observation data, specifically OCO-3 (Orbiting Carbon Observatory-3) and ECOSTRESS datasets. Originally drafted during an internship at NASA's Jet Propulsion Laboratory (JPL), these scripts have been refactored for performance, scalability, and readability.
- OCO-3 SIF Extraction: Batch processes
.nc4(NetCDF4) files to extract Spatial Data (Latitude/Longitude), Sounding IDs, and Solar-Induced Fluorescence (SIF) data into consolidated, analysis-ready CSVs. - ECOSTRESS Raster Processing: Dynamically loads large batches of
.tif(GeoTIFF) Evapotranspiration arrays usinggdal, completely automating what would otherwise be a tedious manual data-entry process.
Ensure you have Python 3.8+ installed. You can install the required dependencies using:
pip install -r requirements.txt
(Note: gdal can sometimes be tricky to install via pip on Windows; using conda install -c conda-forge gdal is recommended).
- Place your raw
.nc4or.tiffiles in the respective input directories. - Update the
INPUT_DIRandOUTPUT_DIRpaths in theif __name__ == "__main__":block of the scripts. - Run the scripts from your terminal:
python src/extract_oco3_sif.py