FACT++  1.0
static void t_obs ( int *  status)
static

Definition at line 1374 of file palTest.c.

References telData::h, telData::longname, telData::p, palObs(), telData::shortname, vcs(), viv(), vvd(), and telData::w.

Referenced by main().

1374  {
1375 
1376  char shortname[11];
1377  char longname[41];
1378  double w, p, h;
1379  int lstat;
1380 
1381  lstat = palObs( 0, "MMT", shortname, sizeof(shortname),
1382  longname, sizeof(longname), &w, &p, &h );
1383  vcs ( shortname, "MMT", "palObs", "1/C", status );
1384  vcs ( longname, "MMT 6.5m, Mt Hopkins", "palObs", "1/NAME",
1385  status );
1386  vvd ( w, 1.935300584055477, 1e-8, "palObs",
1387  "1/W", status );
1388  vvd ( p, 0.5530735081550342238, 1e-10, "palObs",
1389  "1/P", status );
1390  vvd ( h, 2608, 1e-10, "palObs",
1391  "1/H", status );
1392  viv( lstat, 0, "palObs", "retval", status );
1393 
1394  lstat = palObs ( 61, NULL, shortname, sizeof(shortname),
1395  longname, sizeof(longname), &w, &p, &h );
1396  vcs ( shortname, "KECK1", "palObs", "2/C", status );
1397  vcs ( longname, "Keck 10m Telescope #1", "palObs",
1398  "2/NAME", status );
1399  vvd ( w, 2.713545757918895, 1e-8, "palObs",
1400  "2/W", status );
1401  vvd ( p, 0.3460280563536619, 1e-8, "palObs",
1402  "2/P", status );
1403  vvd ( h, 4160, 1e-10, "palObs",
1404  "2/H", status );
1405  viv( lstat, 0, "palObs", "retval", status );
1406 
1407  lstat = palObs ( 83, NULL, shortname, sizeof(shortname),
1408  longname, sizeof(longname), &w, &p, &h );
1409  vcs ( shortname, "MAGELLAN2", "palObs", "3/C", status );
1410  vcs ( longname, "Magellan 2, 6.5m, Las Campanas",
1411  "palObs", "3/NAME", status );
1412  vvd ( w, 1.233819305534497, 1e-8, "palObs",
1413  "3/W", status );
1414  vvd ( p, -0.506389344359954, 1e-8, "palObs",
1415  "3/P", status );
1416  vvd ( h, 2408, 1e-10, "palObs",
1417  "3/H", status );
1418  viv( lstat, 0, "palObs", "retval", status );
1419 
1420  /* the first argument here should be 1 greater than the number of items
1421  * in const struct telData defined in palObs.c
1422  */
1423  lstat = palObs ( 86, NULL, shortname, sizeof(shortname),
1424  longname, sizeof(longname), &w, &p, &h );
1425  vcs ( longname, "?", "palObs", "4/NAME", status );
1426  viv( lstat, -1, "palObs", "retval", status );
1427 
1428  lstat = palObs ( 0, "MISSING", shortname, sizeof(shortname),
1429  longname, sizeof(longname), &w, &p, &h );
1430  vcs ( longname, "?", "palObs", "5/NAME", status );
1431  viv( lstat, -1, "palObs", "retval", status );
1432 
1433  lstat = palObs( 0, "mmt", shortname, sizeof(shortname),
1434  longname, sizeof(longname), &w, &p, &h );
1435  vcs ( shortname, "MMT", "palObs", "6/C", status );
1436  vcs ( longname, "MMT 6.5m, Mt Hopkins", "palObs", "6/NAME",
1437  status );
1438  vvd ( w, 1.935300584055477, 1e-8, "palObs",
1439  "6/W", status );
1440  vvd ( p, 0.5530735081550342238, 1e-10, "palObs",
1441  "6/P", status );
1442  vvd ( h, 2608, 1e-10, "palObs",
1443  "6/H", status );
1444  viv( lstat, 0, "palObs", "retval", status );
1445 
1446 }
double w
Definition: palObs.c:168
double h
Definition: palObs.c:170
static void viv(int ival, int ivalok, const char *func, const char *test, int *status)
Definition: palTest.c:65
static void vvd(double val, double valok, double dval, const char *func, const char *test, int *status)
Definition: palTest.c:99
static void vcs(const char *val, const char *valok, const char *func, const char *test, int *status)
Definition: palTest.c:140
double p
Definition: palObs.c:169
char longname[41]
Definition: palObs.c:172
char shortname[11]
Definition: palObs.c:171
int palObs(size_t n, const char *c, char *ident, size_t identlen, char *name, size_t namelen, double *w, double *p, double *h)
Definition: palObs.c:176

+ Here is the call graph for this function:

+ Here is the caller graph for this function: