source: branches/hpc33/external-alma/atnf/PKSIO/NRODataRecord.h@ 2535

Last change on this file since 2535 was 1757, checked in by Kana Sugimoto, 14 years ago

New Development: Yes

JIRA Issue: Yes (CAS-2211)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: ASAP 3.0.0 interface changes

Test Programs:

Put in Release Notes: Yes

Module(s): all the CASA sd tools and tasks are affected.

Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.

Note you also need to update casa/code/atnf.


File size: 5.0 KB
Line 
1//#---------------------------------------------------------------------------
2//# NRODatRecord.h: Class for NRO 45m and ASTE data.
3//#---------------------------------------------------------------------------
4//# Copyright (C) 2000-2006
5//# Associated Universities, Inc. Washington DC, USA.
6//#
7//# This library is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU Library General Public License as published by
9//# the Free Software Foundation; either version 2 of the License, or (at your
10//# option) any later version.
11//#
12//# This library is distributed in the hope that it will be useful, but WITHOUT
13//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15//# License for more details.
16//#
17//# You should have received a copy of the GNU Library General Public License
18//# along with this library; if not, write to the Free Software Foundation,
19//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning AIPS++ should be addressed as follows:
22//# Internet email: aips2-request@nrao.edu.
23//# Postal address: AIPS++ Project Office
24//# National Radio Astronomy Observatory
25//# 520 Edgemont Road
26//# Charlottesville, VA 22903-2475 USA
27//#
28//# $Id$
29//#---------------------------------------------------------------------------
30//# Original: 2008/10/30, Takeshi Nakazato, NAOJ
31//#---------------------------------------------------------------------------
32
33#ifndef NRO_DATA_RECORD_H
34#define NRO_DATA_RECORD_H
35
36#include <string>
37#include <stdio.h>
38#include <vector>
39
40using namespace std ;
41
42// <summary>
43// <linkto class=NRODataRecord>NRODataRecord</linkto> is a class
44// that represents a single scan record
45// (scan header + data record) for NRO 45m and ASTE raw data.
46// </summary>
47
48// <use visibility=global>
49
50// <reviewed reviewer="" date="" tests="" demos="">
51// </reviewed>
52
53// <etymology>
54// NRO and ASTE raw data format consists of two major components; data
55// header and scan record. <linkto class=NRODataRecord>NRODataRecord</linkto>
56// is a representation of the scan record
57// that contains a scan header and a spectral data.
58// </etymology>
59//
60// <synopsis>
61// <linkto class=NRODataRecord>NRODataRecord</linkto> is a struct that is an
62// implementation of a single scan record.
63// All attributes are public.
64// </synopsis>
65//
66// <motivation>
67// <linkto class=NRODataRecord>NRODataRecord</linkto> are defined to import
68// NRO and ASTE raw data effictively.
69// It enable to read scan record all at once instead of to read each
70// attributes individually.
71// </motivation>
72//
73struct NRODataRecord
74{
75 // Type of file record
76 char LSFIL[4] ;
77
78 // Scan number
79 int ISCAN ;
80
81 // Integration start time with format of "YYYYMMDDHHMMSS.sss" (UTC)
82 char LAVST[24] ;
83
84 // Scan type (ON or ZERO)
85 char SCANTP[8] ;
86
87 // Offset position of the scan RA/GL/AZ [rad]
88 double DSCX ;
89
90 // Offset position of the scan DEC/GB/EL [rad]
91 double DSCY ;
92
93 // Absolute position of the scan RA/GL/AZ [rad]
94 double SCX ;
95
96 // Absolute position of the scan DEC/GB/EL [rad]
97 double SCY ;
98
99 // Position of the scan in the program RA/GL/AZ [rad]
100 double PAZ ;
101
102 // Position of the scan in the program DEC/GB/EL [rad]
103 double PEL ;
104
105 // Real position of the scan RA/GL/AZ [rad]
106 double RAZ ;
107
108 // Real position of the scan DEC/GB/EL [rad]
109 double REL ;
110
111 // X-coordinate value [rad]
112 double XX ;
113
114 // Y-coordinate value [rad]
115 double YY ;
116
117 // Array type (beam or IF)
118 char ARRYT[4] ;
119
120 // Ambient temperature [Celcius]
121 float TEMP ;
122
123 // Air pressure [hPa]
124 float PATM ;
125
126 // Pressure of water vapor [hPa]
127 float PH2O ;
128
129 // Wind speed [m/s]
130 float VWIND ;
131
132 // Wind direction [rad]
133 float DWIND ;
134
135 // Atmospheric optical depth
136 float TAU ;
137
138 // System noise temperature [K]
139 float TSYS ;
140
141 // Atmospheric temperature [K]
142 float BATM ;
143
144 // Line number of executable
145 int LINE ;
146
147 // Dummy data
148 int IDMY1[4] ;
149
150 // Recessional velocity of the antenna [m/s]
151 double VRAD ;
152
153 // Central frequency in the rest frame [Hz]
154 double FREQ0 ;
155
156 // Tracking frequency in the rest frame [Hz]
157 double FQTRK ;
158
159 // Frequency of first IF [Hz]
160 double FQIF1 ;
161
162 // ALC control voltage
163 double ALCV ;
164
165 // OFF position before and after the integration
166 double OFFCD[2][2] ;
167
168 // Data flag 0: effective 1: flagged
169 int IDMY0 ;
170
171 // Dummy data
172 int IDMY2 ;
173
174 // Correction for Doppler frequency shift
175 double DPFRQ ;
176
177 // Dummy data
178 char CDMY1[144] ;
179
180 // Scaling factor of the array
181 double SFCTR ;
182
183 // Offset for array data
184 double ADOFF ;
185
186 // Spectral data for OTF data:
187 // Originally the data are double array.
188 // But they are quantized and converted to the int array with
189 // a scalling factor and an offset value. Additionally,
190 // this int array is stored into the char array.
191 //
192 // 2009/02/26 Takeshi Nakazato Moved to NROReader
193 char *LDATA ;
194 // Spectral data for FITS data
195 //vector<int> JDATA ;
196} ;
197
198#endif /* NRO_DATA_RECORD_H */
Note: See TracBrowser for help on using the repository browser.