dggridR: Discrete Global Grids for R

Spatial analyses involving binning require that every bin have the same area, but this is impossible using a rectangular grid laid over the Earth or over any projection of the Earth. Discrete global grids use hexagons, triangles, and diamonds to overcome this issue, overlaying the Earth with equally-sized bins. This package provides utilities for working with discrete global grids, along with utilities to aid in plotting such data.

Author
Richard Barnes [aut, cre], Kevin Sahr [ctb], Gerald Evenden [ctb], Angus Johnson [ctb], Frank Warmerdam [ctb]
Date of publication
2016-09-19 01:50:30
Maintainer
Richard Barnes <rbarnes@umn.edu>
License
MIT + file LICENCE
Version
0.1.11
URLs

View on CRAN

Man pages

dgcellstogrid
Return boundary coordinates for specified cells
dg_closest_res
Determine an appropriate grid resolution based on input data.
dg_closest_res_to_area
Determine resolution based on desired area
dg_closest_res_to_cls
Determine an appropriate grid resolution based on a desired...
dg_closest_res_to_spacing
Determine grid resolution from desired spacing.
dgconstruct
Construct a discrete global grid system (dggs) object
dgearthgrid
Return the coordinates constituting the boundary of cells for...
dg_env
Control global aspects of the dggridR package
dg_exe_path
Get path to dggrid executable
dggetres
Get table of grid resolution information
dginfo
Print a buncha info about a dggs object to the screen
dgmaxcell
Get largest cell id for a dggs
dg_process_kml
Load a KML file
dgquakes
All earthquakes with magnitude >=3.0 earthquakes for 2015
dgrectgrid
Return the coordinates constituting the boundary of cells...
dgrun
A generic function for running dggrid and returning values...
dgsetres
Set the resolution of a dggs object
dg_shpfname_south_africa
National border of South Africa
dgshptogrid
Return boundary coordinates for cells intersecting a...
dgtransform
Converts lat-long pairs into discrete global grid cell...
dgverify
Verify that a dggs object has appropriate values

Files in this package

dggridR
dggridR/inst
dggridR/inst/extdata
dggridR/inst/extdata/ZAF_adm0.shp
dggridR/inst/extdata/ZAF_adm0.dbf
dggridR/inst/extdata/README.md
dggridR/inst/extdata/ZAF_adm0.shx
dggridR/inst/doc
dggridR/inst/doc/dggrid_v62_manual.pdf.asis
dggridR/inst/doc/dggridR.Rmd
dggridR/inst/doc/dggridR.R
dggridR/inst/doc/dggridR.html
dggridR/inst/doc/dggrid_v62_manual.pdf
dggridR/tests
dggridR/tests/testthat.R
dggridR/tests/testthat
dggridR/tests/testthat/test_grid_construction.R
dggridR/src
dggridR/src/Makevars
dggridR/src/install.libs.R
dggridR/src/lib
dggridR/src/lib/dglib
dggridR/src/lib/dglib/lib
dggridR/src/lib/dglib/lib/DgPhysicalRFBase.hpp
dggridR/src/lib/dglib/lib/DgRandom.cpp
dggridR/src/lib/dglib/lib/DgLocVector.cpp
dggridR/src/lib/dglib/lib/Makefile
dggridR/src/lib/dglib/lib/DgIDGG.cpp
dggridR/src/lib/dglib/lib/DgOutKMLfile.cpp
dggridR/src/lib/dglib/lib/DgBase.cpp
dggridR/src/lib/dglib/lib/DgOutputStream.cpp
dggridR/src/lib/dglib/lib/DgDVec2D.cpp
dggridR/src/lib/dglib/lib/DgOutLocFile.cpp
dggridR/src/lib/dglib/lib/DgIVec2D.cpp
dggridR/src/lib/dglib/lib/DgEllipsoidRF.cpp
dggridR/src/lib/dglib/lib/DgTriGrid2D.cpp
dggridR/src/lib/dglib/lib/DgTriGrid2DS.cpp
dggridR/src/lib/dglib/lib/DgSeriesConverter.cpp
dggridR/src/lib/dglib/lib/DgIDGGS43H.cpp
dggridR/src/lib/dglib/lib/DgIDGGS3H.cpp
dggridR/src/lib/dglib/lib/DgBoundedIDGGS.cpp
dggridR/src/lib/dglib/lib/DgLocList.cpp
dggridR/src/lib/dglib/lib/DgIDGGS4H.cpp
dggridR/src/lib/dglib/lib/DgInputStream.cpp
dggridR/src/lib/dglib/lib/DgBoundedRF2D.cpp
dggridR/src/lib/dglib/lib/DgCell.cpp
dggridR/src/lib/dglib/lib/DgLocation.cpp
dggridR/src/lib/dglib/lib/DgPhysicalRFS2D.hpp
dggridR/src/lib/dglib/lib/DgAddressBase.cpp
dggridR/src/lib/dglib/lib/DgInLocTextFile.cpp
dggridR/src/lib/dglib/lib/DgOutRandPtsText.cpp
dggridR/src/lib/dglib/lib/DgOutShapefile.cpp
dggridR/src/lib/dglib/lib/DgIDGGS4D.cpp
dggridR/src/lib/dglib/lib/DgProjGnomonicRF.cpp
dggridR/src/lib/dglib/lib/DgProjTriRF.cpp
dggridR/src/lib/dglib/lib/DgDVec3D.cpp
dggridR/src/lib/dglib/lib/DgGeoSphRF.cpp
dggridR/src/lib/dglib/lib/DgIDGGS.cpp
dggridR/src/lib/dglib/lib/DgProjISEA.cpp
dggridR/src/lib/dglib/lib/DgInShapefileAtt.cpp
dggridR/src/lib/dglib/lib/DgIVec3D.cpp
dggridR/src/lib/dglib/lib/DgDmdD4Grid2DS.cpp
dggridR/src/lib/dglib/lib/DgHexGrid2DS.cpp
dggridR/src/lib/dglib/lib/DgBoundedIDGG.cpp
dggridR/src/lib/dglib/lib/DgParamList.cpp
dggridR/src/lib/dglib/lib/DgHexC1Grid2D.cpp
dggridR/src/lib/dglib/lib/DgRFNetwork.cpp
dggridR/src/lib/dglib/lib/DgDiscRFS2D.cpp
dggridR/src/lib/dglib/lib/DgSqrD4Grid2DS.cpp
dggridR/src/lib/dglib/lib/DgUtil.cpp
dggridR/src/lib/dglib/lib/DgRFBase.cpp
dggridR/src/lib/dglib/lib/DgSqrD8Grid2D.cpp
dggridR/src/lib/dglib/lib/DgPolygon.cpp
dggridR/src/lib/dglib/lib/DgDiscRFS.hpp
dggridR/src/lib/dglib/lib/DgOutLocTextFile.cpp
dggridR/src/lib/dglib/lib/DgOutGeoJSONFile.cpp
dggridR/src/lib/dglib/lib/DgDistanceBase.cpp
dggridR/src/lib/dglib/lib/DgIcosaMap.cpp
dggridR/src/lib/dglib/lib/DgRF.hpp
dggridR/src/lib/dglib/lib/DgBoundedHexC2RF2D.cpp
dggridR/src/lib/dglib/lib/DgDmdD8Grid2D.cpp
dggridR/src/lib/dglib/lib/DgOutAIGenFile.cpp
dggridR/src/lib/dglib/lib/DgBoundedRFS2D.cpp
dggridR/src/lib/dglib/lib/DgColor.cpp
dggridR/src/lib/dglib/lib/DgConverterBase.cpp
dggridR/src/lib/dglib/lib/DgOutPtsText.cpp
dggridR/src/lib/dglib/lib/DgSqrD8Grid2DS.cpp
dggridR/src/lib/dglib/lib/DgInShapefile.cpp
dggridR/src/lib/dglib/lib/DgPhysicalRF2D.hpp
dggridR/src/lib/dglib/lib/DgBoundedRF.hpp
dggridR/src/lib/dglib/lib/DgSuperfund.cpp
dggridR/src/lib/dglib/lib/DgDmdD8Grid2DS.cpp
dggridR/src/lib/dglib/lib/DgSqrD4Grid2D.cpp
dggridR/src/lib/dglib/lib/DgIDGGS4T.cpp
dggridR/src/lib/dglib/lib/DgLocBase.cpp
dggridR/src/lib/dglib/lib/DgInAIGenFile.cpp
dggridR/src/lib/dglib/lib/DgPhysicalRF.hpp
dggridR/src/lib/dglib/lib/DgHexC2Grid2D.cpp
dggridR/src/lib/dglib/lib/DgDiscRF.hpp
dggridR/src/lib/dglib/lib/DgDmdD4Grid2D.cpp
dggridR/src/lib/dglib/lib/DgProjFuller.cpp
dggridR/src/lib/dglib/include
dggridR/src/lib/dglib/include/DgPhysicalRFS2D.h
dggridR/src/lib/dglib/include/Dg2WayConverter.h
dggridR/src/lib/dglib/include/DgProjTriRF.h
dggridR/src/lib/dglib/include/DgAddressBase.h
dggridR/src/lib/dglib/include/DgLabelLoc.h
dggridR/src/lib/dglib/include/DgGeoDatumRF.h
dggridR/src/lib/dglib/include/DgContCartRF.h
dggridR/src/lib/dglib/include/DgIcosaProj.h
dggridR/src/lib/dglib/include/DgDmdD4Grid2D.h
dggridR/src/lib/dglib/include/DgBoundedRFBase.h
dggridR/src/lib/dglib/include/DgTriGrid2D.h
dggridR/src/lib/dglib/include/DgSqrD8Grid2DS.h
dggridR/src/lib/dglib/include/DgBoundedHexC2RF2D.h
dggridR/src/lib/dglib/include/DgHexGrid2DS.h
dggridR/src/lib/dglib/include/DgPolygon.h
dggridR/src/lib/dglib/include/DgRandom.h
dggridR/src/lib/dglib/include/DgDVec3D.h
dggridR/src/lib/dglib/include/DgBoundedIDGG.h
dggridR/src/lib/dglib/include/DgOutKMLfile.h
dggridR/src/lib/dglib/include/DgIDGGS4T.h
dggridR/src/lib/dglib/include/DgDmdD4Grid2DS.h
dggridR/src/lib/dglib/include/DgOutPtsText.h
dggridR/src/lib/dglib/include/DgInShapefile.h
dggridR/src/lib/dglib/include/DgInLocFile.h
dggridR/src/lib/dglib/include/DgIDGG.h
dggridR/src/lib/dglib/include/DgRFNetwork.h
dggridR/src/lib/dglib/include/DgDistance.h
dggridR/src/lib/dglib/include/DgIDGGS3H.h
dggridR/src/lib/dglib/include/DgHexC2Grid2D.h
dggridR/src/lib/dglib/include/DgConstants.h
dggridR/src/lib/dglib/include/DgGeoProjConverter.h
dggridR/src/lib/dglib/include/DgOutShapefile.h
dggridR/src/lib/dglib/include/DgConverter.h
dggridR/src/lib/dglib/include/DgProjGnomonicRF.h
dggridR/src/lib/dglib/include/DgDiscRFS2D.h
dggridR/src/lib/dglib/include/DgSuperfund.h
dggridR/src/lib/dglib/include/DgDiscRF2D.h
dggridR/src/lib/dglib/include/DgOutGeoJSONFile.h
dggridR/src/lib/dglib/include/DgBoundedRFS2D.h
dggridR/src/lib/dglib/include/DgDiscRFS.h
dggridR/src/lib/dglib/include/DgString.h
dggridR/src/lib/dglib/include/DgIVec2D.h
dggridR/src/lib/dglib/include/DgRFBase.h
dggridR/src/lib/dglib/include/DgBoundedIDGGS.h
dggridR/src/lib/dglib/include/DgOutRandPtsText.h
dggridR/src/lib/dglib/include/DgDVec2D.h
dggridR/src/lib/dglib/include/DgInLocTextFile.h
dggridR/src/lib/dglib/include/DgPhysicalRF2D.h
dggridR/src/lib/dglib/include/DgIDGGS43H.h
dggridR/src/lib/dglib/include/DgLocation.h
dggridR/src/lib/dglib/include/DgBoundedRF2D.h
dggridR/src/lib/dglib/include/DgProjFuller.h
dggridR/src/lib/dglib/include/DgInShapefileAtt.h
dggridR/src/lib/dglib/include/DgRF.h
dggridR/src/lib/dglib/include/DgPhysicalRFBase.h
dggridR/src/lib/dglib/include/DgEllipsoidRF.h
dggridR/src/lib/dglib/include/DgInAIGenFile.h
dggridR/src/lib/dglib/include/DgTriGrid2DS.h
dggridR/src/lib/dglib/include/DgGeoSphRF.h
dggridR/src/lib/dglib/include/DgProjISEA.h
dggridR/src/lib/dglib/include/DgSpatialDB.h
dggridR/src/lib/dglib/include/DgLocList.h
dggridR/src/lib/dglib/include/DgOutAIGenFile.h
dggridR/src/lib/dglib/include/DgBoundedRF.h
dggridR/src/lib/dglib/include/DgGeoProjRF.h
dggridR/src/lib/dglib/include/DgLocVector.h
dggridR/src/lib/dglib/include/DgBase.h
dggridR/src/lib/dglib/include/DgIDGGS.h
dggridR/src/lib/dglib/include/DgPhysicalRF.h
dggridR/src/lib/dglib/include/DgIDGGS4H.h
dggridR/src/lib/dglib/include/DgIVec3D.h
dggridR/src/lib/dglib/include/DgSeriesConverter.h
dggridR/src/lib/dglib/include/DgHexC1Grid2D.h
dggridR/src/lib/dglib/include/DgParamList.h
dggridR/src/lib/dglib/include/DgConverterBase.h
dggridR/src/lib/dglib/include/DgSqrD4Grid2D.h
dggridR/src/lib/dglib/include/DgColor.h
dggridR/src/lib/dglib/include/DgIcosaMap.h
dggridR/src/lib/dglib/include/DgLocBase.h
dggridR/src/lib/dglib/include/DgCell.h
dggridR/src/lib/dglib/include/DgDmdD8Grid2DS.h
dggridR/src/lib/dglib/include/DgInputStream.h
dggridR/src/lib/dglib/include/DgDiscRF.h
dggridR/src/lib/dglib/include/DgDmdD8Grid2D.h
dggridR/src/lib/dglib/include/DgSqrD8Grid2D.h
dggridR/src/lib/dglib/include/DgUtil.h
dggridR/src/lib/dglib/include/DgOutputStream.h
dggridR/src/lib/dglib/include/DgSqrD4Grid2DS.h
dggridR/src/lib/dglib/include/DgRadixString.h
dggridR/src/lib/dglib/include/DgOutLocTextFile.h
dggridR/src/lib/dglib/include/DgIDGGS4D.h
dggridR/src/lib/dglib/include/DgOutLocFile.h
dggridR/src/lib/dglib/include/DgAddress.h
dggridR/src/lib/proj4lib
dggridR/src/lib/proj4lib/lib
dggridR/src/lib/proj4lib/lib/Makefile
dggridR/src/lib/proj4lib/lib/pj_phi2.cpp
dggridR/src/lib/proj4lib/lib/pj_auth.cpp
dggridR/src/lib/proj4lib/lib/pj_tsfn.cpp
dggridR/src/lib/proj4lib/lib/hypot.cpp
dggridR/src/lib/proj4lib/lib/pj_mlfn.cpp
dggridR/src/lib/proj4lib/lib/pj_qsfn.cpp
dggridR/src/lib/proj4lib/lib/pj_msfn.cpp
dggridR/src/lib/proj4lib/lib/adjlon.cpp
dggridR/src/lib/proj4lib/include
dggridR/src/lib/proj4lib/include/PJ_gnom.h
dggridR/src/lib/proj4lib/include/proj4.h
dggridR/src/lib/shapelib-1.3.0
dggridR/src/lib/shapelib-1.3.0/makeshape.sh
dggridR/src/lib/shapelib-1.3.0/Makefile
dggridR/src/lib/shapelib-1.3.0/shpcreate.c
dggridR/src/lib/shapelib-1.3.0/shptree.c
dggridR/src/lib/shapelib-1.3.0/dbfcreate.c
dggridR/src/lib/shapelib-1.3.0/dbfdump.c
dggridR/src/lib/shapelib-1.3.0/mkdist.sh
dggridR/src/lib/shapelib-1.3.0/shapelib.def
dggridR/src/lib/shapelib-1.3.0/stream1.sh
dggridR/src/lib/shapelib-1.3.0/shpopen.c
dggridR/src/lib/shapelib-1.3.0/dbfopen.c
dggridR/src/lib/shapelib-1.3.0/shputils.c
dggridR/src/lib/shapelib-1.3.0/shptest.c
dggridR/src/lib/shapelib-1.3.0/shprewind.c
dggridR/src/lib/shapelib-1.3.0/README
dggridR/src/lib/shapelib-1.3.0/mkinstalldirs
dggridR/src/lib/shapelib-1.3.0/shapefil.h
dggridR/src/lib/shapelib-1.3.0/stream1.out
dggridR/src/lib/shapelib-1.3.0/shpadd.c
dggridR/src/lib/shapelib-1.3.0/safileio.c
dggridR/src/lib/shapelib-1.3.0/stream2.out
dggridR/src/lib/shapelib-1.3.0/shptreedump.c
dggridR/src/lib/shapelib-1.3.0/shpdump.c
dggridR/src/lib/shapelib-1.3.0/dbfadd.c
dggridR/src/lib/shapelib-1.3.0/stream3.out
dggridR/src/lib/shapelib-1.3.0/stream2.sh
dggridR/src/lib/clipper
dggridR/src/lib/clipper/Makefile
dggridR/src/lib/clipper/clipper.cpp
dggridR/src/lib/clipper/clipper.hpp
dggridR/src/Makevars.win
dggridR/src/apps
dggridR/src/apps/dggrid
dggridR/src/apps/dggrid/Makefile
dggridR/src/apps/dggrid/param.cpp
dggridR/src/apps/dggrid/DgHexSF.cpp
dggridR/src/apps/dggrid/DgHexSF.h
dggridR/src/apps/dggrid/dggrid.h
dggridR/src/apps/dggrid/util.h
dggridR/src/apps/dggrid/quadclip.cpp
dggridR/src/apps/dggrid/table.cpp
dggridR/src/apps/dggrid/gridgen.h
dggridR/src/apps/dggrid/transform.cpp
dggridR/src/apps/dggrid/dggrid.cpp
dggridR/src/apps/dggrid/gridgen.cpp
dggridR/src/apps/dggrid/binpres.cpp
dggridR/src/apps/dggrid/util.cpp
dggridR/src/apps/dggrid/binvals.cpp
dggridR/src/apps/appex
dggridR/src/apps/appex/Makefile
dggridR/src/apps/appex/appex.cpp
dggridR/NAMESPACE
dggridR/NEWS
dggridR/data
dggridR/data/dgquakes.rda
dggridR/data/datalist
dggridR/R
dggridR/R/dggridR.R
dggridR/vignettes
dggridR/vignettes/dggrid_v62_manual.pdf.asis
dggridR/vignettes/dggridR.Rmd
dggridR/vignettes/bibliography.bib
dggridR/vignettes/mercator.png
dggridR/vignettes/hex_grid_nested.png
dggridR/vignettes/dggrid.png
dggridR/README.md
dggridR/MD5
dggridR/build
dggridR/build/vignette.rds
dggridR/DESCRIPTION
dggridR/LICENCE
dggridR/man
dggridR/man/dgearthgrid.Rd
dggridR/man/dgconstruct.Rd
dggridR/man/dgcellstogrid.Rd
dggridR/man/dgquakes.Rd
dggridR/man/dggetres.Rd
dggridR/man/dginfo.Rd
dggridR/man/dgsetres.Rd
dggridR/man/dg_closest_res_to_cls.Rd
dggridR/man/dgrun.Rd
dggridR/man/dg_closest_res_to_area.Rd
dggridR/man/dgmaxcell.Rd
dggridR/man/dgtransform.Rd
dggridR/man/dgverify.Rd
dggridR/man/dg_process_kml.Rd
dggridR/man/dgshptogrid.Rd
dggridR/man/dg_closest_res.Rd
dggridR/man/dg_shpfname_south_africa.Rd
dggridR/man/dg_closest_res_to_spacing.Rd
dggridR/man/dg_exe_path.Rd
dggridR/man/dgrectgrid.Rd
dggridR/man/dg_env.Rd