astrocalc encoding

pull/2982/head
Erik Andresen 2023-08-19 16:32:44 +02:00
parent b45bcab181
commit 5947397938
1 changed files with 5 additions and 5 deletions

View File

@ -143,10 +143,10 @@ function drawMoonPositionPage(gps, title) {
const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north
const pageData = { const pageData = {
Azimuth: parseInt(azimuth * 180 / Math.PI + 0.5) + '°', Azimuth: parseInt(azimuth * 180 / Math.PI + 0.5) + '°',
Altitude: parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°', Altitude: parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°',
Distance: `${pos.distance.toFixed(0)} km`, Distance: `${pos.distance.toFixed(0)} km`,
"Parallactic Ang": parseInt(pos.parallacticAngle * 180 / Math.PI + 0.5) + '°', "Parallactic Ang": parseInt(pos.parallacticAngle * 180 / Math.PI + 0.5) + '°',
}; };
const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5); const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5);
@ -212,8 +212,8 @@ function drawSunShowPage(gps, key, date) {
const time = `${hrs}:${mins}:${secs}`; const time = `${hrs}:${mins}:${secs}`;
const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north const azimuth = pos.azimuth + Math.PI; // 0 is south, we want 0 to be north
const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5) + '°'; const azimuthDegrees = parseInt(azimuth * 180 / Math.PI + 0.5) + '°';
const altitude = parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°'; const altitude = parseInt(pos.altitude * 180 / Math.PI + 0.5) + '°';
const pageData = { const pageData = {
Time: time, Time: time,