Reading REGO data REGO raw images (stream0) are stored in PGM files, with 20 frames stacked in each file (corresponding to one minute of data per file). The PGM files are formatted such that THEMIS-ASI software for reading the stream0 images will work on REGO data. A copy of themis_imager_readfile and pam_readfile are in the IDL REGO/software/IDL/ directory. When using these codes; compile pam_readfile_new first, then themis_imager_readfile_new. An example usage of the code is below. themis_imager_readfile_new,filename,img,meta,/all img will be an array of (512,512, N images in the file) meta will be a structure of N elements that contains the meta data for each frame IDL> help,img IMG UINT = Array[512, 512, 20] IDL> help,meta,/str ** Structure THEMIS_IMAGER_METADATA, 12 tags, length=104, data length=100: SITE_UID STRING 'fsmi' IMAGER_UID STRING 'rego-656' EXPOSURE_START_STRING STRING '2015-01-01 07:00:00.000000 utc "image readout start" 2015-01-01 07:00:02.000535' EXPOSURE_START_CDF DOUBLE 6.3587315e+013 EXPOSURE_DURATION_REQUEST FLOAT 2.00000 EXPOSURE_DURATION_ACTUAL FLOAT 2.00100 CCD_SIZE INT Array[2] CCD_CENTER INT Array[2] CCD_OFFSET INT Array[2] CCD_BINNING INT Array[2] FRAME_SIZE INT Array[2] COMMENTS STRING '"Mode sequence number" 7894 "Computer name" fsmi-rego x86_64 "Operating System" Linux 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 "Imager.conf edited by" Darren Chaddock on Nove'...