Changeset 2048 for trunk/psLib/src/astronomy/psAstrometry.c
- Timestamp:
- Oct 11, 2004, 3:34:09 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psAstrometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r2001 r2048 8 8 * @author George Gusciora, MHPCC 9 9 * 10 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2004-10- 07 19:16:46$10 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2004-10-12 01:34:09 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 455 455 psGrommit* psGrommitAlloc(const psExposure* exp) 456 456 { 457 double* AOPRMS = psAlloc(sizeof(double)*14); 458 457 459 if (exp == NULL) { 458 460 psAbort(__func__, "the 'exp' parameter is NULL\n"); 459 461 } 460 462 461 double date = TBD; // XXX: "mjd" in psExposure will become a psTime 462 // from which it will be possible to get UTC. 463 double dut = 0.0; 464 double elongm = TBD; // XXX 465 double phim = TBD; // XXX 466 double hm = TBD; // XXX 467 double xp = 0.0; 468 double yp = 0.0; 463 double date = psTimeToMJD(exp->time); 464 double dut = psTimeGetUT1Delta(exp->time); 465 double elongm = exp->observatory->longitude; 466 double phim = exp->observatory->latitude; 467 double hm = exp->observatory->height; 468 469 psSphere* polarMotion = psTimeGetPoleCoords(exp->time); 470 double xp = polarMotion->r; 471 double yp = polarMotion->d; 472 psFree(polarMotion); 473 469 474 double tdk = exp->temperature; 470 475 double pmb = exp->pressure; 471 476 double rh = exp->humidity; 472 477 double wl = exp->wavelength; 473 double tlr = TBD; // XXX 474 double *AOPRMS = NULL; 478 double tlr = exp->observatory->tlr; 475 479 476 480 slaAoppa(date, dut, elongm, phim, hm, xp, yp, … … 493 497 *(double *)&grommit->siderealTime = AOPRMS[13]; 494 498 499 psFree(AOPRMS); 500 495 501 return (grommit); 496 502 }
Note:
See TracChangeset
for help on using the changeset viewer.
