leebock / iNaturalist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iNaturalist tools

These tools were created to query data from the iNaturalist repository, process the results, and insert the final product into the ArcGIS feature service environment. The programs access iNaturalist via the iNaturalist API. To interface with the ArcGIS system, the programs use the ArcGIS REST API.

The tools are written in JavaScript and require the Node.js runtime in order to execute. You can read about and download the runtime from the Node.js website.

Two of the JavaScript files in this repo are drivers; the rest are utilities. Utilities perform a specific task, whereas drivers are more like batch programs -- orchestrating the utilities into a certain workflow.

Drivers are:

  • driver-refresh-sample-species.js
  • driver-update-edges.js

The utilities include:

  • fs-load.js - loads a CSV into a target feature layer
  • fs-purge.js - removes all records from a feature layer
  • fs-snapshot.js - downloads contents of a featuer layer into a CSV file
  • get-token.js - generates a token based on account user and password
  • inat-fetch.js - queries observation data from iNaturalist and downloads to CSV
  • report-differences.js- reports differences between two CSV snapshots
  • report-drops.js - compares two feature layers to report whether there are species missing in the second layer that are present in the first layer

Workflow description can be found in this Google Doc.

Repo photo by Benjamin Griffin on Unsplash

About


Languages

Language:JavaScript 100.0%