/* $Header: /scisoft/gildas/sou/nic/main/nmb.h,v 1.6 1999/02/12 11:25:12 broguier Rel $ */ /* $Log: nmb.h,v $ * Revision 1.6 1999/02/12 11:25:12 broguier * float Data[48] replaced by float Data[100] * # Revision 1.4 96/02/29 17:26:44 17:26:44 broguier () # *** empty log message *** # # Revision 1.2 96/02/29 13:46:22 13:46:22 broguier (Dominique Broguiere) # add #define WriteHeaderInformation writeheaderinformation # * Revision 1.1 94/05/31 17:06:20 17:06:20 nic (nicnic) * Initial revision * * Revision 1.1 94/02/10 15:45:45 15:45:45 nic (nicnic) * Initial revision * */ /**********************************************************************/ /* */ /* File: nmb.h */ /* */ /* Function: Include File for nmbio */ /* */ /* Language: C - Microsoft 5.1 */ /* */ /* Author: R. Lemke (Mogli) MPIfR Bonn */ /* */ /* Created: 11. May 1990 Version: 1.0 */ /* Updated: DB:29-05-95 add Scan_coord in record structure */ /* */ /**********************************************************************/ /*--------------------------------------------------------------------*/ struct DATE { int Year; int Month; int Day; } ; struct CoorSys { float S; float O; float V; int Star; } ; struct CoorSysSec { float X; float Y; float Z; } ; /*--------------------------------------------------------------------*/ /* Header Structure */ /*--------------------------------------------------------------------*/ struct head { char PreHeader[20][80]; int ScanNumber; char SourceName[40]; float Frequency; int Gain; int Magnet; int Channels; int Phases; struct CoorSys Lambda; struct CoorSys Beta; struct CoorSys Azimuth; struct CoorSys Elevation; struct CoorSysSec SFC; struct CoorSysSec SPH; float sint; int sbas; float Epoch; float DAZM; int SRP[4]; int SDC; float Pressure; float Temperature; float Humidity; float Refraction; float NULA; float NULE; float ColStar; struct DATE Date; int WobblingDevice; /* 0=no, 1=wobbler */ float WobblingAmpli; /* wobbler throw in arcseconds */ float WobblingPeriod; /* in seconds */ int WobblingMode; /* 0=square, 1=triangular */ } ; /*--------------------------------------------------------------------*/ /* SubScan Strcuture. Sub Scans are dynamically allocated */ /*--------------------------------------------------------------------*/ struct subscans { int Number; float Epoch; float Time; struct subscans *next; }; struct nic_subscans { int Number; float Epoch; float Time; }; /*--------------------------------------------------------------------*/ /* Nic2MultiByte Data Structure. Prepared for 16 Phases. */ /*--------------------------------------------------------------------*/ struct nmbdata { float UT; float Azimuth; float Elevation; float Scan_coord[2]; float Data[100]; /* float REST[13]; for gcc this line is a waste of memory */ }; #define SEEK_CUR 1 #define GetNMBRecord getnmbrecord #define GetNMBRecord_old getnmbrecord_old #define GetSubScanInformation getsubscaninformation #define GetHeaderInformation getheaderinformation #define CopySubScanInformation copysubscaninformation #define FindNoOfSubScans findnoofsubscans #define WriteHeaderInformation writeheaderinformation #define WriteSubScan writesubscan #define WriteRawData writerawdata