Package: magclass 6.17.1
magclass: Data Class and Tools for Handling Spatial-Temporal Data
Data class for increased interoperability working with spatial-temporal data together with corresponding functions and methods (conversions, basic calculations and basic data manipulation). The class distinguishes between spatial, temporal and other dimensions to facilitate the development and interoperability of tools build for it. Additional features are name-based addressing of data and internal consistency checks (e.g. checking for the right data order in calculations).
Authors:
magclass_6.17.1.tar.gz
magclass_6.17.1.zip(r-4.5)magclass_6.17.1.zip(r-4.4)magclass_6.17.1.zip(r-4.3)
magclass_6.17.1.tgz(r-4.4-any)magclass_6.17.1.tgz(r-4.3-any)
magclass_6.17.1.tar.gz(r-4.5-noble)magclass_6.17.1.tar.gz(r-4.4-noble)
magclass_6.17.1.tgz(r-4.4-emscripten)magclass_6.17.1.tgz(r-4.3-emscripten)
magclass.pdf |magclass.html✨
magclass/json (API)
# Install 'magclass' in R: |
install.packages('magclass', repos = c('https://pik-piam.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/pik-piam/magclass/issues
- population_magpie - Population_magpie
Last updated 4 months agofrom:f1466de76b. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 30 2024 |
R-4.5-win | OK | Oct 30 2024 |
R-4.5-linux | OK | Oct 30 2024 |
R-4.4-win | OK | Oct 30 2024 |
R-4.4-mac | OK | Oct 30 2024 |
R-4.3-win | OK | Oct 30 2024 |
R-4.3-mac | OK | Oct 30 2024 |
Exports:add_columnsadd_dimensionas.arrayas.data.frameas.magpieas.RasterBrickas.SpatRasteras.SpatRasterDatasetas.SpatVectorclean_magpiecollapseDimcollapseNamescolMeanscolSumscomplete_magpieconvergencecopy.attributescopy.attributes<-copy.magpiedimCodedimExistsdimOrderdimReducedimSumsextendfulldimgetCellsgetCells<-getCommentgetComment<-getCoordsgetCoords<-getCPRgetDimgetItemsgetItems<-getNamesgetNames<-getRegionListgetRegionList<-getRegionsgetRegions<-getSetsgetSets<-getYearsgetYears<-guessResolutionhasCoordshasSetsifelseis.magpieis.spatialis.temporalisYearlogblowpassmagpie_expandmagpiesortmagpplymatchDimmaxamplembindmcalcmselectmselect<-ncellsndatandimnew.magpienregionsnyearsOpsread.magpieread.reportreplace_non_finiterowMeansrowSumssetCellssetCommentsetItemssetNamessetYearsshowspatRasterToDatasetsuppressSpecificWarningstime_interpolateunitsplitunwrapwherewrapwrite.magpiewrite.reportwrite.report2
Dependencies:abinddata.table
Concept behind magclass
Rendered frommagclass-concept.Rmd
usingknitr::rmarkdown
on Oct 30 2024.Last update: 2022-03-18
Started: 2017-06-20
magclass 6
Rendered frommagclass6.Rmd
usingknitr::rmarkdown
on Oct 30 2024.Last update: 2022-03-18
Started: 2021-08-31
MAGPIE Class Object Expansion
Rendered frommagclass-expansion.Rmd
usingknitr::rmarkdown
on Oct 30 2024.Last update: 2022-03-18
Started: 2019-09-27
MAGPIE Class Tutorial
Rendered frommagclass.Rmd
usingknitr::rmarkdown
on Oct 30 2024.Last update: 2022-03-18
Started: 2017-06-12
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Data Class and Tools for Handling Spatial-Temporal Data | magclass-package magclass |
add_columns | add_columns |
add_dimension | add_dimension |
magpie method for tibble::as_tibble | as_tibble.magpie |
~~ Methods for Function as.array ~~ | as.array,ANY-method as.array,magpie-method as.array-methods |
~~ Methods for Function as.data.frame ~~ | as.data.frame as.data.frame,ANY-method as.data.frame,magpie-method as.data.frame-methods |
as.RasterBrick | as.RasterBrick |
as.SpatRaster | as.SpatRaster |
as.SpatRasterDataset | as.SpatRasterDataset |
as.SpatVector | as.SpatVector |
MAgPIE-Clean | clean_magpie |
Collapse dataset dimensions | collapseDim |
Collapse dataset names | collapseNames |
~~ Methods for Function colSums and colMeans ~~ | colMeans,ANY-method colMeans,magpie-method colMeans-methods colSums,ANY-method colSums,magpie-method colSums-methods |
complete_magpie | complete_magpie |
convergence | convergence |
Copy Attributes | copy.attributes copy.attributes<- |
Copy MAgPIE-files | copy.magpie |
dimCode | dimCode |
dimExists | dimExists |
dimOrder | dimOrder |
dimReduce | dimReduce |
Summation over dimensions | dimSums |
escapeRegex | escapeRegex |
extend | extend |
Reconstructs full dimensionality of MAgPIE objects | fulldim |
Get Cells | getCells getCells<- setCells |
getComment | getComment getComment<- setComment |
Get Coordinates | getCoords getCoords<- |
Get cells per region | getCPR |
getDim | getDim |
Get Items | getItems getItems<- |
Get dataset names | getNames getNames<- |
Get a list of celluare region-belongings | getRegionList getRegionList<- |
Get regions | getRegions getRegions<- |
Get sets | getSets getSets<- |
Get years | getYears getYears<- setYears |
guessResolution | guessResolution |
Has Coordinates | hasCoords |
Has Sets | hasSets |
head/tail | head.magpie tail.magpie |
is.temporal, is.spatial | is.spatial is.temporal |
isYear | isYear |
log-method for MAgPIE objects | log,magpie-method log-methods logb,magpie-method logb-methods |
Lowpass Filter | lowpass |
magclassdata | magclassdata |
magpie_expand | magpie_expand |
magpie_expand_dim | magpie_expand_dim |
Class "magpie" ~~~ | as.magpie as.magpie,array-method as.magpie,data.frame-method as.magpie,logical-method as.magpie,lpj-method as.magpie,LPJmLData-method as.magpie,magpie-method as.magpie,NULL-method as.magpie,numeric-method as.magpie,quitte-method as.magpie,RasterBrick-method as.magpie,RasterLayer-method as.magpie,RasterStack-method as.magpie,SpatRaster-method as.magpie,SpatVector-method as.magpie,tbl_df-method as.magpie-methods ifelse,magpie-method is.finite,magpie-method is.infinite,magpie-method is.magpie is.na,magpie-method is.nan,magpie-method magpie-class Ops,magpie,magpie-method Ops,magpie,numeric-method Ops,numeric,magpie-method [,magpie,ANY,ANY-method [,magpie-method [<-,magpie,ANY,ANY-method [<-,magpie-method |
MAgPIE-Sort | magpiesort |
magpply | magpply |
Match dimensions of a magpie object to those of a reference object | matchDim |
maxample | maxample |
mbind | mbind |
mcalc | mcalc mcalc<- |
MSelect | mselect mselect<- |
Count elements | ncells ndata nregions nyears |
Count sub-dimensions | ndim |
new.magpie | new.magpie |
population_magpie | population_magpie |
print.magpie | |
Read MAgPIE-object from file | read.magpie |
Read file in report format | read.report |
Replace Non-Finite Data | replace_non_finite |
Round-method for MAgPIE objects | round,magpie-method round-methods |
~~ Methods for Function rowSums and rowMeans ~~ | rowMeans,ANY-method rowMeans,magpie-method rowMeans-methods rowSums,ANY-method rowSums,magpie-method rowSums-methods |
Set Items | setItems |
Get dataset names | setNames setNames,magpie-method setNames,NULL-method setNames-methods |
~~ Method for function 'show' ~~ | show show,ANY-method show,magpie-method show-methods |
sizeCheck | sizeCheck |
spatRasterToDataset | spatRasterToDataset |
str | str.magpie |
suppressSpecificWarnings | suppressSpecificWarnings |
time_interpolate | time_interpolate |
splits a data.frame or vector of strings with form 'variable (unit)' into a data.frame with variable and unit separated | unitsplit |
Unwrap | unwrap |
where | where |
Wrap | wrap |
Write MAgPIE-object to file | write.magpie |
Write file in report format | write.report |
Write file in report format | write.report2 |
Write a magpie object to a netCDF file | writeNC |