geomet-climate
Geospatial web services for Canadian climate data.
https://github.com/ECCC-CCCS/geomet-climate
Category: Climate Change
Sub Category: Climate Data Processing and Analysis
Keywords
ahccd cangrd cansips climate cmip5 downscale
Keywords from Contributors
mapserver ogc weather wms
Last synced: about 17 hours ago
JSON representation
Repository metadata
Geospatial web services for Canadian climate data
- Host: GitHub
- URL: https://github.com/ECCC-CCCS/geomet-climate
- Owner: ECCC-CCCS
- License: gpl-3.0
- Created: 2018-06-27T14:33:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-06T21:08:00.000Z (about 2 months ago)
- Last Synced: 2025-04-17T22:59:29.418Z (9 days ago)
- Topics: ahccd, cangrd, cansips, climate, cmip5, downscale
- Language: Python
- Homepage: https://climate-change.canada.ca/climate-data
- Size: 4.48 MB
- Stars: 23
- Watchers: 7
- Forks: 11
- Open Issues: 3
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
geomet-climate
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
- Python 3
- virtualenv
Dependencies
Dependencies are listed in requirements.txt. Dependencies
are automatically installed during installation.
Installing geomet-climate
# 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
# 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 QUERY_STRING="map=$GEOMET_CLIMATE_BASEDIR/mapfile/geomet-climate-WMS-en.map&service=WMS&version=1.3.0&request=GetCapabilities" > $GEOMET_CLIMATE_BASEDIR/geomet-climate-WMS-1.3.0-capabilities-en.xml && mv -f $GEOMET_CLIMATE_BASEDIR/geomet-climate-WMS-1.3.0-capabilities-en.xml $GEOMET_CLIMATE_BASEDIR/mapfile
mapserv -nh QUERY_STRING="map=$GEOMET_CLIMATE_BASEDIR/mapfile/geomet-climate-WMS-fr.map&lang=fr&service=WMS&version=1.3.0&request=GetCapabilities" > $GEOMET_CLIMATE_BASEDIR/geomet-climate-WMS-1.3.0-capabilities-fr.xml && mv -f $GEOMET_CLIMATE_BASEDIR/geomet-climate-WMS-1.3.0-capabilities-fr.xml $GEOMET_CLIMATE_BASEDIR/mapfile
mapserv -nh QUERY_STRING="map=$GEOMET_CLIMATE_BASEDIR/mapfile/geomet-climate-WCS-en.map&service=WCS&version=2.1.0&request=GetCapabilities" > $GEOMET_CLIMATE_BASEDIR/geomet-climate-WCS-2.0.1-capabilities-en.xml && mv -f $GEOMET_CLIMATE_BASEDIR/geomet-climate-WCS-2.0.1-capabilities-en.xml $GEOMET_CLIMATE_BASEDIR/mapfile
mapserv -nh QUERY_STRING="map=$GEOMET_CLIMATE_BASEDIR/mapfile/geomet-climate-WCS-fr.map&lang=fr&service=WCS&version=2.1.0&request=GetCapabilities" > $GEOMET_CLIMATE_BASEDIR/geomet-climate-WCS-2.0.1-capabilities-fr.xml && mv -f $GEOMET_CLIMATE_BASEDIR/geomet-climate-WCS-2.0.1-capabilities-fr.xml $GEOMET_CLIMATE_BASEDIR/mapfile
Development
Running Tests
. tests/geomet-climate-test.env
python3 setup.py test
Cleaning the build of artifacts
python3 setup.py cleanbuild
Releasing
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 metadata
- Name: Canadian Centre for Climate Services
- Login: ECCC-CCCS
- Email:
- Kind: organization
- Description: The Canadian Centre for Climate Services (CCCS) is a dedicated multi-disciplinary team with expertise across a broad range of climate-related disciplines.
- Website: https://canada.ca/climate-services
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/40633470?v=4
- Repositories: 6
- Last ynced at: 2023-03-02T10:15:47.985Z
- Profile URL: https://github.com/ECCC-CCCS
GitHub Events
Total
- Watch event: 2
- Push event: 10
- Pull request review event: 3
- Pull request review comment event: 3
- Pull request event: 18
- Create event: 4
Last Year
- Watch event: 2
- Push event: 10
- Pull request review event: 3
- Pull request review comment event: 3
- Pull request event: 18
- Create event: 4
Committers metadata
Last synced: 6 days ago
Total Commits: 109
Total Committers: 7
Avg Commits per committer: 15.571
Development Distribution Score (DDS): 0.596
Commits in past year: 6
Committers in past year: 2
Avg Commits per committer in past year: 3.0
Development Distribution Score (DDS) in past year: 0.333
Name | Commits | |
---|---|---|
Tom Kralidis | t****s@g****m | 44 |
Louis-Philippe Rousseau Lambert | 1****P | 39 |
Kevin Ngai | k****i | 12 |
Etienne Pelletier | e****r@c****a | 5 |
felixlaframboise | f****e@c****a | 4 |
Louis-Philippe Rousseau Lambert | l****t@c****a | 4 |
Alexandre Leroux | a****x@g****m | 1 |
Committer domains:
- canada.ca: 3
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 3
Total pull requests: 90
Average time to close issues: about 2 years
Average time to close pull requests: 14 days
Total issue authors: 2
Total pull request authors: 9
Average comments per issue: 2.33
Average comments per pull request: 0.08
Merged pull request: 83
Bot issues: 0
Bot pull requests: 1
Past year issues: 0
Past year pull requests: 10
Past year average time to close issues: N/A
Past year average time to close pull requests: 11 days
Past year issue authors: 0
Past year pull request authors: 2
Past year average comments per issue: 0
Past year average comments per pull request: 0.0
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- RousseauLambertLP (2)
- huard (1)
Top Pull Request Authors
- RousseauLambertLP (45)
- tomkralidis (15)
- kngai (14)
- Dukestep (8)
- flaframboise (4)
- plourdejonathan (1)
- dependabot[bot] (1)
- alexandreleroux (1)
- VincentBougie (1)
Top Issue Labels
- enhancement (1)
Top Pull Request Labels
- bug (2)
- enhancement (2)
- dependencies (1)
Dependencies
- click *
- gdal *
- mappyfile *
- mapscript *
- matplotlib ==2.1.1
- numpy ==1.13.3
- pyyaml *
- flake8 * development
- actions/checkout v2 composite
- actions/setup-python v2 composite
- ubuntu focal build
- eccc-msc/geomet-climate nightly
Score: 5.204006687076795