Skip to content

Instantly share code, notes, and snippets.

View smacfarlane's full-sized avatar

Scott Macfarlane smacfarlane

  • Seattle, Washington
View GitHub Profile
@smacfarlane
smacfarlane / modis2awips
Created August 6, 2012 17:23
Quick load of modis data using pytroll
#!/usr/bin/env python2
#First, lets load up the scene into pytroll
import os
import fnmatch
import datetime
import glob
from mpop.scene import assemble_segments
from mpop.satellites import PolarFactory
from mpop.satin import hdfeos_l1b
@smacfarlane
smacfarlane / ASSIST Output
Created January 31, 2014 19:43
SIGRID Conversion
{
"ice": {
"open_water_lookup_code": null,
"thick_ice_lookup_code": null,
"thin_ice_lookup_code": null,
"total_concentration": 4
},
"ice_observations": [
{
"biota_lookup_code": null,
@smacfarlane
smacfarlane / smacfarl_workstation
Last active August 29, 2015 13:56
Workstation CHRUBY
smacfarl@soup:~/workspace/chef/roles$ chruby
1.9.3-p392
1.9.3-p448
* 1.9.3-p484
2.0.0-p247
2.0.0-p353
2.1.0
@smacfarlane
smacfarlane / gist:a10b73f08fc54b051b2a
Last active August 29, 2015 14:21
Packer qemu template
{
"builders": [
{
"type": "qemu",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos-6.6/ks.cfg<enter><wait>"
],
"boot_wait": "2s",
"disk_size": 20480,
"format": "qcow2",
INFO : Creating output from data mapped to grid 203
INFO : Writing product vis07 to AWIPS NetCDF file
INFO : Writing product vis06 to AWIPS NetCDF file
ERROR : Could not get information on product from backend configuration file
ERROR : Could not create output for 'vis05'
INFO : Writing product vis04 to AWIPS NetCDF file
INFO : Writing product vis03 to AWIPS NetCDF file
INFO : Writing product vis02 to AWIPS NetCDF file
INFO : Writing product vis01 to AWIPS NetCDF file
PSP_CONFIG_FILE: code/../pyspectral_rsr_data/pyspectral.cfg
#############################################################
viirs_AK_awips_processing_atGINA.py began at 2016-09-12 23:03:34.635140
* Source directory: /home/vagrant/npp.20160906/
* Cleaning up temp dir (code/../sandbox)
# Script name
scriptName = os.path.basename(__file__);
scriptPath = os.path.dirname(__file__);
# Start timer
startTime = time.time()
######
# System executables
######
pkg_name="demo"
pkg_version="0.0.1"
pkg_maintainer="demo"
pkg_license=('MIT')
pkg_source=nosuchfile.tar.gz
pkg_deps=()
do_build() {
return 0
}
[2][default:/src:1]# hab --version
hab 0.9.3/20160916191534
[3][default:/src:0]# hab pkg install results/uafgina-demo-0.0.1-20160927220233-x86_64-linux.hart
✗✗✗
✗✗✗ No such file or directory (os error 2)
✗✗✗
[4][default:/src:1]# hab pkg install core/busybox-static
» Installing core/busybox-static
↓ Downloading core/busybox-static/1.24.2/20160926152859
510.95 KB / 510.95 KB \ [===========================================================================================================================================================================================================================================================================] 100.00 % 2.54 MB/s
[2][default:/src:1]# RUST_LOG=debug RUST_BACKTRACE=1 hab pkg install results/uafgina-demo-0.0.1-20160927215857-x86_64-linux.hart
DEBUG:habitat_common::ui: InputStream(stdin): { is_a_terminal(): true }
DEBUG:habitat_common::ui: OutputStream(stdout): { is_colored(): false, supports_color(): false, is_a_terminal(): true }
DEBUG:habitat_common::ui: OutputStream(stderr): { is_colored(): false, supports_color(): false, is_a_terminal(): true }
DEBUG:hab: clap cli args: ["hab", "pkg", "install", "results/uafgina-demo-0.0.1-20160927215857-x86_64-linux.hart"]
DEBUG:hab: remaining cli args: []
DEBUG:habitat_http_client::ssl: Setting CA file for SSL context to: /hab/pkgs/core/cacerts/2016.04.20/20160612081125/ssl/cert.pem
DEBUG:habitat_http_client::api_client: User-Agent: hab/0.9.3/20160916191534 (x86_64-linux; 4.1.18-boot2docker)
DEBUG:habitat_core::package::archive: content = core/busybox-static/1.24.2/20160926152859