-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinspire.fields.dict.py
75 lines (68 loc) · 2.29 KB
/
inspire.fields.dict.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
70
71
72
73
74
# python
# inspire fields dict
# map to cerfacs
#
# project: clipc
# author: andrej
from collections import OrderedDict
# http://csw.climate4impact.eu/geonetwork/srv/eng/catalog.search
#
# maping of nc_global to
# keys=inspire xml fields
# values=netcdf nc_global fields
inspire_fields_dict = OrderedDict([
#inspire #nc_global
('title' , 'nc_fileName'), # change to human readable format variable # discussed in emails.
('abstract' , 'description'),
('keyword' , ['keywords', # tuple distributed according to vocabularies
'project_id',
'experiment_id',
'standard_name' ]) , # we extract this from the variable and added to the keywords, but the short name changes by user
('date' , 'revision_date'), # day-month-year preffered (publication)
('organisationName' , 'institution'),
('electronicMailAddress', 'contact_email_1'), # alternative contact_email add as tuple [ , ]
('statement' , 'in_vars'), # all experiment related data is used in lineage
('beginPosition' , 'coverage_start'),
('endPosition' , 'coverage_end'),
('southBoundLatitude' , 'geospatial_lat_min'),
('northBoundLatitude' , 'geospatial_lat_max'),
('westBoundLongitude' , 'geospatial_lon_min'),
('eastBoundLongitude' , 'geospatial_lon_max'),
('resolution' , 'geospatial_increment'), #0.11 degree as 11000 m...
('?5' , 'domain') ,
('?4' , 'summary') , # this could be more relevant... now double
# we would like to see:
('?3' , 'variable'), # layer in netcdf or layer in
('?2' , 'units'), # clarify with portal team
('?1' , 'software'), #
('CRI' , '?') # based on domain currently... hard coded
('uncertanty')
])
list1 = []
for v in inspire_fields_dict.values():
list1.append(v)
for l in list1:
print str("('"+str(l)+"' : ''),").replace(' ','')
# nc_fileName
# description
# keywords
# project_id
# experiment_id
# variable
# variable.standard_name
# revision_date
# institution
# contact_email_1
# in_vars
# coverage_start
# coverage_end
# geospatial_lat_min
# geospatial_lat_max
# geospatial_lon_min
# geospatial_lon_max
# geospatial_increment
# domain
# summary
# variable
# units
# software