Ciop-catquery » History » Version 1
Herve Caumont, 2013-06-18 16:23
| 1 | 1 | Herve Caumont | h1. Ciop-catquery |
|---|---|---|---|
| 2 | |||
| 3 | Command Line (CLI) reference |
||
| 4 | |||
| 5 | h2. Name |
||
| 6 | |||
| 7 | ciop-catquery -- |
||
| 8 | |||
| 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 | > [-O|--outputfile=output_filename] output in output_filename instead of stdout |
||
| 42 | > [-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 | - |
||
| 58 | *See man page for range and list operators.*- |
||
| 59 | |||
| 60 | h2. Examples |
||
| 61 | |||
| 62 | <pre> |
||
| 63 | ciop-catquery --outputfields=dc:identifier,ical:dtstart,dct:spatial --outputlimit=2 http://grid-eo-catalog.esrin.esa.int/catalogue/gpod/SAR_IMP_1P |
||
| 64 | 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 |
||
| 65 | </pre> |