-
Notifications
You must be signed in to change notification settings - Fork 20
/
flags.go
84 lines (61 loc) · 3.59 KB
/
flags.go
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
package main
const searchCollectionCmd = "searchcollection"
const searchGranuleCmd = "searchgranule"
const searchFlattenedGranuleCmd = "searchflattenedgranule"
const cloudServerFlag = "cloud"
const cloudServerShortFlag = "c"
const cloudServerDescription = "Use cloud intance."
const testServerFlag = "test"
const testServerShortFlag = "u"
const testServerDescription = "Use test intance."
const textQueryFlag = "query"
const textQueryShortFlag = "q"
const queryDescription = "Search flattened granules with text query"
const dateFilterFlag = "date"
const dateFilterShortFlag = "d"
const dateDescription = "DATE must be a string describing a date. Current year is assumed if the year part in DATE is ommited, e.g. 01-30. Any time information in DATE is disregarded. Files with data between DATE midnight and next day midnight are selected."
const spatialFilterFlag = "area"
const spatialFilterShortFlag = "g" //as in geometry
const areaDescription = "Locate files which intersect with the specified polygon AREA. The polygon must be a regular one (closed, no self-intersection, no hole) with coordinates (longitude, latitude) separated by \",\" like POLYGON((30.31 60.2, 31.21 60.2, 31.21 60.76, 30.31 60.76, 30.31 60.2)) "
const maxFlag = "max"
const maxShortFlag = "n"
const maxDescription = "Maximum number of results returned."
const offsetFlag = "offset"
const offsetShortFlag = "p" //as in page
const offsetDescription = "Page number starting at 0"
const startTimeFlag = "start-time"
const startTimeShortFlag = "s"
const startTimeDescription = "Match files occurring on or after this date."
const startTimeScdrFlag = "stime"
const startTimeScdrDescription = "Same behavior as start-time, but short hand flag for scdr files."
const endTimeFlag = "end-time"
const endTimeShortFlag = "e"
const endTimeDescription = "Match files occurring on or before this date."
const endTimeScdrFlag = "etime"
const endTimeScdrDescription = "Same behavior as end-time, but short hand flag for scdr files."
const availableFlag = "available"
const availableShortFlag = "a"
const availableDescription = "Searches OneStop for files associated with [COLLECTION]"
const metadataFlag = "metadata"
const metadataShortFlag = "m"
const metadataDescription = "Text search against available metadata."
const typeFlag = "type"
const typeShortFlag = "t"
// const regexFileCmd = "re-file"
const typeDescription = "Search only for files of the specified data collection using the collection's file identfier. Using this option is highly recommended for any kind of file searches. Collection identifiers are case sensitive."
const fileFlag = "file"
const fileShortFlag = "f"
const fileFlagDescription = "Locate files with exact FILENAME."
const refileFlag = "re-file"
const refileShortFlag = "r"
const regexDescription = "Locate files whose names match the case-insensitive regular expression REGEX. Only one regular expression is allowed, not longer than 100 characters."
const satnameFlag = "satname"
const satnameDescription = "Select files from the SATNAME satellite."
const yearFlag = "year"
const yearShortFlag = "y"
const yearDescription = "Specifies a year. YEAR must be a positive integer, ranging between 1978 and current year. Files with data start times in that year will be listed."
const keywordFlag = "label"
const keywordShortFlag = "l"
const keywordDescription = "Pick files tagged with a label whose value is LABEL. Files can be tagged with more than one label. Satellite names (see option --satname) are just one type of labels."
const cloudFlag = "cloud"
const cloudUrl = "http://acf3425c8d41b11e9a12912cf37a7528-1694331899.us-east-1.elb.amazonaws.com/onestop-search"