NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Data > ClassBetaUsage
   Changes | Index | Contents | Search | Statistics | Jump to Topic

Using the CLASS Beta

  Main     Usage     Examples     Requests     Updates  


Getting Started

Before converting your GBT data to CLASS format, you may first want to make sure you can run class at GB.

On any Linux system in GB running under the bash shell, you can get CLASS started as follows:

export GAG_SYS=linux-intel
export GAG_ROOT=/home/apps/CLASS
export PATH="$GAG_ROOT/$GAG_SYS/bin:"$PATH
class

When you see the "LAS>" prompt, you are in CLASS. You can type help at any time for additional information. Type exit to end your session. For more details see UsingClass.


You should already have prepared a CLASS binary file for use within the program. Converting your raw GBT data to CLASS binary format must be done prior to launching the CLASS application. From any RedHat 9 machine, just type

gbt2class -help

on the command line to review the command line options.

Usage Instructions

     gbt2class [OPTIONS] PROJECT_DIR [OUTPUT_FILE]

gbt2class will reduce a GBT observation indicated by PROJECT_DIR into a
single CLASS binary file whose name is specified by OUTPUT_FILE.
If OUTPUT_FILE is not given, the project name is used for this purpose.

PROJECT_DIR must be a complete path to a GBT observation directory.

OUTPUT FILES
    A single CLASS binary file is generated.  Do not include extension name.  
    The default extension '.bur' is added automatically.


OPTIONS

   -mode=MODE
          The MODE can be only one of the following:

              avg - Each row is from one sampler, and is the spectrum of the
                    entire scan, averaged over all calibrated integrations
                    from that scan.

              cal - Each row is from one sampler, and is the spectrum of a
                    calibrated integration.

              raw - Each row is from one sampler, and is the spectrum of the
                    raw data of a single phase.

          If -mode is not given, cal mode is assumed.

    -quiet
          All non-error related messages are suppressed.

    -scans=SCAN_NUMBER_LIST
          This option can be used to specify which scans to target.  If not
          given, all scans are targeted.  This list is a comma-separated
          sequence of items, with no spaces.  An item can be a single integer,
          or a range specification.

          A range specification can have one of three forms:
            a:b     Scan numbers a through b, inclusive.
            a:      Scan numbers no less than a.
            :b      Scan numbers no greater than b.

          Scans are processed in user-listed order (per backend).  Example scan
          lists are:
            -scans=1,4,5:18
            -scans=2,18:40,5
            -scans=:24
            -scans=1,2,18:

    -frequencies
          gbt2class prompts user for rest frequency at the start of each IF path. 

Examples

All scans:
gbt2class /home/gbtdata/T_LBAND_26MAR03
Scan 24:
gbt2class /home/gbtdata/T_LBAND_26MAR03 -scans=24
Scans 6, 5, 8, and 7:
gbt2class /home/gbtdata/AGBT02A_038_01 -scans=6:5,8:7
Scan 24, with specified output file name:
gbt2class /home/gbtdata/T_LBAND_26MAR03 test -scans=24

-- NicoleRadziwill - 25 Feb 2004

Topic ClassBetaUsage . { Edit | Attach | Ref-By | Printable | Diffs | r1.9 | > | r1.8 | > | r1.7 | More }
Revision r1.9 - 20 Jul 2004 - 19:05 GMT - NicoleRadziwill Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.