Functions and Python scripts to ingest ERA5 data into Google Earth Engine
This repository contains a set of functions and example scripts to ingest Copernicus ERA5 reanalysis data into Google Earth Engine based on manifest uploads.
The functions were developed during the process of making a subset of the ERA5 reanalysis data available in Google Earth Engine.
The workflow consists of six major steps:
NetCDF
format from the Climate Data Store with cdsapi
xarray
NetCDF
data files to GeoTiff
with gdal
GeoTiff
files to Google Cloud Platform (GCP) with google-cloud-storage Python API
earthengine-api
and manifest uploads
The scripts base on the following naming convention
and folder_structure
:
Data is downloaded from the Climate Data Store with the following syntax:
era5_
+ name_of_variable_
+ year_
+ month_
+ day
+ .nc
era5_2m_dewpoint_temperature_1980_01_01.nc
(example for 2m air temperature)
era5_t2m
nc
hourly
year
(e.g. 1979)daily
year
(e.g. 1979)monthly
year
(e.g. 1979)tiff
hourly
year
(e.g. 1979)daily
year
(e.g. 1979)monthly
year
(e.g. 1979)manifests
era5_hourly
year
(e.g. 1979)era5_daily
year
(e.g. 1979)era5_monthly
year
(e.g. 1979)manifest_template.json
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.