67 st_report(
"Resetting Ending Scan Number to 10000.0");
108 strncpy(source, p->object, 16);
116 printf(
"Reject Name\n");
131 printf(
"Reject Scan Range\n");
146 printf(
"Checking %.4f vs %.4f\n", p->utdate,
env->
date);
153 printf(
"Reject %d Date: %.4f\n", ret, p->utdate);
169 printf(
"Reject Backend\n");
184 printf(
"Reject Freq\n");
190 freq = p->restfreq / 1000.0;
197 printf(
"Reject Freq\n");
211 if(p->sideband ==
LSB)
213 if(feed == 2 || feed == 4)
217 printf(
"Reject Strict\n");
226 if((
int)p->sideband ==
USB)
228 if(feed == 1 || feed == 3)
232 printf(
"Reject Strict\n");
244 printf(
"Passed All Preliminary Checks\n");
255 st_fail(
"Backend Match NOT set to FEED; Use 'accum'");
699 st_warn(
"No Scan Loaded for showPhases; Use 'get scan#'");
719 st_warn(
"No Scan loaded; Use 'get scan#'");
733 st_warn(
"No Scan loaded; Use 'get scan#'");
773 for(i=0;i<noint;i++,f1++)
792 st_fail(
"Failure: %d in changeRes() function", ret);
822 st_warn(
"No Scan loaded; Use 'get scan#'");
863 if(strncmp(p->
obsmode,
"LINEBSP", 7) &&
864 strncmp(p->
obsmode,
"LINEPS", 6) &&
865 strncmp(p->
obsmode,
"LINEFS", 6) &&
866 strncmp(p->
obsmode,
"LINETPON", 8) &&
867 strncmp(p->
obsmode,
"LINEAPS", 7))
877 sprintf(tbuf,
"%.2f", p->
scan);
880 if(strstr(tbuf,
".01") || strstr(tbuf,
".03") || strstr(tbuf,
".05") || strstr(tbuf,
".11"))
911 if(strncmp(p->
obsmode,
"LINEBSP", 7) &&
912 strncmp(p->
obsmode,
"LINEPS", 6) &&
913 strncmp(p->
obsmode,
"LINEFS", 6) &&
914 strncmp(p->
obsmode,
"LINETOPN", 8) &&
915 strncmp(p->
obsmode,
"LINEAPS", 7))
925 sprintf(tbuf,
"%.2f", p->
scan);
928 if(strstr(tbuf,
".01") || strstr(tbuf,
".05") || strstr(tbuf,
".11"))
951 char tbuf[256], cmdBuf[256], fname[256];
972 sprintf(fname,
"sequence_splits.csv");
974 st_report(
"Removing any previous '%s' file", fname);
975 sprintf(cmdBuf,
"rm -f %s", fname);
978 fp = fopen(fname,
"a");
983 fprintf(fp,
"# Scan, Freq, EG, mbeam, mCnt, mTmb, pbeam, pCnt, pTmb, Ratio\n");
998 if(strncmp(p->
obsmode,
"CONTSEQ", 7) && strncmp(p->
obsmode,
"CONTMAP", 7) && strncmp(p->
obsmode,
"CONTOPT", 7))
1006 if(strncmp(p->
obsmode,
"LINEOTF", 7))
1013 if(strncmp(p->
obsmode,
"LINEBSP", 7) &&
1014 strncmp(p->
obsmode,
"LINEPS", 6) &&
1015 strncmp(p->
obsmode,
"LINEFS", 6) &&
1016 strncmp(p->
obsmode,
"LINETPON", 8) &&
1017 strncmp(p->
obsmode,
"LINEAPS", 7))
1032 st_fail(
"Must start OTF process first");
1036 sprintf(tbuf,
"scan_done %.0f", p->
scan);
1052 sprintf(tbuf,
"ignore %d %.2f", ver, p->
scan);
1087 sprintf(cmdBuf,
"data /s");
1098 st_print(
"Control-C hit; Stoping\n");
1165 "\n Source Freq Date UT Scan El Mode Tsys Tcal \
1166 Tamb %Hum BP Dewpt mmH2O tHum Refrac Tau0\n\n");
1172 if(strncmp(p->
obsmode,
"CONTSEQ", 7))
1182 " %10.10s %10.6f %10.4f %6.2f %7.2f %5.1f %8.8s %3.0f %3.0f\
1183 %5.1f %3.0f %3.0f %5.1f %5.1f %5.1f %4.1f %5.3f\n",
1211 st_warn(
"No scan to plot; Use the 'get or gget' command first");
1222 st_report(
"Processing Continuum Sequence, Scan %.2f", fscan);
1228 st_report(
"Processing Continuum Az-El Grid, Scan %.2f", fscan);
1234 st_report(
"Processing Continuum Five-Point, Scan %.2f", fscan);
1240 st_report(
"Processing Continuum Five-Point, Scan %.2f", fscan);
1246 st_report(
"Processing Continuum Focus, Scan %.2f", fscan);
1252 st_report(
"Processing Continuum NS-Focus, Scan %.2f", fscan);
1258 st_report(
"Processing Continuum EW-Focus, Scan %.2f", fscan);
1264 st_report(
"Processing Continuum SPTIP, Scan %.2f", fscan);
1270 st_report(
"Processing Continuum CONTOPT, Scan %.2f", fscan);
1283 st_report(
"Processing Line APS, Scan %.2f", fscan);
1289 st_report(
"Processing Line APM, Scan %.2f", fscan);
1295 st_report(
"Processing Line BSP, Scan %.2f", fscan);
1301 st_report(
"Processing Line PS, Scan %.2f", fscan);
1307 st_report(
"Processing Line FS, Scan %.2f", fscan);
1313 st_report(
"Processing Line PCAL, Scan %.2f", fscan);
1319 st_report(
"Processing Line TPON, Scan %.2f", fscan);
1325 st_report(
"Processing Line TPMF, Scan %.2f", fscan);
1338 st_report(
"Processing Line PCAL, Scan %.2f", fscan);
1344 st_report(
"Processing Line TPMF, Scan %.2f", fscan);
1350 st_report(
"Processing Line OTF, Scan %.2f", fscan);
1364 double extra = 0.0, s;
1369 st_fail(
"No gainsfile defined");
1389 s = (double)ret+d+extra;
1397 s = (double)ret+d+extra;
1405 s = (double)ret+d+extra;
1412 s = (double)ret+d+extra;
1417 sprintf(tbuf,
"gget %.2f; show", s);
1424 st_fail(
"No gain scan found");
1435 return(
doCal(0.01));
1440 return(
doCal(0.11));
1445 return(
doCal(0.02));
1450 return(
doCal(0.12));
1455 return(
doCal(0.03));
1460 return(
doCal(0.04));
1469 double last_scan = 0.0;
1480 last_scan = round(p->
scan);
1485 last_scan = round(p->
scan);
1491 sprintf(tbuf,
"get %.2f; show", last_scan+d);
1498 st_fail(
"No last scan found matching criteria");
int cont_display_sequence(struct LP_IMAGE_INFO *image, int plot)
struct LP_IMAGE_INFO * h0
char * strcmprs(char *str)
int lp_fcmp(double first, double second, double delta)
int chgres(float *told, int nchan, float oldres, float newres)
int cont_save_data(float *data, struct HEADER *h)
int display_optical_table(float *data, struct HEADER *h)
int setFlag(int flag, int state)
int line_save_data(struct LP_IMAGE_INFO *h)
double restFreq(struct HEADER *h)
int cont_display_optical(struct LP_IMAGE_INFO *image, int plot)
int line_display_spectra(struct LP_IMAGE_INFO *image, int plot)
int cont_display_data(float *data, struct HEADER *h)
int incrementRejDates(void)
int cont_display_mapscan(struct LP_IMAGE_INFO *image, int plot)
int cont_display_any_focus(struct LP_IMAGE_INFO *image, int plot, int type)
int meetsCritiria(struct HEADER *p, int mask)
int isScanIgnored(double scan)
int cont_display_sptip(struct LP_IMAGE_INFO *image, int plot)
void subArgs(int wt, const char *fmt,...)
int incrementRejSource(void)
int incrementRejScans(void)
int cont_display_five(struct LP_IMAGE_INFO *image, int plot)
int incrementRejFreq(void)
int backendMatch(struct HEADER *h)
int cont_show_phases(float *data, struct HEADER *h, int plot)
int incrementRejBackend(void)
int to_dataserv(char *buf)