GOES-19 ABI
# Install AerEO and any required plugins for this notebook (Google Colab)
!pip install -q "aereo[viz]" aereo-search-aws-goes aereo-read-satpy
# Download config files and AOIs from the GitHub repository so this
# notebook can run outside the repo (e.g. Google Colab).
import os
import urllib.request
GITHUB_RAW = "https://raw.githubusercontent.com/frandorr/aereo/main"
os.makedirs("config/aoi", exist_ok=True)
# Config files
urllib.request.urlretrieve(
f"{GITHUB_RAW}/examples/config/job_goes19.yaml",
"config/job_goes19.yaml",
)
# AOI files
urllib.request.urlretrieve(
f"{GITHUB_RAW}/examples/config/aoi/cordoba.geojson",
"config/aoi/cordoba.geojson",
)
Config used in this notebook¶
This notebook loads the job from examples/config/job_goes19.yaml:
aoi_path: config/aoi/cordoba.geojson
name: viirs_sample
grid_dist: 50_000
grid_cells_margin: 10
target_aoi: ${aoi_path}
output_uri: /tmp/aereo_extraction
overwrite: false
search:
_target_: aereo.search_aws_goes.search_aws_goes
_partial_: true
collections:
ABI-L1b-RadF: [C07]
intersects: ${aoi_path}
start_datetime: "2026-01-01T15:00:00Z"
end_datetime: "2026-01-01T15:10:59Z"
satellites: [GOES-19]
channels: [C07]
read:
_partial_: true
_target_: aereo.read_satpy.read_satpy
reader: abi_l1b
wishlist: [C07]
reproject:
_target_: aereo.builtins.reproject_odc
_partial_: true
reproject_mode: grid
resolution: 2000
write:
_target_: aereo.builtins.write.write_geotiff
from aereo.cache import TaskResultCache
from aereo.executors import LocalExecutor
from aereo.pipeline import ExtractionJob
job = ExtractionJob.load_from_config(
config_dir="config",
config_name="job_goes19",
)
assets = job.search()
tasks = job.build_tasks(assets)
artifacts = job.execute(
tasks,
executor=LocalExecutor(workers=-1, cache=TaskResultCache()),
)
print(f"✓ Extracted {len(artifacts)} artifacts")
from aereo.viz import plot_artifact_patches
plot_artifact_patches(
artifacts,
ds_factor=1,
cmap="viridis",
stretch="percentile",
aoi=job.target_aoi,
aoi_edgecolor="blue",
)