Skip to content

Instantly share code, notes, and snippets.

View jkibele's full-sized avatar

Jared Kibele jkibele

View GitHub Profile
@jkibele
jkibele / groud_placement.py
Created August 31, 2021 17:18
Interview Question
dataset_id = '202106300800-LS20' # type: str
def do_ground_placement(dataset_id: str) -> dict[int, GroundPlacement]
gps_data = get_gps_data_for_dataset_id(dataset_id) # type: List[dict]
ground_placement = {} # type: Dict[int, GroundPlacement]
for d in gps_data:
instrument = get_instrument_for_dataset_id(dataset_id) # type: Instrument
elevation = get_elevation_for_lat_lon(d['latitude'], d['longitude']) # type: float
ground_placement[d['timestamp']] = get_ground_placement(
instrument.field_of_view, # type: int
@jkibele
jkibele / Chlorophyll.ipynb
Created June 20, 2019 17:36
xarray for chlorophyll
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / RecRegions.ipynb
Created July 12, 2018 23:26
Assign Recapture Regions to Release Locations
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / Untitled.ipynb
Created April 25, 2018 23:43
Python stacked bar plot with plotnine
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / kml_to_shp.ipynb
Created April 9, 2018 23:05
KML polygons to Shapefiles
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / Untitled1.ipynb
Created April 5, 2018 18:03
Make the axes go away on matplotlib imshow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / ColorPageCount.ipynb
Created March 8, 2017 04:18
Counting the color and black & white pages of a pdf
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / LatexLabelList.ipynb
Last active February 20, 2020 16:24
Python code to generate a list of labels from latex documents.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkibele
jkibele / spikes2
Created February 2, 2015 01:57
More Wasting Time on Spikes
{
"metadata": {
"name": "",
"signature": "sha256:2d19e10e5e012d74f436153043ce8dbb1981c12a925559e734783b6d4fc4f3c6"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [