Skip to content

Instantly share code, notes, and snippets.

View rajadain's full-sized avatar

Terence Tuhinanshu rajadain

View GitHub Profile
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.
@rajadain
rajadain / 1-tile.ipynb
Created May 17, 2024 19:55
More testing 10m LULC dataset for MMW
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / mmw-10m-lulc-stac-test.ipynb
Last active May 8, 2024 19:38
Testing Fetching 10m LULC data and subsetting it to a shape for Model My Watershed
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / epr_workflow.sh
Created November 13, 2023 15:42
EPR Workflow for Model My Watershed
#!/usr/bin/env bash
set -ex
###
# Basic settings
###
# Model My Watershed URL to hit
MMW_API_URL="http://localhost:8000/api"
@rajadain
rajadain / wbd.ipynb
Created August 3, 2022 15:58
Demo of using HyRiver to query Watershed Boundary Data
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rajadain
rajadain / rename-s10-to-dropbox.ps1
Created October 13, 2019 12:51
Renames .MP4 files from Samsung Galaxy S10 filename style to Dropbox "Camera Upload" filename style
Get-ChildItem "." -Filter "*.mp4" | Foreach-Object {
$year = $_.BaseName.Substring(0, 4)
$month = $_.BaseName.Substring(4, 2)
$day = $_.BaseName.Substring(6, 2)
$hour = $_.BaseName.Substring(9, 2)
$minute = $_.BaseName.Substring(11, 2)
$second = $_.BaseName.Substring(13, 2)
$newName = "$($year)-$($month)-$($day) $($hour).$($minute).$($second)"
@rajadain
rajadain / README.md
Last active February 18, 2019 23:05
MMW UtfGrid Visualizer

MMW UtfGrid Visualizer

Instructions

Have MMW running locally. Open this page. Hover over the map to highlight UTFGrid blocks.

Credits

Pieced together with ideas from:

@rajadain
rajadain / README.md
Created January 2, 2019 16:51
JSX Ternary Conditional Assignment

JSX Ternary Conditional Assignment

Straight

const legend = isCropLayerActive ? (
    <div
        className="layercontrol__legend"
        onMouseOver={disableMapZoom}
 onFocus={disableMapZoom}
@rajadain
rajadain / README.md
Last active September 4, 2018 17:52
subbasin-diff

Diff in Subbasin results of "South Branch Rancocas Creek, HUC-10 Watershed ID 0204020202" between baseline (production) and post-land use change in WikiWatershed/model-my-watershed#2944