-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib_default_args.py
47 lines (39 loc) · 1.7 KB
/
lib_default_args.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"""
Library Features:
Name: lib_default_args
Author(s): Francesco Avanzi (francesco.avanzi@cimafoundation.org), FFabio Delogu (fabio.delogu@cimafoundation.org)
Date: '20210607'
Version: '3.0.0'
"""
#######################################################################################
# Library
import pandas as pd
#######################################################################################
# -------------------------------------------------------------------------------------
# Time information
time_type = 'GMT' # 'GMT', 'local'
time_units = 'days since 1858-11-17 00:00:00'
time_calendar = 'gregorian'
time_format_datasets = "%Y%m%d%H%M"
time_format_algorithm = '%Y-%m-%d %H:%M'
time_machine = pd.Timestamp.now
# Logging information
logger_name = 's3m_logger'
logger_file = 's3m_logging_file.txt'
logger_handle = 'file' # 'file' or 'stream'
logger_format = ('%(asctime)s %(name)-12s %(levelname)-8s'
' %(message)-80s %(filename)s:[%(lineno)-6s - %(funcName)-20s()] ')
# Definition of zip extension
zip_extension = 'gz'
# Definition of path delimiter
path_delimiter = '$'
# Definition of wkt for projections
proj_wkt = ('GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],'
'AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,'
'AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]')
proj_epsg = 'EPSG:4326'
# Definition of tmp filename(s)
file_tmp_builder = 'builder.workspace'
file_tmp_runner = 'runner.workspace'
file_tmp_finalizer = 'finalizer.workspace'
# -------------------------------------------------------------------------------------