Compare commits

..

7 Commits

Author SHA1 Message Date
Brandon Rhodes d288119b8b New wmm.cof from original maintainer Elwood Downey 2025-02-11 18:14:55 -05:00
Tom 0efc6cb6fc
Update FAQ links to new GitHub Pages URL (#97) 2025-01-23 10:26:08 -05:00
Brandon Rhodes b6529a3ce3 Fix GitHub Actions by installing groff on Mac 2024-05-17 23:41:52 -04:00
dave-kaye 48db8e8eaa
Update release date in Help > About menu (#92) 2024-05-15 22:01:19 -04:00
dave-kaye 25d9785659
Update download urls (#93)
Closes issue #80.
2024-05-03 14:47:40 -04:00
dave-kaye cbce84148a
Update header inserted into MPC .edb files (#94) 2024-04-09 16:30:53 -04:00
sanlupkim 6afc692a80
Use standard manpage sections; escape dashes (#90) 2024-03-04 13:11:24 -05:00
25 changed files with 130 additions and 452 deletions

View File

@ -4,6 +4,7 @@ on:
push:
branches:
- main
- fix-ci
pull_request:
branches:
@ -31,6 +32,8 @@ jobs:
run: brew install openssl && brew info openssl
- name: Install XQuartz
run: brew install xquartz --cask && brew info xquartz
- name: Install groff
run: brew install groff && brew info groff
- name: Compile
run: make -C GUI/xephem
- name: Test

4
.gitignore vendored
View File

@ -3,6 +3,8 @@
*.a
*.o
/GUI/xephem/xephem
.cache
/GUI/xephem/xephem.1
# macOS HFS+ files
._*

View File

@ -197,11 +197,14 @@ OBJS = \
xephem.o \
xmisc.o
all: libs xephem
all: libs xephem xephem.1
xephem: $(INCS) $(OBJS)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
xephem.1: xephem.man
nroff -man $? > $@
libs:
cd ../../libastro; make
cd ../../libip; make
@ -214,4 +217,4 @@ clean:
rm -fr *.o ../../lib*/*.[ao]
clobber: clean
rm -fr xephem
rm -fr xephem xephem.1

View File

@ -119,7 +119,7 @@ print "Creating $brtfn and $dimfn..\n";
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime;
$year += 1900;
$mon += 1;
$from = "# Data is from ftp://cfa-ftp.harvard.edu/pub/MPCORB/MPCORB.DAT\n";
$from = "# Data is from $MPCSITE/$MPCFTPDIR/$MPCFILE\n";
$what = "# Generated by mpcorb2edb.pl $ver, (c) 2000 Elwood Downey\n";
$when = "# Processed $year-$mon-$mday $hour:$min:$sec UTC\n";

View File

@ -1,93 +1,93 @@
2020.0 WMM-2020 12/10/2019
1 0 -29404.5 0.0 6.7 0.0
1 1 -1450.7 4652.9 7.7 -25.1
2 0 -2500.0 0.0 -11.5 0.0
2 1 2982.0 -2991.6 -7.1 -30.2
2 2 1676.8 -734.8 -2.2 -23.9
3 0 1363.9 0.0 2.8 0.0
3 1 -2381.0 -82.2 -6.2 5.7
3 2 1236.2 241.8 3.4 -1.0
3 3 525.7 -542.9 -12.2 1.1
4 0 903.1 0.0 -1.1 0.0
4 1 809.4 282.0 -1.6 0.2
4 2 86.2 -158.4 -6.0 6.9
4 3 -309.4 199.8 5.4 3.7
4 4 47.9 -350.1 -5.5 -5.6
5 0 -234.4 0.0 -0.3 0.0
5 1 363.1 47.7 0.6 0.1
5 2 187.8 208.4 -0.7 2.5
5 3 -140.7 -121.3 0.1 -0.9
5 4 -151.2 32.2 1.2 3.0
5 5 13.7 99.1 1.0 0.5
6 0 65.9 0.0 -0.6 0.0
6 1 65.6 -19.1 -0.4 0.1
6 2 73.0 25.0 0.5 -1.8
6 3 -121.5 52.7 1.4 -1.4
6 4 -36.2 -64.4 -1.4 0.9
6 5 13.5 9.0 -0.0 0.1
6 6 -64.7 68.1 0.8 1.0
7 0 80.6 0.0 -0.1 0.0
7 1 -76.8 -51.4 -0.3 0.5
7 2 -8.3 -16.8 -0.1 0.6
7 3 56.5 2.3 0.7 -0.7
7 4 15.8 23.5 0.2 -0.2
7 5 6.4 -2.2 -0.5 -1.2
7 6 -7.2 -27.2 -0.8 0.2
7 7 9.8 -1.9 1.0 0.3
8 0 23.6 0.0 -0.1 0.0
8 1 9.8 8.4 0.1 -0.3
8 2 -17.5 -15.3 -0.1 0.7
8 3 -0.4 12.8 0.5 -0.2
8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0.7 0.2 -0.1 -0.1
999999999999999999999999999999999999999999999999
999999999999999999999999999999999999999999999999

View File

@ -744,11 +744,11 @@ String fallbacks[] = {
"XEphem*WCS.y: 10",
"XEphem*WebDB*Pattern.value: ",
"XEphem*WebDB*Search.set: False",
"XEphem*WebDB*URL0.value: http://celestrak.org/NORAD/elements/stations.txt",
"XEphem*WebDB*URL1.value: http://celestrak.org/NORAD/elements/science.txt",
"XEphem*WebDB*URL2.value: http://celestrak.org/NORAD/elements/tle-new.txt",
"XEphem*WebDB*URL3.value: http://celestrak.org/NORAD/elements/amateur.txt",
"XEphem*WebDB*URL4.value: http://celestrak.org/NORAD/elements/visual.txt",
"XEphem*WebDB*URL0.value: https://celestrak.org/NORAD/elements/stations.txt",
"XEphem*WebDB*URL1.value: https://celestrak.org/NORAD/elements/science.txt",
"XEphem*WebDB*URL2.value: https://celestrak.org/NORAD/elements/tle-new.txt",
"XEphem*WebDB*URL3.value: https://celestrak.org/NORAD/elements/amateur.txt",
"XEphem*WebDB*URL4.value: https://celestrak.org/NORAD/elements/visual.txt",
"XEphem*WebDB*URL5.value: https://www.minorplanetcenter.net/iau/Ephemerides/Comets/Soft03Cmt.txt",
"XEphem*WebDB*URL6.value: https://www.minorplanetcenter.net/iau/Ephemerides/CritList/Soft03CritList.txt",
"XEphem*WebDB*URL7.value: https://www.minorplanetcenter.net/iau/Ephemerides/Distant/Soft03Distant.txt",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -7991,7 +7991,7 @@ format if it is not already.<br>
<br>
Several particularly useful sites as of this build are already entered.
The first five are from Dr. TS Kelso's Earth satellite lists at <a
href="https://www.celestrak.org">celestrak.org</a>. The other four are
href="https://celestrak.org">celestrak.org</a>. The other four are
the Minor Planet Center's lists of hot comets and unusual asteroids
specially formatted for <a
href="https://www.minorplanetcenter.net/iau/Ephemerides/Soft03.html">XEphem</a>.
@ -7999,12 +7999,9 @@ Click <span style="font-weight: bold;">Get</span> beside the desired
catalog to download the file to the Private directory and
simultaneously load into XEphem memory.<br>
<br>
Special files created by
<!-- could not found the correct linke
<a href="http://cfa-www.harvard.edu/cfa/ps/mpc.html">Minor Planet Center</a>
and
-->
the <a href="https://asteroid.lowell.edu/">Lowell
Special files created by the <a
href="https://www.minorplanetcenter.net/data/">Minor Planet Center</a>
and <a href="https://asteroid.lowell.edu/astorb/">Lowell
Observatory</a> may also be downloaded.
Each organization maintains
extensive lists of all known asteroids and produces on a regular basis

View File

@ -1,9 +0,0 @@
install_man('xephem.1')
install_data('XEphem.png', install_dir: get_option('datadir') / 'pixmaps')
install_subdir('auxil', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('catalogs', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('fifos', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('fits', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('gallery', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('help', install_dir: xephem_data_dir, strip_directory : false)
install_subdir('lo', install_dir: xephem_data_dir, strip_directory : false)

View File

@ -5,5 +5,5 @@
#include "xephem.h"
char PATCHLEVEL[] = "4.2.0";
char PATCHDATE[] = "2021 September 13";
char PATCHDATE[] = "2024 February 13";
char COPYRIGHT[] = "Copyright (c) 1990-2021 by Elwood Charles Downey";

View File

@ -158,7 +158,7 @@ wdb_create()
XtSetArg (args[n], XmNrightAttachment, XmATTACH_FORM); n++;
tf_w = XmCreateTextField (f_w, buf, args, n);
defaultTextFN (tf_w, 1, "", NULL);
wtip (tf_w, "URL of file to download (must use HTTP)");
wtip (tf_w, "URL of file to download (must use HTTP or HTTPS)");
XtManageChild (tf_w);
sprintf (buf, "XEphem*WebDB*URL%d.value", i);
sr_reg (tf_w, buf, wdbcategory, 1);

View File

@ -1,9 +1,9 @@
.TH XEphem 1X
.SH Name
.TH XEPHEM 1 "Feb 2024"
.SH NAME
XEphem \- an interactive astronomical ephemeris for X11
.SH Syntax
\fBxephem [-prfb] [-install {yes|no|guess}] [-resfile <resourcefile>] [-[no]splash]\fP
.SH Description
.SH SYNOPSIS
\fBxephem [\-prfb] [\-install {yes|no|guess}] [\-resfile <resourcefile>] [\-[no]splash]\fP
.SH DESCRIPTION
.na
.nh
.PP
@ -144,14 +144,14 @@ multi-user installations. XEphem looks here for support files. Unless
defined otherwise, the Shared directory is ".", that is, the current
directory.
.SH Author
.SH AUTHOR
.PP
Elwood C. Downey, email ecdowney@ClearSkyInstitute.com.
.SH References
.SH SEE ALSO
.PP
The Web homepage, including the FAQ, is maintained at
.I http://www.clearskyinstitute.com/xephem
.I https://xephem.github.io/XEphem/Site/xephem.html
.PP
The online Help entry
.I on Credits

View File

@ -4,6 +4,14 @@
</head>
<BODY background="/bg.png" TEXT="#000000" LINK="#004400" VLINK="#004400" ALINK="#000000">
<!-- next release
<li>Elwood has updated the <tt>wmm.cof</tt>
World Magnetic Model file
to reflect the new WMM2025 data that was released on December 17, 2024.
-->
<H3>Changes from 4.1.0 to 4.2.0</H3>
Released 2024 February 13.

View File

@ -522,11 +522,11 @@ using XEphem on my web site or publications?</b>
placed somewhere on each such page:
<p>
<pre>
&lt;a target="csiwin" href="https://www.ClearSkyInstitute.com/xephem/xephem.html"&gt;Created using &lt;b&gt;XEphem&lt;/b&gt;&lt;/a&gt;
&lt;a target="csiwin" href="https://xephem.github.io/XEphem/Site/xephem.html"&gt;Created using &lt;b&gt;XEphem&lt;/b&gt;&lt;/a&gt;
</pre>
<p>
It should look and work like this:
<a target="csiwin" href="https://www.ClearSkyInstitute.com/xephem/xephem.html">
<a target="csiwin" href="https://xephem.github.io/XEphem/Site/xephem.html">
Created using <b>XEphem</b></a>.
<p>
Regarding publications, the Postscript files generated by XEphem already

View File

@ -1,2 +0,0 @@
XEphem.ShareDir: @DATADIR@
XEphem.PrivateDir: ~/.xephem

View File

@ -1,63 +0,0 @@
libastro_src = [
'aa_hadec.c',
'aberration.c',
'actan.c',
'airmass.c',
'anomaly.c',
'ap_as.c',
'atlas.c',
'auxil.c',
'bdl.c',
'chap95.c',
'chap95_data.c',
'circum.c',
'comet.c',
'constel.c',
'dbfmt.c',
'deep.c',
'deltat.c',
'earthsat.c',
'eq_ecl.c',
'eq_gal.c',
'formats.c',
'helio.c',
'jupmoon.c',
'libration.c',
'magdecl.c',
'marsmoon.c',
'misc.c',
'mjd.c',
'moon.c',
'mooncolong.c',
'moonnf.c',
'nutation.c',
'obliq.c',
'parallactic.c',
'parallax.c',
'plans.c',
'plmoon.c',
'plshadow.c',
'precess.c',
'reduce.c',
'refract.c',
'rings.c',
'riset.c',
'riset_cir.c',
'satmoon.c',
'sdp4.c',
'sgp4.c',
'sphcart.c',
'sun.c',
'thetag.c',
'twobody.c',
'umoon.c',
'utc_gst.c',
'vsop87.c',
'vsop87_data.c',
]
libastro_inc = include_directories('./')
libastro = static_library('astro', libastro_src,
include_directories : libastro_inc)

View File

@ -1,18 +0,0 @@
libip_src = [
'explodegif.c',
'fits.c',
'fsmatch.c',
'gaussfit.c',
'lstsqr.c',
'median.c',
'sqr.c',
'stars.c',
'stats.c',
'walk.c',
'wcs.c',
]
libip_inc = include_directories('../libastro')
libip = static_library('ip', libip_src,
include_directories: libip_inc)

View File

@ -1,30 +0,0 @@
libjpegd_src = [
'jcomapi.c',
'jdapimin.c',
'jdapistd.c',
'jdatasrc.c',
'jdcoefct.c',
'jdcolor.c',
'jddctmgr.c',
'jdhuff.c',
'jdinput.c',
'jdmainct.c',
'jdmarker.c',
'jdmaster.c',
'jdmerge.c',
'jdphuff.c',
'jdpostct.c',
'jdsample.c',
'jerror.c',
'jidctflt.c',
'jidctfst.c',
'jidctint.c',
'jidctred.c',
'jmemmgr.c',
'jmemnobs.c',
'jquant1.c',
'jquant2.c',
'jutils.c',
]
libjpeg = static_library('jpegd', libjpegd_src)

View File

@ -1,6 +0,0 @@
liblilxml_src = [
'base64.c',
'lilxml.c'
]
liblilxml = static_library('lilxml', liblilxml_src)

View File

@ -1,19 +0,0 @@
libpng_src = [
'png.c',
'pngerror.c',
'pngget.c',
'pngmem.c',
'pngpread.c',
'pngread.c',
'pngrio.c',
'pngrtran.c',
'pngrutil.c',
'pngset.c',
'pngtrans.c',
'pngwio.c',
'pngwrite.c',
'pngwtran.c',
'pngwutil.c',
]
libpng = static_library('png', libpng_src)

View File

@ -1,15 +0,0 @@
libz_src = [
'adler32.c',
'compress.c',
'crc32.c',
'deflate.c',
'inffast.c',
'inflate.c',
'inftrees.c',
'testzlib.c',
'trees.c',
'uncompr.c',
'zutil.c',
]
libz = static_library('z', libz_src)

View File

@ -1,155 +0,0 @@
project('XEphem', 'c',
version : '4.1.0',
default_options : [
'warning_level=3',
'b_lto=true',
'optimization=2'
])
inc_dirs = include_directories('libastro', 'libip', 'liblilxml')
src=[
'GUI/xephem/aavso.c',
'GUI/xephem/annotmenu.c',
'GUI/xephem/broadcast.c',
'GUI/xephem/calmenu.c',
'GUI/xephem/closemenu.c',
'GUI/xephem/compiler.c',
'GUI/xephem/coordsmenu.c',
'GUI/xephem/datamenu.c',
'GUI/xephem/db.c',
'GUI/xephem/dbmenu.c',
'GUI/xephem/earthmap.c',
'GUI/xephem/earthmenu.c',
'GUI/xephem/fallbacks.c',
'GUI/xephem/favmenu.c',
'GUI/xephem/formats.c',
'GUI/xephem/fsmenu.c',
'GUI/xephem/gallerymenu.c',
'GUI/xephem/glance.c',
'GUI/xephem/gsc.c',
'GUI/xephem/gscnet.c',
'GUI/xephem/helpmenu.c',
'GUI/xephem/homeio.c',
'GUI/xephem/hznmenu.c',
'GUI/xephem/imregmenu.c',
'GUI/xephem/indimenu.c',
'GUI/xephem/jpeg2pm.c',
'GUI/xephem/jupmenu.c',
'GUI/xephem/listmenu.c',
'GUI/xephem/mainmenu.c',
'GUI/xephem/marsmenu.c',
'GUI/xephem/marsmmenu.c',
'GUI/xephem/moonmenu.c',
'GUI/xephem/moviemenu.c',
'GUI/xephem/msgmenu.c',
'GUI/xephem/netmenu.c',
'GUI/xephem/objmenu.c',
'GUI/xephem/obslog.c',
'GUI/xephem/patchlevel.c',
'GUI/xephem/plot_aux.c',
'GUI/xephem/plotmenu.c',
'GUI/xephem/preferences.c',
'GUI/xephem/progress.c',
'GUI/xephem/ps.c',
'GUI/xephem/query.c',
'GUI/xephem/rotated.c',
'GUI/xephem/satmenu.c',
'GUI/xephem/saveres.c',
'GUI/xephem/scope.c',
'GUI/xephem/sites.c',
'GUI/xephem/skybinary.c',
'GUI/xephem/skyeyep.c',
'GUI/xephem/skyfifos.c',
'GUI/xephem/skyfiltmenu.c',
'GUI/xephem/skyfits.c',
'GUI/xephem/skyhist.c',
'GUI/xephem/skyip.c',
'GUI/xephem/skylist.c',
'GUI/xephem/skytoolbar.c',
'GUI/xephem/skyviewmenu.c',
'GUI/xephem/solsysmenu.c',
'GUI/xephem/splash.c',
'GUI/xephem/srchmenu.c',
'GUI/xephem/sunmenu.c',
'GUI/xephem/time.c',
'GUI/xephem/tips.c',
'GUI/xephem/trailmenu.c',
'GUI/xephem/ucac.c',
'GUI/xephem/uranusmenu.c',
'GUI/xephem/usno.c',
'GUI/xephem/versionmenu.c',
'GUI/xephem/webdbmenu.c',
'GUI/xephem/xe2.c',
'GUI/xephem/xe3.c',
'GUI/xephem/xephem.c',
'GUI/xephem/xmisc.c',
]
ccompiler = meson.get_compiler('c')
empty_dep = dependency('', required:false)
motif_dep = ccompiler.find_library('Xm')
xt_dep = ccompiler.find_library('Xt')
x_dep = dependency('X11')
openssl_dep = dependency('openssl')
m_dep = ccompiler.find_library('m', required: false)
if m_dep.found()
add_project_link_arguments('-lm', language : 'c')
if get_option('with-sys-zlib')
zlib_dep = dependency('zlib')
libz = []
zlib_inc = []
else
zlib_dep = empty_dep
subdir('libz')
zlib_inc = include_directories('libz')
endif
if get_option('with-sys-jpeg')
jpeg_dep = dependency('libjpeg')
libjpeg = []
jpeg_inc = []
else
jpeg_dep = empty_dep
subdir('libjpegd')
jpeg_inc = include_directories('libjpegd')
endif
if get_option('with-sys-png')
png_dep = dependency('libpng')
libpng = []
png_inc = []
else
png_dep = empty_dep
subdir('libpng')
png_inc = include_directories('libpng')
endif
xephem_data_dir = get_option('datadir') / 'xephem'
subdir('libastro')
subdir('libip')
subdir('liblilxml')
subdir('GUI/xephem')
executable('xephem', src,
dependencies: [motif_dep, xt_dep, x_dep, zlib_dep, \
jpeg_dep, png_dep, openssl_dep, m_dep],
include_directories: [inc_dirs, png_inc, zlib_inc, jpeg_inc],
link_with: [libastro, libip, liblilxml, libpng, libz, libjpeg],
install : true)
endif
run_target('cppcheck', command:['scripts/cppcheck.sh', '--project=' +
join_paths(meson.build_root(), 'compile_commands.json')])
conf_data = configuration_data()
conf_data.set('DATADIR', get_option('prefix') / xephem_data_dir)
configure_file(input: 'XEphem.in',
output : 'XEphem',
configuration: conf_data,
install_dir : get_option('sysconfdir') / 'X11/app-defaults/')

View File

@ -1,4 +0,0 @@
option('with-sys-zlib', type: 'boolean', value: true)
option('with-sys-png', type: 'boolean', value: true)
option('with-sys-jpeg', type: 'boolean', value: true)

View File

@ -1,3 +0,0 @@
#!/bin/sh
cppcheck --enable=all --inline-suppr --suppress=missingIncludeSystem \
--cppcheck-build-dir=../build --inconclusive --library=posix $*

View File

@ -1,11 +0,0 @@
[Desktop Entry]
Version=1.0
Exec=xephem
TryExec=xephem
Icon=XEphem
Terminal=false
Name=XEphem
GenericName=Astronomy program
Categories=Education;Science;Astronomy;
Type=Application
StartupNotify=false