153
153
fromJulian(options->JulianDay(), year, month, day, hour, min, sec);
155
snprintf(buffer, 128, "Julian Date = %14.6f (%04d%02d%02d.%02d%02d%02d)\n",
155
snprintf(buffer, 128, "Julian Date = %14.6f (%04d%02d%02d.%02d%02d%02d)\n",
156
156
options->JulianDay(), year, month, day, hour, min, (int) (sec+0.5));
159
snprintf(buffer, 128, "origin XYZ = %14.8f %14.8f %14.8f\n",
159
snprintf(buffer, 128, "origin XYZ = %14.8f %14.8f %14.8f\n",
163
snprintf(buffer, 128, "target XYZ = %14.8f %14.8f %14.8f\n",
163
snprintf(buffer, 128, "target XYZ = %14.8f %14.8f %14.8f\n",
167
snprintf(buffer, 128, "up XYZ = %14.8f %14.8f %14.8f\n",
167
snprintf(buffer, 128, "up XYZ = %14.8f %14.8f %14.8f\n",
171
snprintf(buffer, 128, "fov = %14.8f degrees\n",
171
snprintf(buffer, 128, "fov = %14.8f degrees\n",
172
172
options->FieldOfView()/deg_to_rad);
174
snprintf(buffer, 128, "dist_per_pixel = %14.8f\n", dist_per_pixel);
174
snprintf(buffer, 128, "dist_per_pixel = %14.8e AU (%14.8e km)\n",
175
dist_per_pixel, dist_per_pixel*AU_to_km);
176
177
xpMsg(msg.str(), __FILE__, __LINE__);
179
180
// Put the primary in the center of the field of view when looking
180
181
// from above or below
181
if (options->OriginMode() == ABOVE
182
|| options->OriginMode() == BELOW)
182
if (options->OriginMode() == ABOVE || options->OriginMode() == BELOW)
184
184
findBodyXYZ(options->JulianDay(), options->Primary(), -1, tX, tY, tZ);
414
414
m = createMap(sLat, sLon, oLat, oLon, width, height, pR,
415
415
current_planet, ring, planetsFromSunMap,
416
416
currentProperties);
418
if (!options->OutputMapRect().empty())
420
if (current_planet->Index() == options->Target())
423
if (!m->Write(options->OutputMapRect().c_str()))
425
ostringstream errStr;
426
errStr << "Can't create " << options->OutputMapRect()
428
xpWarn(errStr.str(), __FILE__, __LINE__);
417
433
if (current_planet->Index() == JUPITER
418
434
|| current_planet->Index() == SATURN)
420
436
drawEllipsoid(pX, pY, pR, oX, oY, oZ,
421
437
X, Y, Z, display, view, m,
423
currentProperties->Magnify());
438
current_planet, currentProperties);
427
442
drawSphere(pX, pY, pR, oX, oY, oZ,
428
443
X, Y, Z, display, view, m,
430
current_planet->Radius()
431
* currentProperties->Magnify());
444
current_planet, currentProperties);