All Projects β†’ daleroberts β†’ Bv

daleroberts / Bv

Quickly view satellite imagery, hyperspectral imagery, and machine learning image outputs directly in your iTerm2 terminal.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Bv

Menyoki
Screen{shot,cast} and perform ImageOps on the command line 🌱 🏞️
Stars: ✭ 255 (+18.6%)
Mutual labels:  command-line, image
Imgcat
It's like cat, but for images.
Stars: ✭ 577 (+168.37%)
Mutual labels:  iterm2, image
Torchsat
πŸ”₯TorchSat 🌏 is an open-source deep learning framework for satellite imagery analysis based on PyTorch.
Stars: ✭ 261 (+21.4%)
Mutual labels:  satellite, satellite-imagery
google-maps-at-88-mph
Google Maps keeps old satellite imagery around for a while – this tool collects what's available for a user-specified region in the form of a GIF.
Stars: ✭ 93 (-56.74%)
Mutual labels:  satellite, satellite-imagery
Itermplot
An awesome iTerm2 backend for Matplotlib, so you can plot directly in your terminal.
Stars: ✭ 1,267 (+489.3%)
Mutual labels:  command-line, iterm2
geoblaze
Blazing Fast JavaScript Raster Processing Engine
Stars: ✭ 80 (-62.79%)
Mutual labels:  satellite, satellite-imagery
Tv
Quickly view (satellite) imagery directly in your terminal using Unicode 9.0 characters and true color.
Stars: ✭ 347 (+61.4%)
Mutual labels:  command-line, image
deck.gl-raster
deck.gl layers and WebGL modules for client-side satellite imagery analysis
Stars: ✭ 60 (-72.09%)
Mutual labels:  satellite, satellite-imagery
Term Img Cli
Display images in iTerm
Stars: ✭ 70 (-67.44%)
Mutual labels:  iterm2, image
Geotiff.io
Static website for viewing and analyzing GeoTIFF's in the browser
Stars: ✭ 53 (-75.35%)
Mutual labels:  satellite, satellite-imagery
georaster-layer-for-leaflet
Display GeoTIFFs and soon other types of raster on your Leaflet Map
Stars: ✭ 168 (-21.86%)
Mutual labels:  satellite, satellite-imagery
R2cloud
Decode satellite signals on Raspberry PI or any other 64-bit intel.
Stars: ✭ 125 (-41.86%)
Mutual labels:  satellite, satellite-imagery
lightweight-temporal-attention-pytorch
A PyTorch implementation of the Light Temporal Attention Encoder (L-TAE) for satellite image time series. classification
Stars: ✭ 43 (-80%)
Mutual labels:  satellite, satellite-imagery
himawari-rx
πŸ“‘ Receive images from weather satellite Himawari-8 via HimawariCast.
Stars: ✭ 21 (-90.23%)
Mutual labels:  satellite, satellite-imagery
goes2go
Download and process GOES-16 and GOES-17 data from NOAA's archive on AWS using Python.
Stars: ✭ 77 (-64.19%)
Mutual labels:  satellite, satellite-imagery
Term Img
Display images in iTerm
Stars: ✭ 275 (+27.91%)
Mutual labels:  iterm2, image
Xrit Rx
πŸ“‘ Receive images from weather satellite GEO-KOMPSAT-2A (GK-2A).
Stars: ✭ 46 (-78.6%)
Mutual labels:  satellite, satellite-imagery
Icat
icat (Image cat) outputs images in 256-color capable terminals.
Stars: ✭ 106 (-50.7%)
Mutual labels:  command-line, image
Ossim
Core OSSIM (Open Source Software Image Map) package including C++ code for OSSIM library, command-line applications, tests, and build system
Stars: ✭ 182 (-15.35%)
Mutual labels:  satellite, satellite-imagery
Mac
macOS Mojave v. 10.14 setup for developers.
Stars: ✭ 209 (-2.79%)
Mutual labels:  command-line

bv is a small tool to quickly view high-resolution multi-band imagery directly in your iTerm 2. It was designed for visualising very large images located on a remote machine over a low-bandwidth connection. It subsamples and compresses the image sends it over the wire as a base64-encoded PNG (hence the name "bv") that iTerm 2 inlines in your terminal.

Now, go and compare the above to old-school rendering or my other tool tv. Welcome to 2017!

Some Examples

Here are a number of examples that show how this tool can be used.

Big image over small connection

Display a 3.5 billion pixel single-band image (3.3GB) using only 467KB over a SSH connection.

Different band combinations

Display a six-band image (7.2GB) using only 1.1MB over a SSH connection. Here, we put bands 5-4-3 into the RGB channels using -b 5 -b 4 -b 3 (ordering matters) and set the width of the output image to be 600 pixels using -w 600.

You can also specify a single band to display (e.g., -b 1).

Subset images

You can subset images using gdal_translate syntax which is -srcwin xoff yoff xsize ysize. For example, only displaying a small 1000x1000 area of the same large image above.

This allows you to quickly identify regions of your image and then paste the same options into gdal_translate to complete your desired workflow. For example:

remote$ gdal_translate tasmania-2014.tif -b 5 -b 4 -b 3 -srcwin 12000 11000 1000 1000 -of PNG -ot UInt16 -scale 0 4000 ~/out.png
Input file size is 20000, 16000
0...10...20...30...40...50...60...70...80...90...100 - done.
remote$

Machine learning multi-class outputs with different color maps

Sometimes you might have a single-band image that only contains classes (integers). Different color maps can be applied to these single-band images using the -cm option and any choice from matplotlib's colormaps.

URLs

The bv tool can read from URLs (see the Trump image above). It can also parse URLs on stdin, this allows you to do things like this to quicky display available Landsat images roughly over Dubai.

remote$ landsat search --lat 25 --lon 55 --latest 3 | bv -urls -

Standard Input

Filenames can be read from stdin. For example:

ls -1 *.tif | bv -w 100 -

Compression

The level of compression can be changed using the -zlevel option (0-9).

Stacking images

If your bands are located in seperate images then you can stack them and display them in the RGB channels using

bv -stack RED.tif GREEN.tif BLUE.tif

There is also the -revstack option to do it in reverse order.

Subsampling algorithm

The subsampling algorithm can be changed using the -r option (same syntax as GDAL). The available subsamplings are:

  • Nearest
  • Average
  • Cubic Spline
  • Cubic
  • Mode
  • Lanczos
  • Bilinear

Alpha channel

For single-band images, you can specify the color value to set as the alpha channel. This is sometimes useful for machine learning outputs where you want to not display certain classes. You can add multiple of these with different values.

PDF, EPS, and PNG

The bv tool will display PDF, EPS, and PNG output inline with out any changes to those files. If you want to disable this behaviour you can pass the -nop option allow GDAL to subsample, etc.

TMUX Support

Configuration

You can save your default configuration by setting an alias in your ~/.profile file. For example, I do:

alias bv='bv -w 800'

Installation

It is just a single-file script so all you'll need to do it put it in your PATH. Dependencies are Python 3, GDAL 2, Numpy, Matplotlib, and iTerm 2. I've found that the best way to install these dependencies are:

# Python 3
brew install python3

# Numpy and matplotlib
pip3 install numpy matplotlib

# GDAL 2
brew install gdal --HEAD --without-python
pip3 install gdal
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].