geomet-climate

Geospatial web services for Canadian climate data

https://github.com/ECCC-CCCS/geomet-climate

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.5%) to scientific vocabulary

Keywords

ahccd cangrd cansips climate cmip5 downscale
Last synced: 6 months ago · JSON representation

Repository

Geospatial web services for Canadian climate data

Basic Info
Statistics
  • Stars: 22
  • Watchers: 7
  • Forks: 11
  • Open Issues: 3
  • Releases: 0
Topics
ahccd cangrd cansips climate cmip5 downscale
Created over 7 years ago · Last pushed 8 months ago
Metadata Files
Readme License

README.md

geomet-climate

Build Status

Overview

geomet-climate provides the MapServer setup and configuration for deployment of MSC GeoMet climate service data OGC Web Services.

Installation

Dependencies

  • Python MapScript
  • GDAL Python bindings

Requirements

Dependencies

Dependencies are listed in requirements.txt. Dependencies are automatically installed during installation.

Installing geomet-climate

```bash

install system wide packages

sudo apt-get install python-mapscript python-gdal

setup virtualenv

virtualenv geomet-climate cd geomet-climate . bin/activate

clone codebase and install

git clone https://github.com/ECCC-CCCS/geomet-climate.git cd geomet-climate pip3 install -r requirements.txt pip3 install -r requirements-dev.txt pip3 install -e .

configure environment

vi geomet-climate.env # edit paths accordingly . geomet-climate.env ```

Running

```bash

help

geomet-climate --help

get version

geomet-climate --version

generate VRTs for all layers

geomet-climate vrt generate

generate VRTs for single layer

geomet-climate vrt generate --layer=CMIP5.SND.RCP26.FALL.ANO_PCTL50

generate tileindex for all layers

geomet-climate tileindex generate

generate tileindex for single layer

geomet-climate tileindex generate --layer=CMIP5.SND.RCP26.FALL.ANO_PCTL50

generate legends for all layers

geomet-climate legend generate

generate mapfile for WMS

geomet-climate mapfile generate --service=WMS

generate mapfile for WMS with specific configuration for single layer

geomet-climate mapfile generate --service=WMS --layer=CMIP5.SND.RCP26.FALL.ANO_PCTL50

generate mapfile for WCS

geomet-climate mapfile generate --service=WCS

run server

geomet-climate serve # server runs on port 8099

run server on a different port

geomet-climate serve --port=8011

cache WMS and WCS Capabilities URLs

mapserv -nh QUERYSTRING="map=$GEOMETCLIMATEBASEDIR/mapfile/geomet-climate-WMS-en.map&service=WMS&version=1.3.0&request=GetCapabilities" > $GEOMETCLIMATEBASEDIR/geomet-climate-WMS-1.3.0-capabilities-en.xml && mv -f $GEOMETCLIMATEBASEDIR/geomet-climate-WMS-1.3.0-capabilities-en.xml $GEOMETCLIMATE_BASEDIR/mapfile

mapserv -nh QUERYSTRING="map=$GEOMETCLIMATEBASEDIR/mapfile/geomet-climate-WMS-fr.map&lang=fr&service=WMS&version=1.3.0&request=GetCapabilities" > $GEOMETCLIMATEBASEDIR/geomet-climate-WMS-1.3.0-capabilities-fr.xml && mv -f $GEOMETCLIMATEBASEDIR/geomet-climate-WMS-1.3.0-capabilities-fr.xml $GEOMETCLIMATE_BASEDIR/mapfile

mapserv -nh QUERYSTRING="map=$GEOMETCLIMATEBASEDIR/mapfile/geomet-climate-WCS-en.map&service=WCS&version=2.1.0&request=GetCapabilities" > $GEOMETCLIMATEBASEDIR/geomet-climate-WCS-2.0.1-capabilities-en.xml && mv -f $GEOMETCLIMATEBASEDIR/geomet-climate-WCS-2.0.1-capabilities-en.xml $GEOMETCLIMATE_BASEDIR/mapfile

mapserv -nh QUERYSTRING="map=$GEOMETCLIMATEBASEDIR/mapfile/geomet-climate-WCS-fr.map&lang=fr&service=WCS&version=2.1.0&request=GetCapabilities" > $GEOMETCLIMATEBASEDIR/geomet-climate-WCS-2.0.1-capabilities-fr.xml && mv -f $GEOMETCLIMATEBASEDIR/geomet-climate-WCS-2.0.1-capabilities-fr.xml $GEOMETCLIMATE_BASEDIR/mapfile ```

Development

Running Tests

bash . tests/geomet-climate-test.env python3 setup.py test

Cleaning the build of artifacts

bash python3 setup.py cleanbuild

Releasing

bash python3 setup.py sdist bdist_wheel --universal twine upload dist/*

Code Conventions

Bugs and Issues

All bugs, enhancements and issues are managed on GitHub.

Contact

Owner

  • Name: Canadian Centre for Climate Services
  • Login: ECCC-CCCS
  • Kind: organization

The Canadian Centre for Climate Services (CCCS) is a dedicated multi-disciplinary team with expertise across a broad range of climate-related disciplines.

GitHub Events

Total
  • Watch event: 3
  • Issue comment event: 2
  • Push event: 16
  • Pull request review event: 3
  • Pull request review comment event: 3
  • Pull request event: 28
  • Create event: 6
Last Year
  • Watch event: 3
  • Issue comment event: 2
  • Push event: 16
  • Pull request review event: 3
  • Pull request review comment event: 3
  • Pull request event: 28
  • Create event: 6

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 115
  • Total Committers: 7
  • Avg Commits per committer: 16.429
  • Development Distribution Score (DDS): 0.617
Past Year
  • Commits: 12
  • Committers: 3
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.583
Top Committers
Name Email Commits
Tom Kralidis t****s@g****m 44
Louis-Philippe Rousseau Lambert 1****P 41
Kevin Ngai k****i 15
Etienne Pelletier e****r@c****a 6
felixlaframboise f****e@c****a 4
Louis-Philippe Rousseau Lambert l****t@c****a 4
Alexandre Leroux a****x@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 3
  • Total pull requests: 104
  • Average time to close issues: about 2 years
  • Average time to close pull requests: 13 days
  • Total issue authors: 2
  • Total pull request authors: 9
  • Average comments per issue: 2.33
  • Average comments per pull request: 0.09
  • Merged pull requests: 93
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 0
  • Pull requests: 25
  • Average time to close issues: N/A
  • Average time to close pull requests: 7 days
  • Issue authors: 0
  • Pull request authors: 3
  • Average comments per issue: 0
  • Average comments per pull request: 0.08
  • Merged pull requests: 21
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • RousseauLambertLP (2)
  • huard (1)
Pull Request Authors
  • RousseauLambertLP (49)
  • kngai (23)
  • tomkralidis (15)
  • Dukestep (15)
  • flaframboise (4)
  • alexandreleroux (1)
  • plourdejonathan (1)
  • dependabot[bot] (1)
  • VincentBougie (1)
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels
bug (2) enhancement (2) dependencies (1)

Dependencies

requirements.txt pypi
  • click *
  • gdal *
  • mappyfile *
  • mapscript *
  • matplotlib ==2.1.1
  • numpy ==1.13.3
  • pyyaml *
requirements-dev.txt pypi
  • flake8 * development
.github/workflows/main.yml actions
  • actions/checkout v2 composite
  • actions/setup-python v2 composite
Dockerfile docker
  • ubuntu focal build
docker/docker-compose.yml docker
  • eccc-msc/geomet-climate nightly
docker/docker-compose.override.yml docker
setup.py pypi