Skip to content

Instantly share code, notes, and snippets.

View bennyistanto's full-sized avatar

Benny Istanto bennyistanto

View GitHub Profile
@bennyistanto
bennyistanto / Parsing BMKG's daily climate data.ipynb
Last active August 19, 2023 16:11
Parsing daily climate data in a xlsx, downloaded from BMKG's Data Online
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / UnitHydrographs.ipynb
Last active March 31, 2025 00:39
Obtain a Unit Hydrograph for a basin using the rainfall and streamflow data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / max_and_date_arcpy.py
Created September 7, 2023 10:51
Get annual maximum of daily rainfall and when it happen from time-series daily rainfall data in a year
import sys
import numpy as np
import arcpy
import datetime
arcpy.env.overwriteOutput = True
# ---- You need to specify the folder where the tif files reside ----
src_flder = r"Y:\3days\2017" # just change the year
out_flder = r"Y:\3days\2017_output" # make a result folder to put stuff
@bennyistanto
bennyistanto / Join_from_ZonalStats_NDVI.ipynb
Last active October 23, 2023 15:19
Join data attribute based on csv's KEY FIELD with DBF output from ArcGIS Zonal Statistics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / PhenoMetrics_Merge_Output.ipynb
Created October 23, 2023 01:57
Calculate total of hectares on each phenology class month-by-month from phenological metrics data extraction process
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / Aggregates_MODIS_8day_to_monthly.ipynb
Last active October 24, 2023 04:07
Aggregates MODIS's tabular 8-days data into monthly
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / Batch_TSF_seas2img_from_TIMESAT.md
Last active March 9, 2024 15:14
Batch TSF_seas2img from TIMESAT

Batch TSF_process and TSF_seas2img from TIMESAT

@bennyistanto
bennyistanto / Generate_Header_Files.ipynb
Last active October 27, 2023 14:53
Generate header file (*.hdr) for each of TIMESAT output binary files in a folder
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / TIMESAT_output_remap.md
Last active October 28, 2023 13:31
TIMESAT output processing from different scenario, 2 year and 3 year

This script required GeoTIFF file from TIMESAT seas2img binary output conversion process for 2-year scenario. It will remap the raster value and combined between two simulation exercise.

@bennyistanto
bennyistanto / modis_viproducts_quarter.py
Created November 7, 2023 23:11
Generate derivative product from Vegetation Indices per quarter
# -*- coding: utf-8 -*-
"""
NAME
modis_viproducts_quarter.py
Generate derivative product from Vegetation Indices
DESCRIPTION
Input data for this script will use MXD13Q1 8-days data generate from GEE or downloaded
from NASA. This script can do calculation for ratio, difference, standardize anomaly
and vegetation condition index.
The calculation required timeseries VI and the long-term statistics (min, mean, max, std)