Skip to content

Instantly share code, notes, and snippets.

View bennyistanto's full-sized avatar

Benny Istanto bennyistanto

View GitHub Profile
@bennyistanto
bennyistanto / 10_mxd13q1_viproducts_8day.py
Created March 13, 2024 08:22
Generate derivative product from Vegetation Indices - 8day timeseries
# -*- coding: utf-8 -*-
"""
NAME
10_mxd13q1_viproducts_8day.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)
@bennyistanto
bennyistanto / Convert_DBF_Transpose_CSV.ipynb
Created March 11, 2024 02:03
Convert DBF from ArcPy Zonal Histogram, transpose column and save as CSV
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / 09_mxd13q1_stats_annual.py
Last active March 13, 2024 08:20
MXD13Q1 annual statistics data, long-term average, max, min and stdev
# -*- coding: utf-8 -*-
"""
NAME
09_mxd13q1_stats_annual.py
MXD13Q1 annual statistics data, long-term average, max, min and stdev
DESCRIPTION
Input data for this script will use MXD13Q1 annual data generate from modis_8day2annual.py
This script can do annual statistics calculation (AVERAGE, MAXIMUM, MINIMUM and STD)
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / 07_mxd13q1_stats_monthly.py
Last active March 13, 2024 08:19
MXD13Q1 monthly statistics data, long-term average, max, min and stdev
# -*- coding: utf-8 -*-
"""
NAME
07_mxd13q1_stats_monthly.py
MXD13Q1 monthly statistics data, long-term average, max, min and stdev
DESCRIPTION
Input data for this script will use MXD13Q1 monthly data generate from modis_8day2monthly.py
This script can do annual statistics calculation (AVERAGE, MAXIMUM, MINIMUM and STD)
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / 06_mxd13q1_8day2annual.py
Last active March 13, 2024 08:19
MXD13Q1 annual mean from 8-day data
# -*- coding: utf-8 -*-
"""
NAME
06_mxd13q1_8day2annual.py
MXD13Q1 annual mean from 8-day data
DESCRIPTION
Input data for this script will use MXD13Q1 8-days data generate from GEE or downloaded from NASA
This script can do MEAN calculation to derive annual data
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / 05_mxd13q1_8day2quarter.py
Last active March 13, 2024 08:18
MXD13Q1 rolling quarter mean from 8-day data
# -*- coding: utf-8 -*-
"""
NAME
08_mxd13q1_stats_quarter.py
MXD13Q1 quarter statistics data, long-term average, max, min and stdev
DESCRIPTION
Input data for this script will use MXD13Q1 quarter data generate from modis_quarter.py
This script can do annual statistics calculation (AVERAGE, MAXIMUM, MINIMUM and STD)
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / 04_mxd13q1_8day2monthly.py
Last active March 13, 2024 08:17
MXD13Q1 monthly mean from 8-day data
# -*- coding: utf-8 -*-
"""
NAME
08_mxd13q1_stats_quarter.py
MXD13Q1 quarter statistics data, long-term average, max, min and stdev
DESCRIPTION
Input data for this script will use MXD13Q1 quarter data generate from modis_quarter.py
This script can do annual statistics calculation (AVERAGE, MAXIMUM, MINIMUM and STD)
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / 01_mxd13q1_extract_positive.py
Last active March 13, 2024 08:17
Extract positive value for EVI/NDVI data, exclude 0 values which associated with water/cloud
# -*- coding: utf-8 -*-
"""
NAME
01_mxd13q1_extract_positive.py
Extract positive value for EVI/NDVI data, exclude 0 values which associated with water/cloud
DESCRIPTION
Input data for this script will use MXD13Q1 16-days data generate from GEE or downloaded from NASA
This script can do positive data extraction and keep the data free from 0 values.
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / NeoFetchLike.ps1
Created March 7, 2024 13:31
Neofetch-like Powershell script
# Save this script as "NeoFetchLike.ps1"
# System and User Information
$User = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
$OS = Get-CimInstance -ClassName Win32_OperatingSystem
$System = Get-CimInstance -ClassName Win32_ComputerSystem
# Hardware Information
$CPU = Get-CimInstance -ClassName Win32_Processor
$GPU = Get-CimInstance -ClassName Win32_VideoController
@bennyistanto
bennyistanto / geotiffs_to_netcdf_regular.ipynb
Created January 26, 2024 06:10
Convert raster GeoTIFF in a folder to single NetCDF file with time dimension enabled that is CF-Compliant
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.