Project

General

Profile

Ciop-catquery » History » Version 2

Herve Caumont, 2013-06-18 16:25

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