Instructions for prepoint, ascii databases, csv merge

Wherein it is explained how to create the ascii databases used for generating the GBT pointing model.

Summary of steps

  • Run prepoint to produce the "ast" file.
  • Run "makeascdb" to produce the "airTemp", "refract", "strucTemp", and "weather" files.
  • Obtain the "FitData" file from running matlab script "mainFitAstroData"
  • Merge all these files into a master "csv" file by running "csvmerge"
  • The "csvmerge" file then becomes input to the matlab scripts for deriving a new pointing model.


The gory details ---


    MakeascDB

    Makeascdb is a python script in fghigo's area. One can probably use it from any login by first typing the following commands (assuming a bash shell):

    source /home/sparrow/release/sparrow.bash
    export PYTHONPATH=$PYTHONPATH:/users/fghigo/GBT/ptcs/src

    Typical Commands
    python
    >>> from pointdb import * 
    >>> scanlist = range(45,455)
    >>> makeascdb('TPTCSPNT_070921', '/home/gbtdata/', scanlist)
    

    The arguments to makeascdb are:
    • 1. the project directory name.
    • 2. the path to the project directory.
    • 3. the list of scan numbers to be processed.

    Note that the scanlist is not optional. If you want to use all scans, you must set the scan list to the whole range of scans. Note also that the "range" function gives a set of numbers that does not include the 2nd argument. i.e., "range(45,455)" means scan numbers from 45 through 454.

    The files that are created will be put in whatever directory you happen to be in when you run the command.

    Makeascdb reads the following files:
    • ScanLog.fits, the GO and Antenna FITS files from the project directory.
    • Weather log data from /home/gbtlogs/Weather-Weather2-weather2/
    • Air temperature log data from /home/gbtlogs/AntennaCharacterization-AirTemperature-AirTemp/
    • Structural temperatures from /home/gbtlogs/AntennaCharacterization-StructureTemperature-StructureTemp/

    The following files are output:
    • [projectcode]_airTemp_py.out
    • [projectcode]_strucTemp_py.out
    • [projectcode]_refract_py.out
    • [projectcode]_weather_py.out
    • [projectcode]_focus_dynamic.txt


    CSVMerge

    CSVmerge is a python script in fghigo's area. There are numerous things that can be done to make this more generally useful, but at the moment it is assumed that:
    • The "FitData" file is in the current directory.
    • The "experiment code" file is also in the current directory (this file associates the project type with the project name).
    • All the other input files (from prepoint and makeascdb) are in a directory which I will call the "prepoint_dir".
    • The files are named according to the conventions mentioned in the above sections.

    To set up the environment (bash shell):
    source /home/sparrow/release/sparrow.bash
    export PYTHONPATH=$PYTHONPATH:/users/fghigo/GBT/ptcs/bigdb

    Typical Commands
    python
    >>> from csvmerge import * 
    >>> makecsv('FitData_newTrack11datasets.txt', '/home/groups/ptcs/data/pntdata/')
    
    • arg 1: name of FitData file
    • arg 2: path to directory that has prepoint and ascii database files.
    • optional args : "minelev" to give a minimum cutoff in elevation, and "maxwind" to give a max cutoff in wind speed.

    More generally, the call to makecsv is:
    makecsv( FitDataFile, prepoint_dir, minelev=elevlowlimit, maxwind=windupperlimit)

    It makes 2 output files, one for the Az/El pointing data ("csvfile_azel.csv") and one for the focus data ("csvfile_focus.csv").


--
FrankGhigo - 28 Feb 2008
Topic revision: r4 - 2010-09-08, FrankGhigo
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback