"rdrs" is a special Diviner dataset. The format is pipes-compatible double-precision (i.e. 8 bytes per field). The rdrs record contains all fields of EDR, L1A, and RDR for a given timestamp. All detectors and channels are represented in the same record. Detector-specific fields are named: [FIELDNAME]_[CHANNEL]_[DETECTOR] e.g.: counts_1_01 rdrs also contains the following SPICE calculated fields: vlrox vlroy vlroz vel_lrox vel_lroy vel_lroz vsunx vsuny vsunz vearx veary vearz nadirangle sunbore earbore These are the moon-centered (MOON_ME) vectors to LRO, the velocity vector of LRO, the vector to the Sun, the vector to Earth, the nadir angle, and the angles of the Sun and Earth relative to the boresight. I used Channel 8, detector 11 for the boresight vector. There are two ways to use rdrs: 1) rdrs vanilla, unexpanded 2) rdrs expanded ------------------------------------------------------------------------------ =========================== 1) rdrs vanilla, unexpanded =========================== Unexpanded rdrs means having a single record contains the detector specific fields for all detectors. For channel 1, detector 1, fields look like this: counts_1_01 vlookx_1_01 vlooky_1_01 vlookz_1_01 radiance_1_01 tb_1_01 clat_1_01 clon_1_01 cemis_1_01 csunzen_1_01 csunazi_1_01 cloctime_1_01 qca_1_01 qge_1_01 qmi_1_01 A single record contains the above fields for every channel and detector. The rest of the fields do not contain the channel or detector in their name. See /luna5/marks/rdrs_data/rdrs_end.des for the full list of fields. * Script setup: Set up your scripts to use pipesbig like this: # for csh/tcsh scripts set path=(/u/marks/pipesbig/rel $path) # for all other scripts export PATH=/u/marks/pipesbig/rel:$PATH * Descriptor file For catting, use "rdrs_end.des" as the first argument to your cat command, e.g.: cd /luna5/marks/rdrs_data cat rdrs_end.des 20180401* ... | [PIPES TOOLS] ============================= 2) rdrs expanded ============================= Expanded rdrs takes a single record from vanila rdrs and outputs 189 records, one for each channel and detector. Thus the fields will be named: counts vlookx vlooky vlookz radiance tb clat clon cemis csunzen csunazi cloctime qca qge qmi Plus two extra columns to specify channel and detector: c det This is more like the traditional RDR format that pipes tools use. * Descriptor file For expanded rdrs, it is important to not put the descriptor file with the cat command, but instead use des=/luna5/marks/rdrs_data/rdrsexp.des as the first argument to the pipes tool following " | /luna5/marks/rdrs/expand_rdrs | " Sample usage: cd /luna5/marks/rdrs_data cat 20180401* ... | /luna5/marks/rdrs/expand_rdrs | pgetranges des=/luna5/marks/rdrs_data/rdrsexp.des > output.txt