Skip to content

terradue-ogc-dp21/rcm-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RCM harvesting and publication on S3

This repo contains a CWL document to harvest and publish to S3 RADARSAT Constellation Mission (RCM) acquisitions.

The CWL Workflow:

  • harvests the RCM metadata and creates a STAC item (and a STAC catalog)
  • optionaly publishes the STAC item and catalog to an S3 bucket

Getting the RCM data

NRCAN provides access to ten RCM acquisitions in the context of the OGC Disasters Pilot 21 initiative.

Once downloaded from the FTP site, put each of the RCM zip archives in a dedicated folder as shown in the example below:

$ tree RCM1_OK1721243_PK1721268_4_5M9_20200425_001248_HH_HV_GRD/
RCM1_OK1721243_PK1721268_4_5M9_20200425_001248_HH_HV_GRD/
└── RCM1_OK1721243_PK1721268_4_5M9_20200425_001248_HH_HV_GRD.zip

Running the CWL Workflow

  1. Get the latest CWL Workflow document release from https://github.com/terradue-ogc-dp21/rcm-metadata/releases

  2. Install docker and cwltool

  3. Prepare a YAML parameters file with:

rcm:
  - class: Directory
    path: RCM1_OK1721243_PK1721268_4_5M9_20200425_001248_HH_HV_GRD
sink-access-key-id: <replace with S3 access key id>
sink-secret-access-key: <replace with S3 access key>
sink-service-url: <replace with S3 service URL>
sink-region: <replace with S3 region>
sink-path: <replace with S3 path>
  1. Run the CWL Workflow with:
cwltool raw-harvest-stage.0.1.1.cwl params.yml

Done!