Skip to content

Instantly share code, notes, and snippets.

View johannah's full-sized avatar

Johanna Hansen johannah

View GitHub Profile
@johannah
johannah / create_geotiff.py
Last active September 5, 2022 20:46
Helper file to create a geotiff from a given image or from an automatically downloaded satellite image from google maps which is centered around a given coordinate .
"""
BST License
# Description
File to create geotiffs depends on gdal installed on system. Can be used under two modes:
1) Download a satellite overview screenshot from google maps around a center
coordinate. Can give zoom (max is usually 20, but depends on area - will return
an image with error message if zoom is too high) and image size
(defaults to max 640x640)
2) Convert an existing image into a geotiff by giving UL and LR corner
@johannah
johannah / mb-system-install-notes.md
Last active June 10, 2023 12:41
Instructions for Installing MB-System for Sonar processing

This is documentation for installing MB-System-r2279 on Ubuntu 14.04 as of Nov 2016. Although documentation for mb-system has improved dramatically over the past few years, it can still be difficult. In particular, I have not found step 1.4 in the documentation and missing this step will result in being unable to use gmt shared libraries such as "gmt mbcontour" which is necessary for producing contour lines in maps.

##1) Install GMT 5.1.2 I am using directions from Andrew at: http://andrewjmoodie.com/2014/12/installing-the-generic-mapping-tools-5-gmt-5-1-x-on-ubuntu-linux/ I've added step 1.4 to get this to load shared libraries from mb-system.

##1.1) Install relvent dependencies

@johannah
johannah / send_nmea.py
Last active May 2, 2016 22:34
example nmea output
import os
import sys
import socket
# sinaps server ip address
UDP_IP = "192.168.0.1"
UDP_POT = 5003
NMEA = "$GPGGA,172814.0,3723.46587704,N,12202.26957864,W,2,6,1.2,18.893,M,-25.669,M,2.0,0031*4F"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)