-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpost_hst.h
131 lines (115 loc) · 4 KB
/
post_hst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// hskymon from HDS OPE file Editor
// New SkyMonitor for Subaru Gen2
// post_hst.h --- POST body for FCDB access to HST web search
//
// 2017.11.15 A.Tajitsu
typedef struct _PARAMhstinst PARAMhstinst;
struct _PARAMhstinst{
gchar *name;
};
#define NUM_HST_IMAGE 8
#define NUM_HST_SPEC 8
#define NUM_HST_OTHER 2
typedef struct _HST_INST_Entry HST_INST_Entry;
struct _HST_INST_Entry{
gchar *name;
gchar *prm;
gboolean all;
gboolean spec;
gboolean image;
gboolean active;
};
static const HST_INST_Entry HST_inst[]={
{"ACS", "acs", TRUE, TRUE, TRUE, TRUE},
{"COS", "cos", TRUE, TRUE, TRUE, TRUE},
{"FGS", "fgs", TRUE, FALSE, FALSE, TRUE},
{"STIS", "stis", TRUE, TRUE, TRUE, TRUE},
{"WFC3", "wfc3", TRUE, TRUE, TRUE, TRUE},
{"FOC", "foc", TRUE, TRUE, TRUE, FALSE},
{"FOS", "fos", TRUE, TRUE, FALSE, FALSE},
{"GHRS", "ghrs", TRUE, TRUE, FALSE, FALSE},
{"HSP", "hsp", TRUE, FALSE, FALSE, FALSE},
{"NICMOS", "nicmos", TRUE, TRUE, TRUE, FALSE},
{"WFPC1", "wfpc" , TRUE, FALSE, TRUE, FALSE},
{"WFPC2", "wfpc2", TRUE, FALSE, TRUE, FALSE}
};
enum
{
HST_INST_ACS,
HST_INST_COS,
HST_INST_FGS,
HST_INST_STIS,
HST_INST_WFC3,
HST_INST_FOC,
HST_INST_FOS,
HST_INST_GHRS,
HST_INST_HSP,
HST_INST_NICMOS,
HST_INST_WFPC1,
HST_INST_WFPC2,
NUM_HST_INST
};
// HST Obs mode
typedef struct _HST_MODE_Entry HST_MODE_Entry;
struct _HST_MODE_Entry{
gchar *name;
gchar *prm;
};
static const HST_MODE_Entry HST_mode[]={
{"All", "all"},
{"Spectroscopy", "spectrum"},
{"Imaging", "image"}
};
enum
{
HST_MODE_ALL,
HST_MODE_SPEC,
HST_MODE_IMAGE,
NUM_HST_MODE
};
// HST Obs mode for TRDB
enum
{
TRDB_HST_MODE_OTHER,
TRDB_HST_MODE_SPEC,
TRDB_HST_MODE_IMAGE,
NUM_TRDB_HST_MODE
};
static const PARAMpost hst_post[] = {
{POST_CONST, "action", "Search"},
{POST_NULL, "target", NULL},
{POST_CONST, "resolver", "Don%27t+Resolve"},
{POST_INPUT, "radius", NULL},
{POST_INPUT, "ra", NULL},
{POST_INPUT, "dec", NULL},
{POST_CONST, "equinox", "J2000"},
{POST_INST1, "image%5B%5D", NULL},
{POST_INST2, "spectrum%5B%5D", NULL},
{POST_INST3, "other%5B%5D", NULL},
{POST_NULL, "sci_start_time", NULL},
{POST_NULL, "sci_actual_duration", NULL},
{POST_NULL, "sci_pep_id", NULL},
{POST_NULL, "sci_release_date", NULL},
{POST_NULL, "sci_data_set_name", NULL},
{POST_NULL, "sci_spec_1234", NULL},
{POST_NULL, "sci_obset_id", NULL},
{POST_NULL, "sci_archive_date", NULL},
{POST_NULL, "sci_target_descrip", NULL},
{POST_NULL, "sci_aper_1234", NULL},
{POST_CONST, "sci_aec%5B%5D", "S"},
{POST_NULL, "sci_pi_last_name", NULL},
{POST_CONST, "extra_column_name_1", "sci_data_set_name"},
{POST_NULL, "extra_column_value_1", NULL},
{POST_CONST, "extra_column_name_2", "sci_data_set_name"},
{POST_NULL, "extra_column_value_2", NULL},
{POST_CONST, "selectedColumnsCsv", "Mark%2Csci_data_set_name%2Csci_targname%2Csci_ra%2Csci_dec%2Csci_refnum%2Csci_start_time%2Csci_stop_time%2Csci_actual_duration%2Csci_instrume%2Csci_aper_1234%2Csci_spec_1234%2Csci_central_wavelength%2Csci_pep_id%2Csci_release_date%2Csci_preview_name%2Cscp_scan_type%2Csci_hlsp%2Cang_sep"},
{POST_CONST, "selectedColumnsList%5B%5D", "sci_central_wavelength"},
{POST_CONST, "availableColumns", "Mark"},
{POST_CONST, "ordercolumn1", "ang_sep"},
{POST_CONST, "ordercolumn2", "sci_targname"},
{POST_CONST, "ordercolumn3", "sci_data_set_name"},
{POST_CONST, "coordformat", "dec"},
{POST_INPUT, "outputformat", NULL}, // VOTable or HTML_Table
{POST_CONST, "max_records", "5001"},
{POST_CONST, "max_rpp", "5000"},
{POST_NULL, NULL, NULL}};