-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfdsnws-availability-1.0.schema.json
More file actions
115 lines (115 loc) · 4.39 KB
/
Copy pathfdsnws-availability-1.0.schema.json
File metadata and controls
115 lines (115 loc) · 4.39 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"$id": "http://www.fdsn.org/schema/availability/1",
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"fdsn-date-time": {
"description": "Date and time with UTC 'Z' designator. Example: 2019-02-13T11:48:15Z, 2019-02-13T11:48:15.123456789Z",
"type": "string",
"pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}[:][0-9]{2}:[0-9]{2}(\\.[0-9]{1,9})?Z$"
},
"datasource": {
"type": "object",
"properties": {
"network": {
"description": "FDSN network identifier. Example: IU",
"type": "string"
},
"station": {
"description": "FDSN station identifier. Example: ANMO",
"type": "string"
},
"location": {
"description": "FDSN location identifier. Example: 00",
"type": "string"
},
"channel": {
"description": "FDSN channel identifier. Example: BHZ",
"type": "string"
},
"quality": {
"description": "FDSN quality identifier. Example: M",
"type": "string"
},
"samplerate": {
"description": "Sample rate in Hertz. example 50.0",
"type": "number"
},
"timespans": {
"description": "Array of array of fdsn-date-time pairs. Returned from '/query' queries only.",
"type": "array",
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/fdsn-date-time"
},
"minItems": 2,
"maxItems": 2
}
},
"earliest": {
"description": "Earliest time of data availability. Returned from '/extent' queries only.",
"$ref": "#/definitions/fdsn-date-time"
},
"latest": {
"description": "Lastest time of data availability. Returned from '/extent' queries only.",
"$ref": "#/definitions/fdsn-date-time"
},
"updated": {
"description": "The most recent data update-date for the datasource and time range contraints in query",
"$ref": "#/definitions/fdsn-date-time"
},
"timespanCount": {
"description": "The number of timespans. Returned from '/extent' queries only.",
"type": "integer"
},
"restriction": {
"description": "The data access restriction status as it applies to the client. OPEN: the data is availabile. RESTRICTED: data is not available to client, but is in the archive. PARTIAL: some of the data is available to the client. Returned from '/extent' queries only.",
"type": "string",
"pattern": "^(OPEN|RESTRICTED|PARTIAL)$"
}
},
"required": [
"network",
"station",
"location",
"channel"
],
"oneOf": [
{
"required": [
"timespans"
]
},
{
"required": [
"earliest",
"latest"
]
}
]
}
},
"title": "FDSN data availability message format JSON schema",
"description": "FDSN data center time series data availability JSON schema",
"type": "object",
"properties": {
"created": {
"description": "Date and time of the availability query",
"$ref": "#/definitions/fdsn-date-time"
},
"version": {
"description": "Data availability message format version",
"const": 1.0
},
"datasources": {
"type": "array",
"items": {
"$ref": "#/definitions/datasource"
}
}
},
"required": [
"version",
"datasources"
]
}