GithubHelp home page GithubHelp logo

bluegeo

bluegeo is a library developed to assist in geospatial development where core scientific python libraries such as numpy, scipy, scikit-image and scikit-learn can be implemented easily over raster and vector geospatial data.

For example:

import bluegeo as bg
import numpy as np

# Virtually read a raster file
r = bg.Raster('elevation.tif')

# Slice the data, returning a numpy array
# Note: Slice-based __getitem__ operations are supported, but fancy indexing is not
a = np.ma.masked_equal(r[:], r.nodata)

# Perform a numpy operation
print(a.mean())
784.91772

INSTALLATION

bluegeo requires python 3, and a system installation of GDAL and GRASS

Installation of Python Package

Clone the bluegeo repo

git clone https://github.com/bluegeo/bluegeo.git

Install only Python requirements

from the root: pip install .

With Docker

Build the image (from the root dir)

docker build -t bluegeo .

Start a session in the container

docker run --rm -v /home/ubuntu/bluegeo/scratch:/scratch -it bluegeo /bin/bash

Note:

  • To preserve the container, do not use the --rm flag.
  • A scratch directory (absolute path) is mounted to share files - omit it if necessary.

Linux and bash provisioning

The easiest way to use bluegeo is on Linux, using the privision.sh script to install the dependencies:

bluegeo/provision.sh

Re-initialize conda & activate the environment:

eval "$(~/miniconda/bin/conda shell.bash hook)"
conda activate bluegeo

Test the installation

python
>>> import bluegeo as bg
>>>

Devin Cairns's Projects

api-lambda-tf icon api-lambda-tf

A terraform library for API-Gateway-driven lambda functions

dask-mosaic icon dask-mosaic

Create lazy reads and alignment of a mosaic of rasters

fast-watershed icon fast-watershed

A package that quickly and efficiently delineates watersheds using a GRASS-derived flow direction grid

hydro-tools icon hydro-tools

A collection of tools for terrain and hydrological analysis

serverless-task icon serverless-task

Infrastructure as code for deployment of API Gateway-driven ECS-Fargate managed tasks

worldpop icon worldpop

stactools package for working with WorldPop data

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.