Linuxpops  3.01.04
Spectral Anaysis Package for Single Dish Data
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
env_help.c
Go to the documentation of this file.
1 #ifndef NGS_HELP_H
2 #define NGS_HELP_H
3 
4 
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <strings.h>
8 #include <string.h>
9 
10 
12  char *type;
13  char *variable;
14  char *help;
15 };
16 
17 
19  { "char", "title[80]", " Environment Title: User define-able" },
20  { "char", "filename[256]", " Current Selected datafile" },
21  { "char", "gfilename[256]", " Current Selected gains datafile" },
22  { "char", "source[64]", " Currently Selected Source" },
23  { "char", "backend[16]", " Spectrometer/Continuum Backend Name: i.e. F1M-HU" },
24  { "char", "savefile[256]", " Save filename" },
25  { "char", "userfile[256]", " User filename Used by 'print /w' command" },
26  { "int", "accum", " If True, We are in the process of accumulating scans" },
27  { "int", "accumcount", " Total number of scans last accumulated" },
28  { "int", "accumreset", " If True, Next call to the accum function resets all registers" },
29  { "int", "acc_plot_select_x", " Accumm plot x axis: 'num', 'el', 'ut', 'scannum'" },
30  { "int", "acc_plot_select_y", " Accumm plot y axis: 'sig', 'sky', 'smror', 'tsys', 'tastar', 'tr', 'jansky'" },
31  { "int", "acount", " Total number of items in stack" },
32  { "int", "allow_five_pt", " Allow five point centers to be accumulated" },
33  { "int", "ashift", " # of channels to shift spectra - or +" },
34  { "int", "autobad", " Automatically remove bad channels when encountered" },
35  { "int", "autotau", " If True, Process SPTIP's as you encounter them during accum" },
36  { "int", "badchanepoch", " Epoch of the 'fixed' bad channel array" },
37  { "int", "badchanshow", " If True, Place markers on defined bad channels" },
38  { "int", "badchans[MAX_BAD_CHANS]", " Array of flagged bad channels" },
39  { "int", "baselines[MAX_BASELINES][2]", " Defined baseline regions" },
40  { "int", "bdrop", " # of channels to drop from beginning of spectral plot" },
41  { "int", "bkmatch", " Backend matching mode: 0 = FEED, 1 = RESOLUTION, 2 = NAME" },
42  { "int", "bleadtrail", " 0 = straight, 1 = polynomial fitting of leading and trailing channels" },
43  { "int", "bmark", " If True, show baseline region boxes on plot" },
44  { "int", "bshow", " If True, Show the baseline fit on plot" },
45  { "int", "bsmoothing", " Linear vs polynomial intep between baseline regions" },
46  { "int", "calmode", " Cal Mode: 0 = NONE, 1 = CALSCALE, 2 = BEAMEFF, 3 = TELE_EFF" },
47  { "int", "check_bkname", " " },
48  { "int", "check_date", " If True, Use the Date in the search criteria" },
49  { "int", "check_feed", " If True, Use the IF Feed in the search criteria" },
50  { "int", "check_freq", " If True, Use the Frequency in the search criteria" },
51  { "int", "check_scans", " If True, Use the Actual Scan Numbers in the search criteria" },
52  { "int", "check_source", " If True, Use the Source Name in the search criteria" },
53  { "int", "currentImage", " Current image header index" },
54  { "int", "dobadchan", " If True, smooth over defined bad channels" },
55  { "int", "dobaseline", " if True, remove computed baseline" },
56  { "int", "doing_fives", " It True, analyse 5 point centers like a seq" },
57  { "int", "dospike", " If True, Locate and remove and spikes in data: Experimental" },
58  { "int", "edrop", " Amount of channels to remove from end of plot" },
59  { "int", "elgain", " If True, Compute and use the defined Elevation Gain Terms" },
60  { "int", "feed", " Which feed we are processing at and given time" },
61  { "int", "glength", " The number of data points to include in Gaussian fitting" },
62  { "int", "gridmode", " Plot window grid mode: 0 = NONE, 1 = X_ONLY, 2 = Y_ONLY, 3 = FULL" },
63  { "int", "ignoremapoff", " If True, Ignore small mapping offsets" },
64  { "int", "ignorepos", " If True, ignore RA, Dec & Vel in accum function: Think Planets" },
65  { "int", "invert", " If True, invert the phases of continuum data" },
66  { "int", "issmt", " If True, data file is from SMT" },
67  { "int", "usesat", " Display Strings And Things if True" },
68  { "int", "last_scan_count", " # of scans accumulated in last 'accum'" },
69  { "int", "loopdelay1", " Delay for any background loops" },
70  { "int", "loopdelay2", " Delay for any foreground loops" },
71  { "int", "mapangle", " Preliminary Grid Map plotting angles" },
72  { "int", "mapbaselines", " # of cells on ends of row used for baselines neg # for center cells 0 to skip altogether" },
73  { "int", "markers", " # of filterbank channels per card: see mshow" },
74  { "int", "map_w", " Grid map width in cells" },
75  { "int", "map_h", " Grid map height in cells" },
76  { "int", "mode", " 1 = MODE_CONT, 2 = MODE_SPEC, 3 = MODE_OTF" },
77  { "int", "mshow", " If True, draw markers on spectral plot show filter card breaks" },
78  { "int", "nbeff", " # of columns to printout during beam eff function" },
79  { "int", "nbox", " # of channels to use in the boxcar function" },
80  { "int", "nbshape", " # of channels to smooth for bshape command" },
81  { "int", "nfit", " # of parameters for curve fitting 1 - 10" },
82  { "int", "nignored", " # of scans in the ignore-scan array" },
83  { "int", "nsave", " Current selected nsave value: Used for fetching saved scans" },
84  { "int", "nspline", " # of terms to use in bspline function" },
85  { "int", "numofscans", " # of scans in currently selected data file" },
86  { "int", "ons", " If True, display the 'on' phases in continuum plot" },
87  { "int", "otf_cols", " " },
88  { "int", "otf_rows", " " },
89  { "int", "otf_map_xcell", " " },
90  { "int", "otf_map_ycell", " " },
91  { "int", "otf_bint_chan", " Beginning integration channel/region" },
92  { "int", "otf_eint_chan", " Ending integration channel/region" },
93  { "int", "otf_3d_bchan", " Beginning channel of a 3d data cube" },
94  { "int", "otf_3d_echan", " Ending channel of a 3d data cube" },
95  { "int", "otf_3d_interp", " # of planes to create b/t channels in a 3d data cube" },
96  { "int", "otf_movie_bchan", " Beginning channel of 'vel' run" },
97  { "int", "otf_movie_echan", " Ending channel of 'vel' run" },
98  { "int", "otf_movie_nchan", " # of channels to avg for 'vel' run" },
99  { "int", "otf_cutoff", " % of the bottom-end of data to cut off" },
100  { "int", "otf_baselines", " Remove baselines from individual spectral" },
101  { "int", "otf_color", " gray, pseudo, flame1, flame2, flame3, flame4, flame5, flame6" },
102  { "int", "otf_ephem_obj", " If non-zero, Ignore source Ra & Dec when gridding" },
103  { "int", "otf_single_spec", " Which Spectral Channel to plot in lower left window" },
104  { "int", "otf_if_choice", " Which IF to process" },
105  { "int", "otf_load_choice", " Preview, fast, step" },
106  { "int", "otf_single_bin", " # of channels to bin for 'otf_single_spec'" },
107  { "int", "otf_ignore_color", " If true, ignore changes in color slow internet helper" },
108  { "int", "otf_ignore_repaint", " If true, ignore repaints of grid between tile loads" },
109  { "int", "otf_show_beam_size", " If True, place a beam size circle on plot" },
110  { "int", "otf_chan_map_cent", " OTF Channel Map Center Channel" },
111  { "int", "otf_chan_map_cols", " OTF Channel Map # of Columns" },
112  { "int", "otf_chan_map_rows", " OTF Channel Map # of Rows" },
113  { "int", "otf_chan_map_avg", " OTF Channel Map # os Chans to Avg" },
114  { "int", "otf_baseline_order", " The 'order' of baseline removal" },
115  { "int", "otf_show_regions", " Show region outlines, if True & loaded" },
116  { "int", "otf_noint", " # of channels in OTF bandpass" },
117  { "int", "otf_spare_ints[22]", " " },
118  { "int", "overwrite", " If true, then save will overwrite an existing nsave" },
119  { "int", "peakChan", " Channel number with the peak intensity" },
120  { "int", "plotstyle", " Plot Style: 0 = HISTOGRAM, 1 = LINES, 2 = POINTS" },
121  { "int", "plottmb", " If true, plot the expected Tmb too 0 no plot, 1 = LSB, 2 USB" },
122  { "int", "plotwin", " Currently selected Gunplot Window" },
123  { "int", "procspec", " If True, Further processing needed: think TP Scans" },
124  { "int", "read_dir", " 0 = read data files from back to front [default], 1 = front to back" },
125  { "int", "rm_fit_data", " If True, remove the bplot data from yplot: Experimental" },
126  { "int", "shift_allow", " If True, allow automatic freq shifting of spectra as encountered" },
127  { "int", "split_phases", " If True, do not average ON and OFF five points: Experimental" },
128  { "int", "stackdone", " We have reached the end of the stack" },
129  { "int", "stackindx", " Current stack pointer" },
130  { "int", "strictsb", " If True, Avoid averaging USB and LSB continuum" },
131  { "int", "used", " True if this environment is used" },
132  { "int", "usegslgauss", " If True, use the gsl Gaussian fitting, else use unipops version" },
133  { "int", "xdelay", " Amount of time to delay between gnuplot calls uSec" },
134  { "int", "x1mode", " Bottom X-Axis of Spectral plot: 0 = FREQ, 1 = VEL, 2 = CHAN" },
135  { "int", "x2mode", " Top X-Axis of Spectral plot: 0 = FREQ, 1 = VEL, 2 = CHAN" },
136  { "int", "yaxis_scale", " 0 = LINEAR_PLOT, 1 = LOG_PLOT" },
137  { "int", "yscale", " 0 = Y_AUTO_SCALE, 1 = Y_FIXED_SCALE" },
138  { "int", "zline", " If True, Show the zero line in spectral plots" },
139  { "int", "btokens", " # of batch tokens in current command" },
140  { "int", "displaymode", " Night mode vs Day mode may not be fully synced yet" },
141  { "int", "sf_fitcenter", " User setable chan # of spectral line center if not in center" },
142  { "int", "sf_start", " User selectable starting sample for Spectral Line Focus" },
143  { "int", "sf_end", " User selectable Ending sample for Spectral Line Focus" },
144  { "int", "sf_bchans", " User supplied number of baseline channels to use on the ends" },
145  { "int", "spare_ints[58]", " Was 62 June 2021" },
146  { "double", "accumtr", " Running accum Tr" },
147  { "double", "accumtastar", " Running accum TaStar" },
148  { "double", "apperatureeff", " Resulting Aperture efficiency" },
149  { "double", "avgEl", " Average Elevation of latest accum" },
150  { "double", "beam_eff", " Computed Beam Eff" },
151  { "double", "bkres", " backend resolution When searching using BKMATCH_RESOLUTION" },
152  { "double", "bm_eff[MAX_BEAMS]", " Resulting beam efficiency" },
153  { "double", "bp_avg", " Average temp of the bandpass (bdrop - edrop)" },
154  { "double", "bscan", " Beginning scan range during searching" },
155  { "double", "cal_scale", " Continuum calibration scale when in CALMODE_CALSCALE" },
156  { "double", "ccur", " Last mouse click channel" },
157  { "double", "cnterr", " Center Error term for last Gaussian fit" },
158  { "double", "curScan", " Last scan loaded" },
159  { "double", "datamax", " Largest value in h0->data array" },
160  { "double", "datamin", " Smallest value in h0->data array" },
161  { "double", "date", " Date used in searching" },
162  { "double", "dfreq", " Delta freq tolerance used during searching" },
163  { "double", "dvel", " Delta Velocity tolerance" },
164  { "double", "escan", " Ending scan range during searching" },
165  { "double", "expectedflux", " User supplied Expected Source Janskys" },
166  { "double", "expectedtmb", " User supplied Expected Source T-main-beam" },
167  { "double", "fcur", " Last mouse click freq" },
168  { "double", "fft_xb", " FFT X-axis Start" },
169  { "double", "fft_xe", " FFT X-Axis End" },
170  { "double", "sf_fitmhz", " User defined Width of Spectral Focus/Five-pt fitting (MHz)" },
171  { "double", "fittedtau", " Last fitted tau from SPTIP" },
172  { "double", "focus_fit_1", " Store results of spec focus here" },
173  { "double", "focus_fit_2", " " },
174  { "double", "freq", " Rest Freq used during Searching" },
175  { "double", "gaussPeak", " Peak Results of Gaussian Fit" },
176  { "double", "gaussCenter", " Center Results of Gaussian Fit" },
177  { "double", "gaussHP", " Width Results of Gaussian Fit" },
178  { "double", "gaussSum", " Area under the Gaussian Results" },
179  { "double", "hghterr", " Height Error term for last Gaussian fit" },
180  { "double", "hwdc", " Fractional time of backend integration i.e. 0.90 for filters" },
181  { "double", "hwerr", " Width Error term for last Gaussian fit" },
182  { "double", "if_feed", " [1, 2, 3 or 4]: requested feed: 0.01, 0.02, 0.03, 0.04" },
183  { "double", "ignoredscans[MAX_IGNORED]", " " },
184  { "double", "intercept", " Last Intercept from the baseline operation" },
185  { "double", "jfact", " Currently used Jk/K factor" },
186  { "double", "jupiter_tmb", " Jupiter Temperature-Main-Beam" },
187  { "double", "kj_factor", " If Non Zero, use this value for Kelvin to Jansky Conversion" },
188  { "double", "elgain_term1", " User input elevation gain curve term 1" },
189  { "double", "elgain_term2", " User input elevation gain curve term 2" },
190  { "double", "elgain_term3", " User input elevation gain curve term 3" },
191  { "double", "elgain_term4", " User input elevation gain curve term 4" },
192  { "double", "elgain_term5", " User input elevation gain curve term 5" },
193  { "double", "lowerdb", " Lowest fabs(map_value) allowed when using decibel map plot" },
194  { "double", "mantau0", " User supplied tau0 value: overrides autotau" },
195  { "double", "map_angle[2]", " Grid Map angle used for plotting" },
196  { "double", "mars_tmb", " Mars Temperature-Main-Beam" },
197  { "double", "mercury_tmb", " Mercury Temperature-Main-Beam: filled in by 'plan' command" },
198  { "double", "neptune_tmb", " Neptune Temperature-Main-Beam" },
199  { "double", "newres", " New resolution to convert data to. Used by chngres" },
200  { "double", "oob_val", " Out Of Bounds Value Set OOB values to this else the avg is used" },
201  { "double", "otf_nyquistra", " Size of individual cells in RA" },
202  { "double", "otf_nyquistdec", " Size of individual cells in Dec" },
203  { "double", "otf_map_ra", " Center of Map in RA" },
204  { "double", "otf_map_dec", " Center of Map in Dec" },
205  { "double", "otf_map_xsize", " Size of map in RA" },
206  { "double", "otf_map_ysize", " Size of map in Dec" },
207  { "double", "otf_grid_scale", " Magnification scale of plot" },
208  { "double", "otf_gamma", " Map Gamma correction" },
209  { "double", "otf_size_factor", " Scale factor for Automatic OTF Map creation" },
210  { "double", "otf_delay", " Delay used for velocity movie" },
211  { "double", "otf_3d_vrange", " Scaling factor for Vel Range: nominally 1.0" },
212  { "double", "otf_3d_urms", " Max rms allowed in 3d Cube output" },
213  { "double", "otf_map_velocity", " Velocity of OTF Map" },
214  { "double", "otf_map_restfreq", " Rest Freq of OTF Map" },
215  { "double", "otf_map_freqres", " Backend Resolution of OTF Map" },
216  { "double", "otf_zrange_factor", " The factor to multiply the z-axis by if non-zero" },
217  { "double", "otf_beam_ra", " Where to place the beam-size circle on the map" },
218  { "double", "otf_beam_dec", " " },
219  { "double", "otf_spare_doubles[22]", " " },
220  { "double", "paperw", " Width of plot window 0 == normal 800 pixels" },
221  { "double", "paperh", " Height of plot window 0 == normal 600 pixels" },
222  { "double", "ptime", " Time of day used in the 'planets' program 0.0 - 23.99" },
223  { "double", "p2p", " Computed Peak to Peak" },
224  { "double", "rejections[MAX_BEAMS]", " Currently receiver rejections" },
225  { "double", "rms", " Last rms value over the baseline region" },
226  { "double", "rst", " Results of the latest calculation" },
227  { "double", "saturn_tmb", " Saturn Temperature-Main-Beam" },
228  { "double", "slope", " Last slope from the baseline operation" },
229  { "double", "spares[5]", " Used to be User input elevation SMT gain curve terms" },
230  { "double", "stackscan", " Current scan pointed to by stack pointer" },
231  { "double", "tcallimit", " Tcal Upper limit for Spectral/Cont accum." },
232  { "double", "tcur", " Last mouse click temperature" },
233  { "double", "theta_mb", " Manual Theta Main Beam in arcsecs >0.0 overrides computed value" },
234  { "double", "totalweight", " Weighted average of accumulations" },
235  { "double", "trms", " Theoretical RMS" },
236  { "double", "tsyslimit", " Tsys Upper limit for Spectral/Cont accum." },
237  { "double", "uranus_tmb", " Uranus Temperature-Main-Beam" },
238  { "double", "vcur", " Last mouse click velocity" },
239  { "double", "venus_tmb", " Venus Temperature-Main-Beam" },
240  { "double", "xplotmin", " Xgraphics Computed X-Plot Range Min" },
241  { "double", "xplotmax", " Xgraphics Computed X-Plot Range Max" },
242  { "double", "yplotmin", " Xgraphics Computed Y-Plot Range Min" },
243  { "double", "yplotmax", " Xgraphics Computed Y-Plot Range Max" },
244  { "double", "ylower", " User set lower y scale for plotting" },
245  { "double", "yupper", " User set upper y scale for plotting" },
246  { "double", "fs", " Freq-switch Signal Offset" },
247  { "double", "fr", " Freq-switch Referance Offset" },
248  { "double", "gmap_zmin", " Z-Axis plotting min used if either is non-zero" },
249  { "double", "gmap_zmax", " Z-Axis plotting max used if either is non-zero" },
250  { "double", "gmap_gamma", " Grid map Gamma Applied if non-zero" },
251  { "double", "dish_size", " User defined dish_size and sub-reflector taper dB's" },
252  { "double", "taper", " Used if value > 0.0" },
253  { "double", "focus_lower_limit", " If non-zero, Focus Tmb must be higher than this to qualify as good" },
254  { "double", "focus_cnterr_limit", " If non-zero, Gaussian Center Error must be less than this to qualify as good" },
255  { "double", "focus_freq_upper", " If non-zero, then limit focus fit to these limits use with 'freq *'" },
256  { "double", "focus_freq_lower", " If non-zero, then limit focus fit to these limits use with 'freq *'" },
257  { "double", "focus_center_diff", " If non-zero, focus fit must be no more that this amount different then input" },
258  { "double", "nyquist", " Nyquist sample size based on rest freq" },
259  { "double", "spare_doubles[51]", " " },
260 };
261 #define MAX_NGS_HELP 241
262 
263 
264 int fetchNGSHelp(name, buf)
265 char *name, *buf;
266 {
267  int i;
268 
269  for(i=0;i<MAX_NGS_HELP;i++)
270  {
271  if(!strncmp(ngs_help[i].variable, name, strlen(name)))
272  {
273  strcpy(buf, ngs_help[i].help);
274  return(0);
275  }
276  }
277 
278  strcpy(buf, " ");
279 
280  return(1);
281 }
282 
283 
284 #endif
285 
286 
char * variable
Definition: env_help.c:13
#define MAX_NGS_HELP
Definition: env_help.c:261
int fetchNGSHelp(char *name, char *buf)
Definition: env_help.c:264
struct NGS_HELP_STRINGS ngs_help[]
Definition: env_help.c:18