NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Software > PlanOfRecordC32006 > ModificationRequest5C306
   Changes | Index | Contents | Search | Statistics | Go

Puting Lab Spectrometer data into SDFITS/GBTIDL - Phase I

Modification Request #5 (C3 2006)



1. Introduction

The Lab Spectrometer, sometimes referred to as the Test Spectrometer is a rump version of the GBT Spectrometer. It uses the same correlator chips, and is controlled in much the same way, via a VME Bit-3 interface to a linux host. The original purpose of the Lab Spectrometer was for ALMA antenna tests. It is now in the Electronics Lab, where the digital group uses it to troubleshoot Spectrometer issues, and receiver engineers and some scientists hope to use it to test receiver baselines while receivers are in the lab. For more details, see TestSpectrometer.

The above mentioned parties require data analysis software for many of the tests they would like to perform. This MR describes the modifications needed to the SDFITS program to fill Lab Spectrometer data into the sdfits format, so that it can then be read into our supported analysis tool, GBTIDL.

2. Background

The Lab Spectrometer produces FITS files identical to those of the GBT Spectrometer. However, in the Electronics Lab, the Lab Spectrometer will typically be run without the use of other M&C managers, so the resulting backend FITS files will be the only FITS files available to software analysis tools, i.e. there are no resulting ScanLog.fits file, nor GO, IF, Antenna FITS files.

The new GFM Spectrometer Engineering plugin, in conjunction with the scanlogsim program can read Lab Spectrometer data. However, GFM provides only Quick Look display capabilities, for raw lags and raw power, with only limited analytical functions, such as spectra differences, and spectra averaging. If more sophisticated analysis is needed, some other tool is needed.

For scientists or engineers who are willing or eager to write their own analysis tools, IDL, glish and python are all available to them. It would be ideal, however, if they could save time and energy by using the supported analysis tool for the GBT, GBTIDL.

The main obstacle blocking the use of GBTIDL with Lab Spectrometer data is the abscence of the above mentioned auxillary FITS files: ScanLog.fits, and GO, IF, LO1A/B, and Antenna FITS files. The import/export data format used by GBTIDL is SDFITS, which currently cannot fill data that are missing the above mentioned data files.

This MR will describe the modifications needed to the sdfits program so that it can produce SDFITS files which in turn can be imported into GBTIDL with enough information to support basic analysis procedures.

Note: The SDFITS format does not include the raw lags from the spectrometer. To do advanced analysis on raw lags (they can be just viewed with GFM), special tools will need to be written.

3. Requirements

Field Available Missing File Notes
object DONE   from backend file.
bandwid DONE   from backend file.
tdim7 DONE    
tunit7 DONE    
ctype1 DONE   contstant: "FREQ-OBS", translated as "TOPO" in GBTIDL
crpix1 DONE   from backend file.
cdelt1 DONE   from backend file.
freqres DONE   from backend file.
ctype2 ALERT! GO  
ctype3 ALERT! GO  
crval4 ALERT! IF  
observer ALERT! GO  
obsid DONE   available in backend file.
scan DONE   avaialable in backend file.
obsmode ALERT! GO  
frontend ALERT! Receiver  
tcal ALERT! Receiver 1.0
veldef ALERT! LO1 "RADI-OBS"
restfreq ALERT! GO bandwid/2
velocity ALERT! GO 0.0
equinox ALERT! GO  
sampler DONE    
feed ALERT! IF 0
srfeed ALERT! IF 0
beamxoff ALERT! IF  
beameoff ALERT! IF  
sideband ALERT! IF  
procsize ALERT! GO  
procseqn ALERT! GO  
laston ALERT! GO  
lastoff ALERT! GO  
timestamp DONE    
tambient ALERT! Antenna  
pressure ALERT! Antenna  
humidity ALERT! Antenna  
date-obs DONE    
duration DONE    
exposure DONE    
tsys DONE    
data DONE    
lst ALERT! Antenna  
crval1 ALERT! LO1 bandwid/2
obsfreq ALERT! LO1 bandwid/2
crval2 ALERT! Antenna  
crval3 ALERT! Antenna  
azimuth ALERT! Antenna  
elevation ALERT! Antenna  
sig DONE    
cal DONE    
zerochan DONE    
vframe ALERT! LO1 "TOPO"
rvsys ALERT! LO1 0.0
projid DONE   available in backend file.
sitelong ALERT! Antenna  
sitelat ALERT! Antenna  
siteelev ALERT! Antenna  

4. Design

Robustness and missing auxillary files

The main bulk of the coding that needs to be done for this MR involves making sdfits and its supporting libraries robust to missing auxillary FITS files. Class by class, these changes include:

Using backend FITS files for some values needed by SDFITS

The above mentioned values, PROJID, OBJECT, SCAN, are currently retrieved from the scan's GO FITS file. When the ScanData object fails to retrieve these values, for whatever reason, it should then try to retrieve them from the backend.

5. Deployment Checklist

What has to get done to integrate this completely into the system. This checklist must be completed before Cycle Integration Testing begins.

6. Test Plan

6.1 Using Real GBT Spectrometer data.

6.2 Using the Lab Spectrometer

6.5 Test GBTIDL

The resulting SDFITS files from the previous two tests should be read into GBTIDL to see if they pass the requirments stated above.

6.4 Test GFM

Run regression tests on GFM to ensure that there are no unintended side effects. Regression data sets are available at: GbtFitsMonitorBenchmarks AmyShelton is willing to do/assist with this.


Signatures

APPROVED: I acknowledge that my request is fully contained in this MR, and if the SDD delivers exactly what I specified, I will be happy.

ACCEPTED: I acknowledge that I have validated the completed code according to the acceptance tests, and I am happy with the results.

Written DONE - PaulMarganian - 05 Apr 2006
Checked DONE - AmyShelton - 06 Apr 2006
Approved by Sponsor DONE - RonMaddalena - 25 Apr 2006
Approved by CCC DONE - RonMaddalena - 25 Apr 2006
Accepted/Delivered by Sponsor DONE - RonMaddalena - 17 May 2006

Symbols:


CCC Discussion Area

-- PaulMarganian - 05 Apr 2006

Topic ModificationRequest5C306 . { Edit | Attach | Ref-By | Printable | Diffs | r1.10 | > | r1.9 | > | r1.8 | More }
Revision r1.10 - 17 May 2006 - 16:56 GMT - RonMaddalena
Parents: PlanOfRecordC32006
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.