Skip to content

Commit

Permalink
Merge naif.h into solarsystem.h and site update
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Nov 11, 2024
1 parent d5d00f3 commit a49a0d9
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 36 deletions.
29 changes: 0 additions & 29 deletions include/naif.h

This file was deleted.

16 changes: 16 additions & 0 deletions include/solarsystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,22 @@ short planet_jplint_hp(const double jd_tdb[2], enum novas_planet body, enum nova

// Added in v1.2 --------------------------------->

/// NAIF ID for the geocenter
#define NAIF_EARTH 399

/// NAIF ID for the Moon
#define NAIF_MOON 301

/// NAIF_ID for the Sun
#define NAIF_SUN 10

/// NAIF ID for the Solar-System Barycenter (SSB)
#define NAIF_SSB 0

/// NAIF ID for the Earth-Moon Barycenter (EMB)
#define NAIF_EMB 3


novas_planet_provider get_planet_provider();

novas_planet_provider_hp get_planet_provider_hp();
Expand Down
1 change: 0 additions & 1 deletion src/naif.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#define __NOVAS_INTERNAL_API__ ///< Use definitions meant for internal use by SuperNOVAS only
#include "novas.h"
#include "naif.h"

/**
* Converts a NAIF ID to a NOVAS major planet ID. It account for the different IDs used for Sun, Moon and SSB.
Expand Down
2 changes: 1 addition & 1 deletion src/solsys-calceph.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define __NOVAS_INTERNAL_API__ ///< Use definitions meant for internal use by SuperNOVAS only
#include "novas.h"
#include "calceph.h"
#include "naif.h"
#include "novas-naif.h"

#define CALCEPH_MOON 10 ///< Moon in CALCEPH
#define CALCEPH_SUN 11 ///< Sun in CALCEPH
Expand Down
1 change: 0 additions & 1 deletion src/solsys-cspice.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#define USE_CSIPCE 1 ///< NOVAS cspice integration prototypes
#define __NOVAS_INTERNAL_API__ ///< Use definitions meant for internal use by SuperNOVAS only
#include "novas.h"
#include "naif.h"

#include "cspice/SpiceUsr.h"
#include "cspice/SpiceZpr.h" // for reset_c
Expand Down
1 change: 0 additions & 1 deletion test/src/test-errors.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <string.h>

#include "novas.h"
#include "naif.h"

static int check(const char *func, int exp, int error) {
if(error != exp) {
Expand Down
3 changes: 0 additions & 3 deletions test/src/test-super.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
#include <unistd.h>
#include <libgen.h>



#define __NOVAS_INTERNAL_API__ ///< Use definitions meant for internal use by SuperNOVAS only
#include "novas.h"
#include "naif.h"

#define J2000 2451545.0
#define DAY 86400.0
Expand Down

0 comments on commit a49a0d9

Please sign in to comment.