{"id":13857151,"url":"https://github.com/jrawbits/AccessR","last_synced_at":"2025-07-13T20:31:01.473Z","repository":{"id":71518112,"uuid":"46141385","full_name":"jrawbits/AccessR","owner":"jrawbits","description":"NMTK Accessibility Tool","archived":false,"fork":false,"pushed_at":"2016-04-18T18:31:29.000Z","size":9494,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-06T03:03:19.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jrawbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-11-13T19:01:34.000Z","updated_at":"2017-10-08T23:11:08.000Z","dependencies_parsed_at":"2024-02-09T01:42:27.038Z","dependency_job_id":"42e403e3-42b0-4c9f-ac66-78a7e0717efb","html_url":"https://github.com/jrawbits/AccessR","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrawbits%2FAccessR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrawbits%2FAccessR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrawbits%2FAccessR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrawbits%2FAccessR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrawbits","download_url":"https://codeload.github.com/jrawbits/AccessR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225912614,"owners_count":17544218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T03:01:27.928Z","updated_at":"2024-11-22T14:32:12.045Z","avatar_url":"https://github.com/jrawbits.png","language":"Python","readme":"# AccessR\n\nThe AccessR tool set provides a simple set of NMTK tools for preparing an\naccessibility map and conducting simple isochrone accessibility analyses\nfrom a set of points.\n\nThis tool can be installed under the name \"AccessR\" in the NMTK's\nNMTK_apps subfolder, with a corresponding entry in local_settings.py to\nenable the application.  There are system prerequisites detailed below\nin in the Installation section.\n\nThe tool works in three steps.\n\nThe first step takes an input polygon geographic file and rasterizes\nit to establish a study area with a base level of accessibility (the\nunits are arbitrary).  The tool can use either feature values or a\nconstant value to provide the base level of impedance in each cell.\nAny value used for the baseline should be greater than zero; a zero\nvalue is treated as inaccessible.  This step generates a basic raster\nfile called an \"accessibility map\".\n\nThe second step accepts a spatial layer (areas, lines or points)\nand overlays those features onto an existing accessibility map. The\naccessibility map can come from the first step, or from a previous\niteration of this second step, which can be conducted as many times\nas necessary to include different types of facilities or barriers.\nThe accessibility value of each feature (or a constant value applied to\nall features) is used to update the provided accessibility map, and new\naccessibility map is generated; that number should be positive, non-zero\nvalue.  Three \"styles\" of update are provided: \"Barriers\" are areas that\nwill be considered completely untraversable or off-limits.  Areas occupied\nby barriers will be considered outside the analysis area.  \"Obstacles\"\nsimply reduce the base accessibility by the accessibility value but\nstill allow passage.  \"Facilities\" increase the base accessibility.\n\nThe third step accepts an accessibility map from one of the previous\nsteps, plus a file of points for which isochrones are computed using\nthe accessibility map.\n\n*Installation*\n\nThe AccessR accessibility analysis functions are designed as a tool for the\nNonmotorized Toolkit (https://github.com/chander/nmtk).  To use this code,\nyou'll need a working installation of the Nonmotorized Toolkit first.\n\nTo add these tools to the Nonmotorized Toolkit, the entire set of repository\ncode should be placed in a subfolder of the NMTK_apps folder of the NMTK\ncalled \"AccessR\", and the \"AccessR\" tool should be added to the list of\navailable tools in local_settings.py (see the NMTK documentation for details).\nThe tool will be enabled when the deploy.sh script is run (see below).\n\nAs the name suggests, the tool uses the R Statistical Environment to\nperform its computations.  So you'll need to install a recent version\nof R from one of the CRAN mirrors (see http://cran.r-project.org).\nFor Ubuntu, you can look here: https://cran.r-project.org/bin/linux/ubuntu/\n\nOn Ubuntu 14.04 (\"trusty\") you can do the following to connect a\nR repository (replacing \"\u0026lt;my.favorite.cran.mirror\u0026gt;\" with one of the\nmirrors you can find at https://cran.r-project.org/mirrors.html:\n\n    sudo echo \"deb https://\u003cmy.favorite.cran.mirror\u003e/bin/linux/ubuntu trusty/\" \u003e /etc/apt/sources.list.d/cran.list\n    \nThe repository is secured by a specific signature key.  You need to\ninstall the key by doing this:\n\n    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9\n\nThen you can run these commands to install R itself, plus the development\nenvironment for compiliing packages from source:\n\n    sudo apt-get update # to read the repository\n    sudo apt-get install r-base r-base-dev\n\nYou will need several R packages (specifically: sp, raster, rgdal,\ngdistance).  You will also need Rserve to allow the NMTK environment\nto run R commands.  Installation of Rserve is easy, see the Rserve\ndocumentation: https://www.rforge.net/Rserve/doc.html\n\nIt is most convenient to install these packages from within R\nusing the  function 'install.packages':\n\n    sudo R  # run R as an administrator\n    install.packages(c(\"sp\",\"raster\",\"rgdal\",\"gdistance\",\"Rserve\",\"RSclient\"))\n    quit()\n\nFor accessing Rserve from the Python environment, the pyRserve package\nis used.  Activate the NMTK python environment from the NMTK root folder,\nthen install pyRserve using 'pip install -r requirements.txt' Note that\npyRserve requires numpy, which the base NMTK installs.  The complete\nsequence for installing pyRserve:\n\n    source ../../venv/bin/activate\n    pip install -r requirements.txt\n\nThe Rserve configuration file (/etc/Rserv.conf) needs to be adjusted with\nconsistent permissions for the web server and to set up \"out-of-band\" (oob)\nmessages to pass status updates from within R itself.  The Rserv.conf file\nshould contain these instructions:\n\n    # Configuration for RServe\n    control enable\n\n    # Change uid/gid to www-data\n    su server\n    gid 33\n    uid 33\n\n    # Enable Out-of-Band Messages\n    oob enable\n    eval require(Rserve)\n\nThere are two shell script files available to start and stop Rserve, and\nthere will also soon be an init.d script that is automatically installed to\nstop and restart Rserve on system startup and shutdown.\n\n    bash startRserve.sh\n    bash stopRserve.sh\n\nFinally, the included \"deploy.sh\" script will set everything going once\nyou have all the pieces installed and have added` \"AccessR\" to the NMTK's\nlist of tools in local_settings.py.  It calls the root NMTK deployment script\nto reload the NMTK environment and it also starts Rserve.  Like the root NMTK\ndeployment script, it supports an option \"-c\" which will clear log files.\n\n    sudo bash deploy.sh  # -c optional to clear log files\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrawbits%2FAccessR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrawbits%2FAccessR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrawbits%2FAccessR/lists"}