Last change
on this file since 362 was 341, checked in by petry, 25 years ago |
First version of the Starfield Generator in this repository.
Fully functional version using the SKY2000 star catalog.
|
File size:
960 bytes
|
Line | |
---|
1 | #ifndef _PARAMETERS_H_
|
---|
2 | #define _PARAMETERS_H_
|
---|
3 |
|
---|
4 | #include <iostream.h>
|
---|
5 | #include <fstream.h>
|
---|
6 | #include <stdio.h>
|
---|
7 |
|
---|
8 | #ifndef PI
|
---|
9 | #define PI 3.1415927
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef PRINTWIDTH
|
---|
13 | #define PRINTWIDTH 12
|
---|
14 | #endif
|
---|
15 |
|
---|
16 |
|
---|
17 | class parameters {
|
---|
18 |
|
---|
19 | public:
|
---|
20 |
|
---|
21 | float ct_ra_h, ct_dec_deg, ct_ra_rad, ct_dec_rad;
|
---|
22 | float catalog_fov_deg; // Radius of the catalog section to be read in
|
---|
23 | float integtime_s; // integration time for the calculation of the number of photons
|
---|
24 | float mirr_radius_m; // mirror radius inside which photons are generated
|
---|
25 | char datapath[160]; // path inside which the catalog and extinction files are found
|
---|
26 | int verbose; // verbose flag for switching on/off diagnostic output
|
---|
27 |
|
---|
28 | parameters(); // constructor (put invalid values)
|
---|
29 | int readparameters(ifstream *in); // read the parameter file
|
---|
30 | void usage(ostream *out); // write a sample parameter file to the stream
|
---|
31 | int printparameters(ostream *out); // write the parameters to the stream
|
---|
32 |
|
---|
33 | };
|
---|
34 |
|
---|
35 | #endif
|
---|
36 |
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.