Skip to content

Instantly share code, notes, and snippets.

View jkibele's full-sized avatar

Jared Kibele jkibele

View GitHub Profile
@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 / 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 / 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