Skip to content

Instantly share code, notes, and snippets.

View 7yl4r's full-sized avatar

Tylar 7yl4r

View GitHub Profile
@7yl4r
7yl4r / deglint.js
Last active July 25, 2025 18:04
Deglinting for Planet Imagery in GEE
var image = ee.Image('...Image Asset Path Here...')
var sunglintRegions = geometry; // this is a geometry of sunglinted areas
// Select the bands
var NIR = image.select('b8'); // NIR
var minNIR = NIR.reduceRegion({
reducer: ee.Reducer.min(),
geometry: NIR.geometry(),
scale: 4,
2025-07-16 13:33:47.371 | INFO | planktoscope.mqtt:on_message:150 - segmenter_client: segmenter/segment 0 b'{"action":"segment","path":["/home/pi/data/img/sfer_mbon_ws16130_ws_200um_20160510_real","/home/pi/data/img/sfer_mbon_ws16207_ws_200um_20160726"],"settings":{"force":false,"recursive":true,"ecotaxa":true,"keep":true,"process_id":1}}'
2025-07-16 13:33:47.371 | DEBUG | planktoscope.mqtt:on_message:154 - command is segment
2025-07-16 13:33:47.371 | DEBUG | planktoscope.mqtt:on_message:157 - args are {'action': 'segment', 'path': ['/home/pi/data/img/sfer_mbon_ws16130_ws_200um_20160510_real', '/home/pi/data/img/sfer_mbon_ws16207_ws_200um_20160726'], 'settings': {'force': False, 'recursive': True, 'ecotaxa': True, 'keep': True, 'process_id': 1}}
2025-07-16 13:33:47.371 | DEBUG | planktoscope.mqtt:on_message:159 - msg is {'topic': 'segmenter/segment', 'payload': {'action': 'segment', 'path': ['/home/pi/data/img/sfer_mbon_ws16130_ws_200um_20160510_real', '/home/pi/data/img/sfer_mbon_ws16207_ws_200u
original.analyte.name == "Ammonium" ~ "Ammonium",
original.analyte.name == "Ammonia__N_" ~ "Ammonia",
original.analyte.name == "Chlorophyll_a" ~ "Chlorophyll_a",
original.analyte.name == "Chlorophyll_a-_uncorrected" ~ "Chlorophyll_a",
original.analyte.name == "Chlorophyll_a__uncorrected_for_pheophytin" ~ "Chlorophyll_a"
original.analyte.name == "Chlorophyll_a__free_of_pheophytin" ~ "Chlorophyll_a",
original.analyte.name == "Chlorophyll_a-_corrected" ~ "Chlorophyll_a",
original.analyte.name == "Chlorophyll_a__corrected_for_pheophytin" ~ "Chlorophyll_a",
graph TD

subgraph st_andrew_assets_folder
    roi_hab1(seagrass)
    roi_hab2(sand)
    roi_hab3(etc...)
end
import re
def canonical_station_name(station_name):
station_aliases = {
"1": ["1"],
"2": ["2"],
"3": ["3"],
"4": ["4"],
"5": ["5"],
"5.5": ["5.5"],
# === install java
sudo apt install openjdk-21-jdk -y
# check with `java --version`
# === install mvn
wget https://dlcdn.apache.org/maven/maven-3/3.9.8/binaries/apache-maven-3.9.8-bin.tar.gz
tar -xvzf apache-maven-3.9.8-bin.tar.gz
sudo mv apache-maven-3.9.8 /opt/apache-maven
sudo sh -c 'echo "export M2_HOME=/opt/apache-maven" > /etc/profile.d/maven.sh'
sudo sh -c 'echo "export MAVEN_HOME=/opt/apache-maven" >> /etc/profile.d/maven.sh'
sudo sh -c 'echo "export PATH=\${M2_HOME}/bin:\${PATH}" >> /etc/profile.d/maven.sh'
@7yl4r
7yl4r / clai.md
Created May 23, 2024 19:08
brainstorming command line ai templating cli
tail data.csv  # command not found in db, test-run, 
[...]
  > clai: no history matches.
  > clai: "tail" bash program found.
  > clai: "data.csv" local file found.
  > clai: "data.csv" new IPFS pin "Qm91njnpjKNGinv90aj".
  > clai: "data.csv"
  > clai: no fuzzy matches.
  > clai: running it.
// PRVI LST Calc v24
// There are multiple ways to calculate LST
// 1. Cook paper method (directly available from files ("ST_B10" - see below)
// 2. NDVI method (need to add)
// 3. Old method w/atm. coefficients (see below)
// Can we use the Lu and Ld to get LST the old way?
// How to get emissivity and water content?
// 4. Split-window method (will work with LS8?)
// Some functions:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.