Produced by IDL 7.1.1
Developer Documentation

./guide
offline.pro

Last modification date:
Wed Sep 28 13:27:12 2016

Routine Summary  2 routines

function project_exists(directory, project, type)

private

Used internally in offline If a data (fits) file or data directory containing at least one fits file exists in directory for the given project and type then this routine returns the path to either the fits file or the data directory found in directory.

procedure offline, project, [/acs], [/sp], [/vegas]

This is a convenient way to find the previously auto-filled data for the indicated project and backend in the standard online data location when used in Green Bank.

Routine Details

project_exists private

function project_exists(directory, project, type)

Used internally in offline If a data (fits) file or data directory containing at least one fits file exists in directory for the given project and type then this routine returns the path to either the fits file or the data directory found in directory. If it does not exist, this returns an empty string.

Returns
The found file or directory name or an empty string if nothing was found.

Parameters
directory
in, required
string
Directory to search in. Typically this is the the root directory where the online sdfits files are written for each project. Project directories are assumed to be a subdirectory of directory.
project
in, required
string
The project name to search for. The directory / must exist for this function to return any non-empty string.
type
in, required
string
The backend short-hand to use in constructing the filename to search for in the project directory. This searches for .raw..fits or a directory named .raw. that also contains at least one *.fits file.

offline

procedure offline, project, [/acs], [/sp], [/vegas]

This is a convenient way to find the previously auto-filled data for the indicated project and backend in the standard online data location when used in Green Bank.

Provide a project name and optionally the backend type (acs, vegas, or sp) to connect to file or directory in the online data directory (/home/sdfits) for that project and backend. Note that this file will not be treated as online, and will not be updated, just as filein does not do automatic updates. Continuum is not supported.

In addition to being less typing, using offline ensures that should the location of the automatically generated sdfits files move at any point, you don't have to know where they were moved to - the Green Bank installation of GBTIDL will always know where to find them.

Examples
    offline,'AGBT02A_028_05'  ; opens ACS data for this project
 
Version
$Id$

Parameters
project
in, required
string
The project name to use in constructing the filename'.

Keywords
acs
in, optional
boolean
the most recent spectrometer sdfits file will be connected. This is the default.
sp
in, optional
boolean
the most recent spectral processor sdfits file will be connected to.
vegas
in, optional
boolean
the most recent vegas sdfits directory will be connected.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:19 2016