Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
tomkralidis / cwl-1.2.json
Created September 29, 2025 12:39
CWL 1.2 JSON Schema in JSON encoding
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$author": "Francis Charette-Migneault <[email protected]>",
"$id": "https://raw.githubusercontent.com/common-workflow-language/cwl-v1.2/1.2.1_proposed/json-schema/cwl.yaml",
"$defs": {
"CWL": {
"oneOf": [
{
"$ref": "#/$defs/CWLAtomic"
},
@tomkralidis
tomkralidis / README.md
Last active May 31, 2023 11:19
OGC API - Records validation
@tomkralidis
tomkralidis / README.md
Last active September 20, 2022 00:48
OGC API Features - Part 4: Transactions example

OGC API Features - Part 4: Transactions examples

Overview

Examples of OGC API transactions using OGC API - Features - Part 4: Create, Replace, Update and Delete in the context of OGC API - Records metadata management.

curl

@tomkralidis
tomkralidis / README.md
Last active May 19, 2022 18:09
sample pygeoapi ZonalStats pygeoapi OAProc process

Sample pygeoapi process plugin for zonal statistics using GDAL and NumPy

@tomkralidis
tomkralidis / msc-geomet-ltce-demo.ipynb
Last active January 26, 2022 20:52
MSC GeoMet LTCE Jupyter demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomkralidis
tomkralidis / README.md
Last active March 24, 2021 12:11
pygeoapi Sample Process Example
@tomkralidis
tomkralidis / README.md
Last active October 18, 2020 18:20
OSCAR station list extraction using pyoscar

OSCAR station list extraction using pyoscar

Simple workflow using pyoscar to extract a station list from OSCAR into a CSV.

@tomkralidis
tomkralidis / README.md
Last active August 3, 2020 00:48
Metadata records TinyDB experiment

Overview

This gist demonstrates creating a document store of OGC API - Records records using TinyDB as a backend.

Steps

pip3 install lxml owslib tinydb
python3 create-records-tinydb.py msc-wis-dcpc-discovery-metadata.xml
@tomkralidis
tomkralidis / full-metadata.j2
Last active February 2, 2022 14:19
GeoCRIS metadata generation
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gco="http://www.isotc211.org/2005/gco" xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://www.isotc211.org/2005/gmd/gmd.xsd">
<gmd:fileIdentifier>
<gco:CharacterString>{{ record['identifier'] }}</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:language>
<gco:CharacterString>{{ record['language'] }}</gco:CharacterString>
</gmd:language>
<gmd:characterSet>
<gmd:MD_CharacterSetCode codeSpace="ISOTC211/19115" codeList="http://www.isotc211.org/2005/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode" codeListValue="utf8">utf8</gmd:MD_CharacterSetCode>
</gmd:characterSet>