# Source Cooperative — Earth Genome account (raster / COG host).
# Path-as-id: registry/sources/source-coop/earthgenome.yaml resolves catalog ref `@source-coop/earthgenome`.
#
# Source Cooperative is a multi-tenant host (each "account" is a publisher's
# namespace). Per the catalog-per-account convention, each account gets its own
# YAML file under registry/sources/source-coop/. The Earth Genome account hosts
# the Sentinel-2 cloud-free annual temporal mosaics today; other Earth Genome
# datasets would be sibling entries under the same account.

title: "Source Cooperative — Earth Genome"
endpoint: https://data.source.coop/earthgenome/
homepage: https://source.coop/earthgenome
operator: Source Cooperative (Radiant Earth) — hosting; data by Earth Genome
backend: s3                              # AWS us-west-2 bucket fronted by Cloudflare CDN
bucket: us-west-2.opendata.source.coop
bucket_path: earthgenome/

aliases:
  - earthgenome-source-coop

auth:
  mode: anonymous

cors_enabled: true                       # ACAO: * verified on data.source.coop responses
egress_cost: free                        # AWS Open Data sponsorship + Cloudflare CDN
region: us-west-2

notes: |
  Source Cooperative serves datasets via two equivalent URLs:
    - Cloudflare-fronted CDN: https://data.source.coop/earthgenome/<repo>/<file>
    - S3 virtual-hosted:      https://us-west-2.opendata.source.coop.s3.us-west-2.amazonaws.com/earthgenome/...
  Both anonymous, both CORS. The CDN URL is preferred for browser fetches;
  the S3 URL is preferred for boto3/awscli + range-read patterns.

  Bucket directory listing requires the S3 API path (the bare CDN dir URL
  returns 404). Per-file fetches work fine via either.
