Skip to content

Instantly share code, notes, and snippets.

View giswqs's full-sized avatar

Qiusheng Wu giswqs

View GitHub Profile
import numpy as np
import pandas as pd
def sklearn_tree_to_ee_string(estimator, feature_names):
# extract out the information need to build the tree string
n_nodes = estimator.tree_.node_count
children_left = estimator.tree_.children_left
children_right = estimator.tree_.children_right
feature_idx = estimator.tree_.feature
@jdbcode
jdbcode / ee_filmstrip_gif.ipynb
Last active October 3, 2022 17:54
ee_filmstrip_gif.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdbcode
jdbcode / geemap_timestamp_gif.ipynb
Last active February 20, 2021 11:05
geemap_timestamp_gif.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darrenwiens
darrenwiens / STAC Leafmap time series
Last active January 29, 2023 11:17
Make a Leafmap time series animation from STAC query results
import ipyleaflet
import json
import leafmap
import requests
stac_api = "https://earth-search.aws.element84.com/v0"
search_endpoint = f"{stac_api}/search"
collection = "sentinel-s2-l2a-cogs"
payload = {
@jdbcode
jdbcode / ee_image_chips.ipynb
Last active March 23, 2023 17:59
Create image chips that have consistent dimensions despite varying aspect ratios of input image region using Earth Engine and PIL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.