-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdatasets.py
69 lines (50 loc) · 2.84 KB
/
datasets.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### Set default dataset
__default_dataset = 'cmip5'
'''
Define information for each dataset to be indexed and used
Standard elements (case sensitive):
* 'Centre', 'Model', Var, Frequency, Experiment, CMOR,
Version (i.e., data version), RunID, StartDate-EndDate
Notes:
../Version!latest/... means only use the 'latest' directory as the
Version (and ignore sister directories) during the
filewalk (i.e, default is to use the '*' wildcard)
'''
dataset_dictionaries = \
{
'happi':
{'Root':'/gws/nopw/j04/bas_climate/data/happi',
'DirStructure':'Raw_Derived/Centre/Model/Experiment/CMOR/Version/Frequency/SubModel/Var/RunID',
'FilenameStructure':'Var_CMOR_Model_Experiment_ExperimentXXX_Version_RunID_StartDate-EndDate',
'InclExtensions':['.nc', '.nc4'],
'Cached':{'Experiment':['All-Hist','Plus15-Future','Plus20-Future']}},
'cmip5':
{'Root':'/badc/cmip5/data/cmip5/output1',
'DirStructure':'Centre/Model/Experiment/Frequency/SubModel/CMOR/RunID/Version!latest/Var',
'FilenameStructure':'Var_CMOR_Model_Experiment_RunID_StartDate-EndDate',
'dtypes': {"Experiment":"category", "Var":"category", "Model":"category", "CMOR":"category",
"RunID":"category", "Centre":"category", "Frequency":"category",
"SubModel":"category", "Version":"category", "StartDate":"int32", "EndDate":"int32"},
'InclExtensions':['.nc', '.nc4'],
'Cached': {'Experiment':['piControl','historical','rcp26','rcp45','rcp85'],
'Frequency':['mon']}},
'cmip6':
{'Root':'/badc/cmip6/data/CMIP6',
'DirStructure':'MIP/Centre/Model/Experiment/RunID/CMOR/Var/Grid/Version!latest',
'FilenameStructure':'Var_CMOR_Model_Experiment_RunID_Grid_StartDate-EndDate',
'dtypes': {"Experiment":"category", "Var":"category", "Model":"category", "CMOR":"category",
"RunID":"category", "Centre":"category", "Grid":"category",
"Version":"category", "StartDate":"int32", "EndDate":"int32"},
'InclExtensions':['.nc', '.nc4'],
'Cached': {}},
'cmip5_all_versions':
{'Root':'/badc/cmip5/data/cmip5/output1',
'DirStructure':'Centre/Model/Experiment/Frequency/SubModel/CMOR/RunID/Version/Var',
'FilenameStructure':'Var_CMOR_Model_Experiment_RunID_StartDate-EndDate',
'dtypes': {"Experiment":"category", "Var":"category", "Model":"category", "CMOR":"category",
"RunID":"category", "Centre":"category", "Frequency":"category",
"SubModel":"category", "Version":"category", "StartDate":"int32", "EndDate":"int32"},
'InclExtensions':['.nc', '.nc4'],
'Cached': {'Experiment':['piControl','historical','rcp26','rcp45','rcp85'],
'Frequency':['mon']}},
}