NCSU
GeoForAll Lab
at the
Center for Geospatial Analytics
North Carolina State University
NCSU GIS 595-601: Tools for open geospatial science
November 15, 2017
The Particulars. Of Those Observations of the Planet Mars, Formerly Intimated to Have Been Made at London in the Months of February and March A. 1665/6. (1665). Philosophical Transactions (1665-1678), 1, 239-242. Retrieved from JSTOR
Image credit: CC BY-SA Comtebenoit, Wikimedia
If the paper source format is LaTeX or other markup, the figures, tables, or even bigger parts can be generated using scripts and automatically included.
If the paper source format is Jupyter Notebook or other notebook-like format, everything including text, figures, and code is at one place included in the final document.
r.in.lidar input=points.las output=elevation -e
Python and GRASS GIS
from grass.script import run_command
run_command("r.in.lidar", input="points.las", output="elevation", flags="e")
R and GRASS GIS
library(rgrass7)
execGRASS("r.in.lidar", input="points.las", output="elevation", flags="e")
FUTURES - urban-rural landscape patterns simulation
model implemented as a set of GRASS GIS addon modules
r.futures.pga, r.futures.demand, r.futures.parallelpga, ...
FROM ubuntu:16.04 RUN apt-get update RUN apt-get install -y \ g++ \ python \ python-numpy \ netcdf-bin \ sqlite3 \ ... WORKDIR /data
git
), Subversion (svn
), Mercurial (hg
), ...
git commit script.py -m "replaced part of the main equation"
Text | background, methods, results, discussion | PDF, HTML |
Data | methods as GRASS GIS modules | open formats, * |
Reusable code | generally and reusably implemented methods | Python, R, C |
Specific code | scripts to generate results | Bash, Python, R, * |
Environment | details about all dependencies and the code | Docker, Vagrant |
Versions | repository with current and previous versions | Git, Mercurial |
* Potentially included in computational notebooks such as Jupyter Notebook
Image credit: CC BY-SA Comtebenoit, Wikimedia