Ciop-catquery » History » Version 6
Herve Caumont, 2013-09-20 23:39
1 | 5 | Herve Caumont | h1. ciop-catquery CLI reference |
---|---|---|---|
2 | 2 | Herve Caumont | |
3 | 1 | Herve Caumont | h2. Name |
4 | |||
5 | 6 | Herve Caumont | ciop-catquery |
6 | 1 | Herve Caumont | |
7 | h2. Synopsys |
||
8 | |||
9 | <pre> |
||
10 | ciop-catquery [options] [<catalogue_url | ENVIRONMENT: $_CIOP_CQI_LOCATION>] |
||
11 | </pre> |
||
12 | |||
13 | Catalogue URL Parameters: |
||
14 | > Argument is the catalogue URL string. |
||
15 | > on the Sandbox, the environment variable $_CIOP_CQI_LOCATION is predefined |
||
16 | |||
17 | h2. Description |
||
18 | |||
19 | The following options are available |
||
20 | |||
21 | > [-a|--attribute=attribute1:condition1] [-a attribute2:condition2] [...]] attribute to filter on condition |
||
22 | > [-b|--bbox=xmin,ymin,xmax,ymax] bounding box extend to query on |
||
23 | > [-ce|--ce=hostname] computing element access control (not used in Sandbox mode, legacy option) |
||
24 | > [-d|--debug] show more debugging info |
||
25 | > [-f|--filequery=txt_query_file] add the query parameters from the txt_query_file |
||
26 | > [-gbt|--getbboxtimes=xmin,ymin,xmax,ymax] get the product acquisition times of the defined bounding-box |
||
27 | > [-o|--outputfields="field[,field,field]"] metadata field to output (defaults: dc:identifier) |
||
28 | > [-s|--sortorder="attribute[:asc|:desc],attribute[:asc|:desc]"] sort by attribute |
||
29 | > [-se|--series="SERIES_NAME"] specify the series if not defined in URL |
||
30 | > [-tq|--timequery="begin=YYYY-MM-DDTHH:MM:SS.sTZD;end=[;method=]"] |
||
31 | > > specify time range for query. |
||
32 | > > begin=YYYY-MM-DDThh:mm:ss.sZ |
||
33 | > > end=YYYY-MM-DDThh:mm:ss.sZ |
||
34 | > > [method=<sensing_interval,sensing_start,sensing_stop,processing,insertion>] |
||
35 | > > (default: sensing_interval) |
||
36 | > [-ox|--output-xml] keep xml ouput format from the catalogue |
||
37 | > [-ol|--outputlimit=max_rows] maximum number of result rows to output (default: 20) |
||
38 | > [-p|--productname=productname] specify product if not defined in URL |
||
39 | > [-O|--outputfile=output_filename] output in output_filename instead of stdout |
||
40 | > [-to|--timeout=max_sec] max timeout for query |
||
41 | > [-x|--xmlfilequery=xml_query_file] query by XML file |
||
42 | |||
43 | The catalogue URL has the form: |
||
44 | http://catalogue_server/database/schema/[series] |
||
45 | |||
46 | The environment variable $_CIOP_CQI_LOCATION can be used to initialize the CatalogueURL (instead of command-line). On the Sandbox, the environment variable $_CIOP_CQI_LOCATION is predefined. |
||
47 | |||
48 | Valid attribute search fields: |
||
49 | |||
50 | > size: |
||
51 | > orbitNumber: |
||
52 | > processorVersion: |
||
53 | > processingCenter: |
||
54 | > acquisitionStation: |
||
55 | 6 | Herve Caumont | |
56 | |||
57 | *See man page for range and list operators.* |
||
58 | 1 | Herve Caumont | |
59 | h2. Examples |
||
60 | |||
61 | <pre> |
||
62 | ciop-catquery --outputfields=dc:identifier,ical:dtstart,dct:spatial --outputlimit=2 http://grid-eo-catalog.esrin.esa.int/catalogue/gpod/SAR_IMP_1P |
||
63 | ciop-catquery --getbboxtimes=-19,13,-4,30 --product=MER_RR__1PQACR20040902_104546_000026292030_00037_13117_0000.N1 http://maps.terradue.com/catalogue/gpod/MER_RR__1P |
||
64 | </pre> |