Skip to content

Instantly share code, notes, and snippets.

View mmcfarland's full-sized avatar

Matt McFarland mmcfarland

View GitHub Profile
import requests
url = 'https://planetarycomputer.microsoft.com/api/stac/v1/search'
search = {
"collections": [
"sentinel-1-rtc"
],
"bbox": [-121.68811311, 46.83262832, -120.19715332, 47.84592105],
"datetime": "2019-01-01/2019-12-31",
#"fields": { "include": ["id"], "exclude": ["links"]},
@mmcfarland
mmcfarland / pc-cql2-and.ipynb
Created January 26, 2022 18:15
CQL2 `and` operators
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmcfarland
mmcfarland / pystac_client-paging.ipynb
Last active December 8, 2021 13:55
Shows pystac_client paging
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am mmcfarland on github.
  • I am mmcfarland (https://keybase.io/mmcfarland) on keybase.
  • I have a public key whose fingerprint is 68F2 1DE1 D92D 614A 08BC E724 F0DA 374B DFCA 4D66

To claim this, I am signing this object:

IDB Professional Services Talking Points

Design iteration

  • Engage in user centered design to create quick, incremental software releases and gather course correcting feedback.
  • Work with domain experts to implement models, encode methodology and define techniques used to establish priorities in a decision making system.
  • Open source licensing allows integration with existing open source work; available for review and verification; able to be adapted, reused and improved by other entities.

Decision Support Tools (DST) Generals

  • Create software which combines data from multiple source and formats and allows advanced geospatial processing to do real time modeling and analysis
  • Change parameters to alter assumptions around future scenarios and compare predictions between multiple proposed scenarios
@mmcfarland
mmcfarland / parcel2pbf.sh
Last active July 20, 2018 01:33
PWD Parcels to Vector Tiles
# Shapefile in state plane to geojson wgs84
docker run -v $(pwd):/data -i fuzzytolerance/gdal ogr2ogr -f "GeoJSON" parcels.geojson PWD_PARCELS.shp -s_srs EPSG:2272 -t_srs EPSG:4326
# Geojson to directory of uncompressed vector tiles
docker run -it -v $(pwd):/tmp klokantech/tippecanoe tippecanoe --no-feature-limit --no-tile-size-limit --no-tile-compression --minimum-zoom=11 --maximum-zoom=15 --exclude-all --drop-fraction-as-needed --output-to-directory /tmp/tiles -L parcels:/tmp/parcels.geojson
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" " required!
Bundle 'gmarik/vundle'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-vinegar'
Bundle 'tpope/vim-surround'
Bundle 'tpope/vim-repeat'
@mmcfarland
mmcfarland / .zshrc
Last active December 4, 2017 16:21
TSM: zsh vi bindings
# Readline in vi mode
bindkey -v
bindkey -s jj '\e'
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
bindkey "^R" history-incremental-search-backward
@mmcfarland
mmcfarland / gdb2json.py
Created September 3, 2017 15:05
Harvey contour processing
from __future__ import print_function
from subprocess import call
from multiprocessing import Process, Queue, cpu_count
def process():
chunk_size = 1300
max_size = 4233236 + chunk_size