#include "cddefines.h"#include "cddrive.h"Go to the source code of this file.
Functions | |
| long int | cdGetLineList (const char chFile[], char ***chLabels, realnum **wl) |
| long int cdGetLineList | ( | const char | chFile[], | |
| char *** | chLabels, | |||
| realnum ** | 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;
* realnum *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 9 of file cdgetlinelist.cpp.
References AS_LOCAL_DATA_TRY, cdEXIT, DEBUG_ENTRY, FFmtRead(), FILENAME_PATH_LENGTH_2, INPUT_LINE_LENGTH, ioQQQ, lgcdInitCalled, MALLOC, open_data(), and read_whole_line().
Referenced by ParseSave(), and ParseTable().
1.6.1