Skip to content

Instantly share code, notes, and snippets.

View bennyistanto's full-sized avatar

Benny Istanto bennyistanto

View GitHub Profile
@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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / gee_zonal_statistics.ipynb
Created January 26, 2024 05:48
Zonal statistics (regular and categorical) using Earth Engine Python API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / era5land_tmean.sld
Created January 5, 2024 17:08
Geoserver batch upload for netCDF and SLD file in a folder
<?xml version="1.0" encoding="UTF-8"?>
<StyledLayerDescriptor version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<NamedLayer>
<Name>ERA5Land_Temperature</Name>
<UserStyle>
@bennyistanto
bennyistanto / geotiffs_to_netcdf.ipynb
Last active January 6, 2024 06:23
Convert raster GeoTIFF in a folder to single NetCDF file with time dimension enabled that is CF-Compliant
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / keybase.md
Created December 15, 2023 04:29
Keybase

Keybase proof

I hereby claim:

  • I am bennyistanto on github.
  • I am bennyistanto (https://keybase.io/bennyistanto) on keybase.
  • I have a public key ASDvnyDW1A30EJd9ukpTpE4BnSd3HDr6S3TttFbfknYCTQo

To claim this, I am signing this object: