This directory contains a CentOS read routine to read and list the pls data on a summary tape as generated at GSFC. See the output file. See Case 5 of The Voyager PLS Utility Software. Here we read only one M mode spectra, at time 1977 304 4 59 12 412 for Voyager 2. This time is specified in the main.f routine. We choose this time because it is the time of one of our mjsanl fits, see example MJSANL The Positive-Ion Least-Squares Fitting Routine for the Voyager PLS Instrument The code is patterned after the Solaris code that you can find at Voyager_PLS_v_01/software_v_01/historic_libraries/vgr_src_mjs/nxtsum.f On a summary file, when read on CentOS from a binary file originally generated at GSFC, there are six kinds of records (see documentation_v_01/general/Summary_tape_format.pdf): AENG, ALFM, AM, L, AE1, AE2 These are engineering, magnetic field data, M mode data, L mode data, E1 and E2 mode data. When we put the above characters out in hex and integer they are: C5D5C740 D3C6D440 D4404040 D3404040 C5F14040 C5F24040 and -741944256 -733986752 -750763968 -974045120 -973979584 We use the integer form to differentiate kinds of records in nxtsum.f, which calls newreadbat.c, which uses the standard fread to get data off the summary file. The file nxtsum.f has a lot of code to reorder the bytes we get from fread. This is necessary because of the big/little endian problem. This is also why we choose to use the integer representation of AENG, ALFM, AM, L, AE1, AE2, because of the difficulty of converting character variables between different endian systems. We also convert the real*4 answer array words on the summary tape from IBM 360 float to in IEEE 754, using a home-grown program convert.f based on https://en.wikipedia.org/wiki/IBM_hexadecimal_floating-point. The entries in the answer array are described in documentation_v_01/general/Ans_Array.pdf, Summary_tape_format.pdf, Summary_Tape_Format_Long.pdf and vgranl.pdf, pages 41-50. Note that the Summary_tape_format.pdf list is incomplete. There is also a list in voyager_memos/pdf/VoyMemo_075_Voyager_Hourly_Average_Tapes.pdf and in VoyMemo_119_Corrected_Hourly_Average_Tape_Format.pdf. Note that my decoding of the answer array is partial in the following sense. When the answer array variable is a real*4, then I properly decode it. If it is not a real*4, then my decoding is wrong, but I think it is not too hard to get the correct decoding. I just have not had time enough to do it. As an example of what I mean, in Summary_tape_format.pdf look at page 1.15-5. The first three values of the answer array are of length 32 bits, but consist of two half integers in each of the 32 bit words. But I am decoding these 32 bits as if they were a real*4, which is clearly incorrect. And if you look at the answer array values in the file software_v_01/summary_pls_read/output, the values there make no sense. We could properly decode the integer*2 variables in the first three words if we had the patience to, which I don’t. Another example is answer array words 16-19, and so on.