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
#!/usr/bin/env python | |
""" | |
SYNOPSIS | |
NetCDF_to_Tiff [-h,--help] [-v,--verbose] [-i,--input] [-o, --output] | |
DESCRIPTION | |
This script converts a NetCDF time-series to a set | |
of TIFF images, one for each time step. It is designed |
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
import sys | |
import numpy as np | |
import arcpy | |
arcpy.env.overwriteOutput = True | |
ft = {'bool': lambda x: repr(x.astype(np.int32)), | |
'float_kind': '{: 0.3f}'.format} | |
np.set_printoptions(edgeitems=5, linewidth=120, precision=2, suppress=True, | |
threshold=100, formatter=ft) |
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
#!/usr/local/bin/python | |
import arcpy | |
import os | |
import numpy | |
import pandas as pd | |
import glob | |
from arcpy.sa import * | |
#---------------------------Set environment settings------------------------------------# |
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
import arcpy | |
import os | |
import pandas as pd | |
import glob | |
#dbf to csv conversion | |
dbf_folder = "Z:\\Temp\\TIMESAT\\DBF\\adm2\\SOS\\2018_2020" #adjust this folder | |
csv_folder = "Z:\\Temp\\TIMESAT\\DBF\\adm2\\SOS" #adjust this folder | |
arcpy.env.workspace = dbf_folder |
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
##### | |
# Installing packages | |
install.packages(c('raster','readr','tidyr','dplyr','RColorBrewer','GISTools','sp', | |
'sf','ggplot2','bioimagetools','plyr',"orcutt","lmtest"), dependencies = T) | |
library(raster) | |
library(readr) | |
library(tidyr) | |
library(dplyr) | |
library(RColorBrewer) |
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
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
' Program untuk menghitung Radiasi | |
'++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
Private Sub cmdCal_Click() | |
Dim LAT As Double | |
Dim lon As Double | |
Dim MONTH As Double | |
Dim hari As Integer |
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
#!/usr/bin/env python | |
# Import system modules | |
import optparse, sys, os, traceback, errno | |
import ast | |
import re | |
import json | |
import ConfigParser | |
import re | |
import logging | |
import arcpy |
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
#!/usr/bin/env python | |
# Import system modules | |
import optparse, sys, os, traceback, errno | |
import ast | |
import re | |
import json | |
import ConfigParser | |
import re | |
import logging | |
import arcpy |
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 -*- | |
import os | |
import arcpy | |
# MODIS 16 days calendar using Julian Date | |
chirps_16days_data = ['001', '017', '033', '049', '065', '081', '097', '113', '129', '145', '161', '177', | |
'193', '209', '225', '241', '257', '273', '289', '305', '321', '337', '353'] | |
# Change the data and output folder | |
data_folder = "X:\\01_Data\\01_Global\\Rasters\\Climate\\Precipitation\\CHIRPS\\By16days" |
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 -*- | |
import arcpy | |
import os | |
from datetime import date | |
from datetime import timedelta | |
import multiprocessing | |
#Overwrite the output if exist | |
arcpy.env.overwriteOutput = True |
OlderNewer