Project

General

Profile

Ciop-catquery » History » Version 7

Herve Caumont, 2013-09-25 12:14

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