Skip to content

Instantly share code, notes, and snippets.

View bennyistanto's full-sized avatar

Benny Istanto bennyistanto

View GitHub Profile
@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:

@bennyistanto
bennyistanto / modis_viproducts_monthly.py
Created December 10, 2023 16:41
Generate monthly derivative product from Vegetation Indices
# -*- coding: utf-8 -*-
"""
NAME
modis_viproducts_monthly.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 / modis_monthlystats.py
Created December 10, 2023 16:41
MXD13Q1 monthly statistics data, long-term average, max, min and stdev
# -*- coding: utf-8 -*-
"""
NAME
modis_monthlystats.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 / modis_8day2monthly.py
Created December 10, 2023 16:40
MXD13Q1 monthly mean from 8-day data
# -*- coding: utf-8 -*-
"""
NAME
modis_8day2monthly.py
MXD13Q1 monthly 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 monthly data
REQUIREMENT
ArcGIS must installed before using this script, as it required arcpy module.
@bennyistanto
bennyistanto / lbn_economic_monitor_charts.ipynb
Created December 10, 2023 16:39
Lebanon Economic Monitor - Plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bennyistanto
bennyistanto / syr_economic_monitor_charts.ipynb
Created December 10, 2023 16:39
Syria Economic Monitor - Plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.