climpact
Calculate the ET-SCI climate extremes indices.
https://github.com/ARCCSS-extremes/climpact
Category: Climate Change
Sub Category: Climate Data Processing and Analysis
Last synced: about 6 hours ago
JSON representation
Repository metadata
Calculate the ET-SCI climate extremes indices
- Host: GitHub
- URL: https://github.com/ARCCSS-extremes/climpact
- Owner: ARCCSS-extremes
- License: gpl-3.0
- Created: 2017-11-07T02:30:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-31T03:57:32.000Z (3 months ago)
- Last Synced: 2025-04-25T12:04:56.399Z (5 days ago)
- Language: R
- Size: 41 MB
- Stars: 54
- Watchers: 7
- Forks: 33
- Open Issues: 27
- Releases: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGE_LOG
- License: LICENSE
README.md
Climpact
What is Climpact?
Climpact is an R package that calculates indices of daily climate extremes. It can read
data for a single site (e.g. a weather station) in the form of a text file, or for gridded data (e.g. from a climate model) in the form of netCDF files. This software directly builds off the R packages climdex.pcic and climdex.pcic.ncdf, developed by the Pacific Climate Impacts Consortium (PCIC).
If you want to calculate these indices from text files then you DO NOT need to install this software, instead go to the Climpact website to calculate these indices online.
Where can I get Climpact?
When calculating the indices for station data Climpact can be accessed online. Climpact is also available for download at this github site for users who wish to calculate the indices on gridded data or who wish to process station text files locally. The software runs on Windows, Linux and MacOS, though only on Linux and MacOS for gridded calculations.
Documentation
See the Climpact user guide for detailed instructions on using Climpact.
How do I install Climpact?
If you do not wish to use the online version of Climpact then you can install it locally noting the following software requirements:
- R version 3.3 or later. You will need administrator privileges on your computer or the ability to install R packages.
- Linux users wanting to calculate indices on gridded data require the PROJ4 development files (libproj-dev package on Ubuntu) and the udunits development files (libudunits2-dev package on Ubuntu).
-
Download and extract this file to your computer.
This will create a directory named "climpact-master". -
Install the required R-packages. This step can take several minutes and only needs to be done once.
In Windows: open R and select "File->Change dir..." and select the
climpact-master directory created in step 1. Then type:
source('server/climpact.master.installer.r')
In Linux/MacOS: in a terminal window navigate to the climpact-master directory created in
step 1, then open R (by typing R
at the command line) and type:
source('server/climpact.master.installer.r')
You may be asked whether you would like to make a personal library, in
most cases the answer should be 'yes'. Once complete, quit R by typing
q()
.
How do I start Climpact once I've installed it on my computer?
In Windows, open R and select "File->Change dir..." and select the
climpact-master directory created when installing Climpact. In Linux/MacOS, open a terminal and navigate to the climpact-master directory created when installing Climpact, then open R (by typing R
at the command line).
Once inside R, run the following commands:
library(shiny)
runApp()
Follow the on-screen instructions to calculate the Climpact indices.
ADVANCED: Calculate indices from netCDF data (Linux/MacOS only)
Warning: Calculating and using the gridded indices requires familiarity with the command line and netCDF files.
Warning: Due to an error in the SPEI and SPI package these indices will not be
correct for gridded data IF your data contain missing values (e.g. they are based on remote sensing observations).
-
Navigate to the climpact-master directory created when installing Climpact. Then modify the climpact.ncdf.wrapper.r file to suit your needs (see user guide
for optional parameters to specify). -
Execute the above script by entering the following command at the command line:
Rscript climpact.ncdf.wrapper.r
Depending on the size of your data and the number of cores selected, this process
can take anywhere from one hour to weeks to complete (if you don't have appropriate resources). As a
yard stick, for a 20 year global ~1x1 degree dataset and a computer with 2 cores you should assign ~30 hours to begin with. Then adjust your expectations from there.
Notes on netCDF file format:
- Files must be CF compliant.
- Look at the sample netCDF file for an example of how to correctly structure your file. Most climate model output will be compatible with Climpact.
- There must be no 'bounds' attributes in your latitude or
longitude variables. - Your precipitation variable must have units of "kg m-2 d-1",
not "mm/day". These are numerically equivalent. - Your minimum and maximum temperature variables must be
uniquely named. - The ncrename, ncatted and ncks commands from the NCO package can help
you modify your netCDF files.
http://nco.sourceforge.net/
ADVANCED: Calculate thresholds from netCDF data (Linux/MacOS only)
-
Navigate to the climpact-master directory created when installing Climpact. Then modify the climpact.ncdf.thresholds.wrapper.r file to suit your needs (see user guide for guidance on the parameters to specify).
-
Then execute this file by running
Rscript climpact.ncdf.thresholds.wrapper.r
from the command line. Depending
on the size of your data and the number of cores selected, this process
can take anywhere from one to many hours.
ADVANCED: Batch process multiple station files from the command line
-
Navigate to the climpact-master directory created when installing Climpact.
-
From the terminal run the following command, replacing the flags
with: the folder where your station text files are kept, a metadata file
containing the file name of each station text file along with relevant
station information (see the sample provided), the beginning and end years of the base period, and
the number of cores to use in processing, respectively. See the user guide
for more information.
Rscript climpact.batch.stations.r ./www/sample_data/ ./www/sample_data/climpact.sample.batch.metadata.txt 1971 2000 2
Common problems
- If you experience trouble installing R packages in Windows, try to disable
your antivirus software temporarily. - If you are trying to use the wrapper scripts in Windows anyway, ensure your PATH
environment variable is changed to include the installation directory of R.
Having trouble?
Make sure you read the relevant part of the user guide. Otherwise, search and/or submit an issue.
Contact
Owner metadata
- Name: ARCCSS climate extremes
- Login: ARCCSS-extremes
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/12821207?v=4
- Repositories: 2
- Last ynced at: 2023-02-28T23:05:15.727Z
- Profile URL: https://github.com/ARCCSS-extremes
GitHub Events
Total
- Create event: 1
- Release event: 1
- Issues event: 5
- Watch event: 7
- Issue comment event: 15
- Push event: 1
- Fork event: 2
Last Year
- Create event: 1
- Release event: 1
- Issues event: 5
- Watch event: 7
- Issue comment event: 15
- Push event: 1
- Fork event: 2
Committers metadata
Last synced: 9 days ago
Total Commits: 335
Total Committers: 3
Avg Commits per committer: 111.667
Development Distribution Score (DDS): 0.373
Commits in past year: 26
Committers in past year: 1
Avg Commits per committer in past year: 26.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
heroldn | h****n@m****g | 210 |
Jonathan McComb | j****b@i****u | 124 |
heroldn | n****d@c****u | 1 |
Committer domains:
- climaterisk.com.au: 1
- infoasis.com.au: 1
- mailbox.org: 1
Issue and Pull Request metadata
Last synced: about 6 hours ago
Total issues: 101
Total pull requests: 26
Average time to close issues: 7 months
Average time to close pull requests: about 4 hours
Total issue authors: 37
Total pull request authors: 2
Average comments per issue: 2.11
Average comments per pull request: 0.12
Merged pull request: 24
Bot issues: 0
Bot pull requests: 0
Past year issues: 9
Past year pull requests: 0
Past year average time to close issues: about 1 month
Past year average time to close pull requests: N/A
Past year issue authors: 7
Past year pull request authors: 0
Past year average comments per issue: 2.78
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- jmccomb (46)
- JinZarrin (9)
- aseemsharma1 (4)
- mankouhi (4)
- user241276 (2)
- ochee (2)
- WAMBUA12 (2)
- farh-an (2)
- GerardoTheMeteorologist (2)
- mew0930 (1)
- devisdevis (1)
- PMD-Data (1)
- Lotus-K (1)
- ricardobrb07 (1)
- 21sy (1)
Top Pull Request Authors
- heroldn (19)
- jmccomb (7)
Top Issue Labels
- enhancement (28)
- question (15)
- bug (9)
- documentation (5)
- wontfix (1)
Top Pull Request Labels
Dependencies
- PCICt >= 0.5 depends
- R >= 3.0 depends
- climdex.pcic >= 1.1 imports
- functional >=0.4 imports
- ncdf4 >= 1.10 imports
- ncdf4.helpers >=0.3 imports
- proj4 >= 1.0 imports
- snow >= 0.3 imports
- udunits2 >= 0.6 imports
- RUnit * suggests
Score: 5.493061443340549