Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
@dayne
dayne / 1.users_workflow.rb
Last active August 29, 2015 14:11
support
# future
if workstation.broken? then call_for_help
# current -- simplified version - just think if we checked and wrote
# out workflow based on the user.workstation type: windows, linux, osx, other
if user.workstation.broken?
if user.institute = GI
then call_for_help("crc")
else
@dayne
dayne / Setup of SimSalmon.md
Last active August 29, 2015 14:15
SimSalmon 2015.02

Download and extract latest OSX build - built by Melo

I set up two Rift compatible builds set just outside of Lower Russian Lake. One build is x64 bit and the other was called universal in the build settings. - Melo

mkdir SimSalmon-2015.02
cd SimSalmon-2015.02
wget https://www.northwestknowledge.net/miles/VTLBuildShare/Lower%20Russian%20Demo%20Mac%20Builds.7z
7z e Lower\ Russian\ Demo\ Mac\ Builds.7z 
@dayne
dayne / 0.DTN Width Script
Last active August 29, 2015 14:18
Decision Theature North - width of screens fun
See the picture and more details about this on my Google+ post over at:
https://plus.google.com/+DayneBroderson/posts/V21SUJhgEGB
The real room is a width 21' 5 3/4''.
gdal_translate -b 4 /mnt/gis/scratch/dbroders/nrt_river_aerial/download/Chena_4_15_15v3.tif Chena_4_15_15v3.mask.tif
gdal_translate -co TILED=YES -co COMPRESS=DEFLATE -b 1 -b 2 -b 3 /mnt/gis/scratch/dbroders/nrt_river_aerial/download/Chena_4_15_15v3.tif Chena_4_15_15v3.rgb.tif
/home/dbroders/processing-utils/bin/masker Chena_4_15_15v3.rgb.tif Chena_4_15_15v3.mask.tif Chena_4_15_15v3.mask.rgb.tif
add_overviews.rb Chena_4_15_15v3.mask.rgb.tif
gdal_translate -co TILED=YES -co COMPRESS=JPEG -co COPY_SRC_OVERVIEWS=YES -co PHOTOMETRIC=YCBCR -co JPEG_QUALITY=90 Chena_4_15_15v3.mask.rgb.tif Chena_4_15_15v3-jpg.tif
@dayne
dayne / watana-extract-notes
Last active August 29, 2015 14:23
watana extract
# Found some old notes (2012) of the steps I used to create some contour lines
# derived from the SDMI IFSAR DEM
####
# clipping out
gdal_translate -co TILED=YES -co COMPRESS=LZW -a_nodata -99999 -projwin 252983.504358 1469878.71763 340772.495973 1421881.9325 -of GTiff ../SDMI.IFSAR.2010.FUGRO/dirty-org/DSM.vrt SDMI-IFSAR-2010-DSM-watana_extract.tif
add_overviews.rb SDMI-IFSAR-2010-DSM-watana_extract.tif
gdal_translate -co TILED=YES -co COMPRESS=LZW -a_nodata -99999 -projwin 252983.504358 1469878.71763 340772.495973 1421881.9325 -of GTiff ../SDMI.IFSAR.2010.FUGRO/dirty-org/DTM.vrt SDMI-IFSAR-2010-DTM-watana_extract.tif
add_overviews.rb SDMI-IFSAR-2010-DTM-watana_extract.tif
@dayne
dayne / ahap_metadata_template.xml
Created July 27, 2015 18:41
GI/ASF AHAP metadata template
<?xml version="1.0" encoding="UTF-8" ?>
<metadata>
<idinfo>
<citation>
<citeinfo>
<origin>University of Alaska Fairbanks, Geophysical Institute</origin>
<pubdate>UPDATE</pubdate>
<title>UPDATE</title>
  • NEED: a specific lat,lon point (or points)
  • NEED: click on the map to capture that point
  • NEED: specify the point via a lat/lon dialog box
  • WISH: upload a csv or similar
  • NEED: general shape for the project
  • NEED: click on the map to capture poly
  • WISH: be able to upload a kml,shp,
  • WANT a line segmant (road like thing)
  • WISH: a trackline from a GPS
#!/usr/bin/env ruby
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo "<h1>hi mom!</h1>" | browser
# $ ron -5 man/rip.5.ron | browser
if $stdin.tty?
puts <<-usage
@dayne
dayne / SDMI.ORTHO.md5
Created May 24, 2011 07:58
ralph maps
46056eea3dd73550804212ec110dbfc3 SDMI.ORTHO/CM3_Pilot_20110408-CIR.jpg.tif
9a083d1c4be51e29ed8ebda922802192 SDMI.ORTHO/CM3_Pilot_20110408-PAN.tif
f1e8909ae504ec4ed8f2e7ee8b45e3da SDMI.ORTHO/CM3_Pilot_20110408-RGB.jpg.tif
f69a80cde74b6c8ffe7efaa420c90396 SDMI.ORTHO/CM3_South_20110408-CIR.jpg.tif
a4bd07bdc0badfbe5bdfb372fbc026bd SDMI.ORTHO/CM3_South_20110408-PAN.tif
2e026d4ebf09ccd2f78a85b9732231d4 SDMI.ORTHO/CM3_South_20110408-RGB.jpg.tif
1d54211671ce298e66049af0b2ac53b2 SDMI.ORTHO/NM2_20110408-CIR.jpg.tif
2184b005f74632a68c41b5d32c1b7f7f SDMI.ORTHO/NM2_20110408-PAN.tif
cab01640ddfdbbc0b159d80bbcc866e0 SDMI.ORTHO/NM2_20110408-RGB.jpg.tif
17eb753e5b54ea4c31cd7c9c382bcc81 SDMI.ORTHO/NM2_East_20110408-CIR.jpg.tif