| 1 | |
| 2 | = show_info = |
| 3 | |
| 4 | The show_info command can be used to get information about NetDRMS data. The syntax is involved, the main point of this page is to give some examples. |
| 5 | |
| 6 | The command does have help, available with the -h option : |
| 7 | {{{ |
| 8 | show_info -h |
| 9 | Usage: |
| 10 | show_info [-ahjklpqr] ds=<recordset query> {n=0} {key=<keylist>} {seg=<segment_list>} |
| 11 | sunum=<sunum> - use instead of ds= argument when SUNUM is known. |
| 12 | summary information modes are: |
| 13 | -c: count records in query |
| 14 | -h: help - show this message then exit |
| 15 | -j: list all series, keyword, segment, and link items in jsd file format, then exit |
| 16 | -l: list all keywords with description, then exit |
| 17 | -s: stats - show some statistics for how many records, etc. |
| 18 | per-record information modes are: |
| 19 | -a: show information for all keywords |
| 20 | -A: show information for all segments |
| 21 | -b: disable prime-key logic when opening records |
| 22 | -d: Show dimensions of segment files with selected segs |
| 23 | -i: query- show the record query that matches the current record |
| 24 | -I: print session information for record creation, host, sessionid, runtime, jsoc_version, and logdir |
| 25 | -K: show information for all links |
| 26 | -o: online - tell the online state |
| 27 | -O: disable the code that sets a database query time-out of 10 minutes |
| 28 | -p: list the record's storage_unit path (retrieve if necessary) |
| 29 | -P: list the record's storage_unit path (no retrieve) |
| 30 | -r: recnum - show record number as first keyword |
| 31 | -R: retention - show the online expire date |
| 32 | -S: sunum - show sunum number as first keyword (but after recnum) |
| 33 | -T: Tapename - show archive tapename and file number |
| 34 | -v: verbose - print extra, useful information |
| 35 | -x: archive - show archive status for the record's storage unit |
| 36 | -z: size - show size of storage unit containing record's segments |
| 37 | output appearance control flags are: |
| 38 | -k: list keyword names and values, one per line |
| 39 | -t: list keyword types and print formats as 2nd and 3rd lines in table mode |
| 40 | -v: print extra, helpful information -q: quiet - skip header of chosen keywords |
| 41 | ds=<recordset query> as <series>{[record specifier]} - required |
| 42 | n=0 number of records in query to show, +n from start or -n from end |
| 43 | key=<comma delimited keyword list>, for all use -a flag |
| 44 | seg=<comma delimited segment list>, for all use -A flag |
| 45 | The -p or -P flag will show the record directory by itself or as part of the |
| 46 | full path to the segment file if seg=<segmentname> is specified. |
| 47 | Note that the -p flag will cause the data to be staged if offline. |
| 48 | }}} |
| 49 | |
| 50 | To show the temporal range covered by a series : |
| 51 | {{{ |
| 52 | show_info -s aia.lev1 |
| 53 | }}} |
| 54 | |
| 55 | |
| 56 | Print 10 minutes worth of data : |
| 57 | {{{ |
| 58 | show_info key=T_REC_INDEX,T_OBS,WAVELNTH ds="aia.lev1[2013-02-14T23:59:59Z/10m][?WAVELNTH=171?]" |
| 59 | }}} |
| 60 | |
| 61 | or, without wavelength : |
| 62 | {{{ |
| 63 | show_info key=T_REC_INDEX,T_OBS,WAVELNTH ds="aia.lev1[2013-02-14T23:59:59Z/10m]" |
| 64 | }}} |
| 65 | |
| 66 | For two days rather than 10 minutes : |
| 67 | {{{ |
| 68 | show_info key=T_REC_INDEX,T_OBS,WAVELNTH ds="aia.lev1[2013-02-14T23:59:59Z/10m]" |
| 69 | }}} |
| 70 | |
| 71 | Having ascertained the record numbers, the information from show_info might be useful in a drms_export_cgi test script like so : |
| 72 | {{{ |
| 73 | drms_export_cgi 'rsquery=aia.lev1[? wavelnth = 171 and T_REC_index between 1108339235 and 1108339823 ?]{image_lev1}' reqid=SDAC_SDO3_160765 ackfile=/tmp/ACKFILESDAC_SDO3_160765 expversion=0.5 method=url_cgi protocol=FITS path=jsoc 'ffmt={seriesname}.{wavelnth}A_{date__obs}.{segment}' tarfile=aia__lev1_4k_171A_1108339235-1108339823 > drms_export_cgi_tar.hfits 2> drms_export_cgi_tar.err |
| 74 | }}} |
| 75 | |
| 76 | |
| 77 | |
| 78 | |