Skip to content

Instantly share code, notes, and snippets.

@baskayj
baskayj / fracnd.py
Last active August 24, 2024 15:34
FracND: N-dimensional, parallelized sliding window fractal dimension and lacunarity calculator
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from multiprocessing import Pool
from scipy.stats import t
from tqdm import tqdm
class FracND:
class Worker:
def __call__(self, window):
@KMarkert
KMarkert / g4g23_python_climate_example.ipynb
Last active October 19, 2024 17:19
g4g23_python_climate_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@floew2
floew2 / satellite_image_classification.py
Last active August 5, 2023 14:48
A workflow for classifying Landsat satellite images
'''
A workflow for classifying Landsat remote sensing imagery
involves utilizing soft voting with SVM and Gradient Boosting classifiers.
The Isolation Forest algorithm is applied to identify outliers in the
training data. Feature selection is performed through a Recursive Feature
Elimination approach. The outcome consists of classification and classification
probability raster images saved in TIF format.
Author: Fabian Löw
Date: June 2023
@MrStickyPiston
MrStickyPiston / 3D_procedural_terrain.py
Last active August 24, 2024 15:37
A program to generate 3d terrain in python
import random
import sys
import noise
import numpy as np
import matplotlib.pyplot
if "--seed" in sys.argv:
try:
seed = int(sys.argv[sys.argv.index("--seed")+1])
# Blender 質感・マテリアル設定実践テクニック
# 3-04-01.blend ドロドロ汚れの作り方
import bpy
NOT_MODIFIED = False
object = bpy.data.objects['export3dcoat'] # シーンに配置済みのオブジェクト
slot = object.material_slots[0] # そのマテリアルスロット
material = slot.material # に設定されているマテリアル
node_tree = material.node_tree # のノードネットワーク
nodes = node_tree.nodes # にある各ノード
def delete():
@mortcanty
mortcanty / semantic_segmentation.ipynb
Last active July 2, 2024 14:50
Semantic_Segmentation.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mortcanty
mortcanty / imadtutorial.ipynb
Created August 1, 2021 18:07
iMADTutorial.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mortcanty
mortcanty / s2cnnclass.ipynb
Last active October 11, 2023 14:24
s2cnnclass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mortcanty
mortcanty / s1multitempclass.ipynb
Last active February 6, 2025 18:29
S1MultitempClass.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hakimabdi
hakimabdi / MKtrend.R
Last active January 7, 2025 07:27
This function performs a Mann-Kendall trend test with associated p-values on a time seris of gridded satellite data
#############################################################################################
# title : Perform a Mann-Kendall trend test of satellite image time series
# purpose : Mann-Kendall test of monotonic trend and associated statistical significance
# author : Abdulhakim Abdi (@HakimAbdi)
# input : Raster stack/brick comprising a time series of observations
# output : Raster object of monotoic trend (Kendall's tau), significance or both (i.e. brick)
# data : Test data: https://1drv.ms/u/s!AsHsKb_qtbkwg4ti8pJCxvUer9rMqg?e=BGcH1K
# notes : Depending on the time series, it is might be useful prewhiten the data to remove serial correlation
# : prior to extracting the trend. See blog post on www.hakimabdi.com for more information.
#############################################################################################