Skip to content

Menkli/SPIspatial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

You can install the released version of SPIspatial from Github with:

devtools::install_github("SPIspatial")

SPIspatial

This package contains three functions that should be used in consecutive order:

load_ncdf

Can be used to load a netCDF file and prints its metadata to the console.

build_brick

It builds a raster brick from the loaded netCDF. The dimensions of the brick (x,y,z) must be read by the user from the metadata printed by load_ncdf. It populates each cell in the brick with the data contained in the netCDF, usually precipitation data.

SPIspatial

It calculates the SPI for each timestep in every cell. When the input brick has 100 layers (z-dimension), the resulting SPI raster brick will also consist of about 100 layers (sometimes diverging due to parametrization).

About

Calculates SPI From Raster Brick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages