Skip to content

Instantly share code, notes, and snippets.

View betolink's full-sized avatar

Luis López betolink

View GitHub Profile
@betolink
betolink / earthaccess-kerchunk.ipynb
Last active August 28, 2023 20:57
earthaccess-kerchunk-store
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from collections import namedtuple
from functools import partial
from shapely.affinity import translate
from shapely.geometry.multipolygon import MultiPolygon
from shapely.geometry.point import Point
from shapely.geometry.polygon import Polygon
from shapely.ops import transform
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.
@betolink
betolink / ITS_LIVE_URL_TRANSLATE_V1.py
Last active May 8, 2023 19:01
translates ITS_LIVE URLs from AWS to their NSIDC location.
def build_nsidc_url(aws_url):
"""
This function is a hack to translate v1 URLS from ITS_LIVE hosted in AWS to URLs hosted at NSIDC
It will translate
https://its-live-data.s3.us-west-2.amazonaws.com/velocity_image_pair/landsatOLI/v01/32627/LE07_L1TP_230006_20020604_20170129_01_T1_X_LE07_L1TP_230006_20010703_20170204_01_T1_G0240V01_P053.nc
into
https://n5eil01u.ecs.nsidc.org/DP4/MEASURES/NSIDC-0775.001/2001.07.03/LE07L1TP2300062002060401T1_LE07L1TP2300062001070301T1_32627_G0240V01_P053.nc
@betolink
betolink / NASA_EULA.md
Last active March 18, 2023 18:04
mod07_l2

EULAS

@betolink
betolink / keybase.md
Created November 19, 2022 15:51
keybase

Keybase proof

I hereby claim:

  • I am betolink on github.
  • I am betolink (https://keybase.io/betolink) on keybase.
  • I have a public key ASCrY4QgiSsT5118Gwg4zNt8PZ15xR9Lr-no1-NYaiSONwo

To claim this, I am signing this object:

@betolink
betolink / SSL.ipynb
Last active August 19, 2022 14:09
SSL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@betolink
betolink / cryohub.md
Last active November 24, 2021 16:36
Cryohub @ NSIDC

NSIDC Cryohub @ AWS

A guide to deploy Jupyterhub using Kubernetes on AWS.

  1. Overview
  2. Cloud resources
  3. Setup AWS credentials and environment variables
  4. Configure a Kubernetes cluster on AWS
  5. Deploy Jupyterhub to the cluster using Helm (PENDING)
    • config.yaml
    • authentication