#include "cddefines.h"#include "path.h"#include "cddrive.h"

Go to the source code of this file.
Functions | |
| long int | cdGetLineList (char chFile[], char ***chLabels, float **wl) |
| long int cdGetLineList | ( | char | chFile[], | |
| char *** | chLabels, | |||
| float ** | wl | |||
| ) |
* cdGetLineList will read in a list of emission line labels and wavelengths
* from a file. I use it for generating LOC grids.
* Two files (cdGetLineList and cdGetLineList) are included in the main data
* distribution and have list of strong emission lines for high and low density gas.
* other files can be created by the user.
*
* The first argument is the name of the file to read.
* It it is void ("") then the routine will open LineList_BLR.dat
*
* The next two arguments are pointers that will become arrays giving the
* list of labels and wavelengths. The routine will allocate the
* needed space, but the pointer is defined in the calling routine.
* in the calling routine the two variable should be declared like this:
* char **chLabels;
* float *wavelength;
* They would appear as follows in the call to the routine:
* chGetLineList("", &chLabels , &wavelength );
*
* cdGetLineList returns the number of lines it found in the file if it was successful,
* and -1 if it could not open the file.
*
Definition at line 11 of file cdgetlinelist.cpp.
References cdEXIT(), chDataPath, DEBUG_ENTRY, DEBUG_EXIT, FFmtRead(), FILENAME_PATH_LENGTH_2, INPUT_LINE_LENGTH, ioQQQ, lgcdInitCalled, lgDataPathSet, and MALLOC.
Referenced by ParsePunch(), and ParseTable().

1.5.5