This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Calculate annual rainfall from TERRACLIMATE Precipitation data, 1958-2020 | |
""" | |
import arcpy | |
def AnnualRainfall(): # Annual Rainfall | |
# To allow overwriting outputs change overwriteOutput option to True. | |
arcpy.env.overwriteOutput = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
extract_spei_dry_month.py | |
DESCRIPTION | |
Input data for this script will use TERRACLIMATE's SPEI-12, generated using pypi climate-indices | |
This script will calculate number of: | |
(i) Dry month, | |
(ii) Total dry month |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
extract_imerg_daily_indices.py | |
Global IMERG daily indices data extraction | |
DESCRIPTION | |
Input data for this script will use IMERG Final or Late Run downloaded from NASA website | |
https://gpm1.gesdisc.eosdis.nasa.gov/data/GPM_L3/ | |
This script can do: | |
(i) Translation from nc4 to GeoTIFF, and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_nc2tif_subset.py | |
Global IMERG daily nc4 translation to GeoTIFF | |
DESCRIPTION | |
Input data for this script will use IMERG Final or Late Run downloaded from NASA website | |
This script can do translation from nc4 to GeoTIFF and mask the sea. | |
REQUIREMENT | |
ArcGIS must installed before using this script, as it required arcpy module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_daily_indices_1mm.py | |
Global IMERG daily indices data extraction | |
DESCRIPTION | |
Input data for this script will use IMERG Final or Late Run downloaded from NASA website | |
This script can do: | |
(i) Dry days | |
(ii) Wet days |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_daily2annual.py | |
Global IMERG annual rainfall | |
DESCRIPTION | |
Input data for this script will use IMERG in GeoTIFF format | |
This script can do annual cell statistics to get SUM or other stat: MEAN, MAX, MIN and STDEV | |
REQUIREMENT | |
ArcGIS must installed before using this script, as it required arcpy module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_monthlystats.py | |
Global IMERG monthly statistics data, long-term average, max, min and stdev | |
DESCRIPTION | |
Input data for this script will use IMERG monthly data generated by imerg_daily2monthly.py | |
This script can do monthly statistics calculation (AVERAGE, MAXIMUM, MINIMUM and STD) | |
REQUIREMENT | |
ArcGIS must installed before using this script, as it required arcpy module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_daily2monthly.py | |
Global IMERG daily to monthly | |
DESCRIPTION | |
Input data for this script will use IMERG daily data generated by imerg_nc2tif.py or other | |
IMERG-based daily products. Example: daily wetdays to monthly sum, daily cdd to monthly max | |
REQUIREMENT | |
ArcGIS must installed before using this script, as it required arcpy module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_nc2tif.py | |
Global IMERG daily nc4 translation to GeoTIFF. | |
DESCRIPTION | |
Input data for this script will use IMERG Final or Late Run downloaded from NASA website. | |
This script can do translation from nc4 to GeoTIFF. | |
REQUIREMENT | |
ArcGIS must installed before using this script, as it required arcpy module. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
NAME | |
imerg_daily_indices_5mm.py | |
Global IMERG daily indices data extraction | |
DESCRIPTION | |
Input data for this script will use IMERG Final or Late Run downloaded from NASA website | |
This script can do: | |
(i) Dry days | |
(ii) Wet days |