function for inhouse testing only */
| 4315 | |
| 4316 | /* function for inhouse testing only */ |
| 4317 | static void get_nutation_model(int nutmod, int32 iflag, char *s) |
| 4318 | { |
| 4319 | int jplhormod = swed.astro_models[SE_MODEL_JPLHOR_MODE]; |
| 4320 | int jplhoramod = swed.astro_models[SE_MODEL_JPLHORA_MODE]; |
| 4321 | if (jplhormod == 0) |
| 4322 | jplhormod = SEMOD_JPLHOR_DEFAULT; |
| 4323 | if (jplhoramod == 0) |
| 4324 | jplhoramod = SEMOD_JPLHORA_DEFAULT; |
| 4325 | if (nutmod == 0) |
| 4326 | nutmod = SEMOD_NUT_DEFAULT; |
| 4327 | switch(nutmod) { |
| 4328 | case SEMOD_NUT_WOOLARD: |
| 4329 | strcpy(s, "Woolard 1953"); |
| 4330 | break; |
| 4331 | case SEMOD_NUT_IAU_1980: |
| 4332 | strcpy(s, "IAU 1980 (Wahr)"); |
| 4333 | break; |
| 4334 | case SEMOD_NUT_IAU_CORR_1987: |
| 4335 | strcpy(s, "Herring 1986"); |
| 4336 | break; |
| 4337 | case SEMOD_NUT_IAU_2000A: |
| 4338 | strcpy(s, "IAU 2000A (Mathews)"); |
| 4339 | break; |
| 4340 | case SEMOD_NUT_IAU_2000B: |
| 4341 | strcpy(s, "IAU 2000B (Mathews)"); |
| 4342 | break; |
| 4343 | } |
| 4344 | if (iflag & SEFLG_JPLEPH) { |
| 4345 | if (iflag & SEFLG_JPLHOR) |
| 4346 | strcpy(s, "IAU 1980 (Wahr)"); |
| 4347 | if (iflag & SEFLG_JPLHOR) { |
| 4348 | strcat(s, "\n+ daily corrections to dpsi/deps 1962-today"); |
| 4349 | if (jplhormod == SEMOD_JPLHOR_LONG_AGREEMENT) |
| 4350 | strcat(s, "\n good agreement with JPL Horizons between 1800 and today"); |
| 4351 | else |
| 4352 | strcat(s, "\n defaults to SEFLG_JPLEPH_APPROX before 1962"); |
| 4353 | } else if (iflag & SEFLG_JPLHOR_APPROX){ |
| 4354 | strcat(s, "\n+ some corrections, approximating JPL Horizons"); |
| 4355 | if (jplhoramod == SEMOD_JPLHORA_1) |
| 4356 | strcat(s, " (SEMOD_JPLHORA_1)"); |
| 4357 | else if (jplhoramod == SEMOD_JPLHORA_2) |
| 4358 | strcat(s, " (SEMOD_JPLHORA_2)"); |
| 4359 | else |
| 4360 | strcat(s, " (SEMOD_JPLHORA_3)"); |
| 4361 | } |
| 4362 | } |
| 4363 | } |
| 4364 | |
| 4365 | /* function for inhouse testing only */ |
| 4366 | static void get_frame_bias_model(int biasmod, char *s) |
no outgoing calls
no test coverage detected