|Starbeamrainbowlabs e11c2e0f3d||1 day ago|
|src||1 day ago|
|.gitignore||9 months ago|
|Changelog.md||4 days ago|
|LICENSE||9 months ago|
|README.md||1 day ago|
|package-lock.json||4 days ago|
|package.json||4 days ago|
CLI for parsing Ordnance Survey Digital Elevation Model files
This is the CLI for the sister
terrain50 library on npm for parsing Ordnance Survey DEM files I also implemented.
npm install terrain50-cli --global
The command-line interface works on a subcommand-based system using
applause-cli (another package of mine).
Display the usage information like this:
If you installed it locally, you’ll need to do this:
Additionally, a number of environment variables are supported.
||Disables ANSI escape codes in output (i.e. coloured output). Not recommended unless you have a reason.|
||Suppress all output except for warnings and errors (not fully supported everywhere yet)|
This argument’s purpose is the divide the incoming data into categories so that an AI can be potentially trained on the data (e.g. water depth data, as I’m using). It takes a comma separated list of values like this:
...and turns it into a number of bins like so:
Each bin is assigned a colour. Then, for each value in the input, it draws the colour that’s assigned to the bin that the value fits into.
Contributions are welcome as PRs! Don’t forget to say that you donate your contribution under the Mozilla Public License 2.0 in your PR comment.
This project is licensed under the Mozilla Public License 2.0. See the
LICENSE file in this repository for the full text.