Skip to content

Commit

Permalink
Version Tag 1.0.6 (#179)
Browse files Browse the repository at this point in the history
* Version Tag 1.0.6

* changelog
  • Loading branch information
dahlend authored Jan 31, 2025
1 parent 62f69c9 commit 1e4161b
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 30 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [Unreleased]
## [v1.0.6]

### Added

- Added definitions of classes of objects.
- Added support for SPICE kernels of type 3, this allows reading satellites of Mars.
- Added support for choosing to not load the DE440 file when reloading SPICE kernels.
- Added optional suppression of impact warnings during propagation.
- Added new definitions for orbital families of objects.

### Fixed

Expand All @@ -22,7 +22,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Updated the WISE spice kernels, which improve accuracy significantly for the final 2
- Updated PCK Files for Earth's orientation to the latest produced by NAIF.
- Updated leap second file (no new leap seconds).
- Updated the WISE spice kernels, which improves accuracy significantly for the final 2
years of WISE/NEOWISE.


Expand Down Expand Up @@ -368,6 +370,7 @@ Initial Release


[Unreleased]: https://github.com/IPAC-SW/kete/tree/main
[1.0.6]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.6
[1.0.5]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.5
[1.0.4]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.4
[1.0.3]: https://github.com/IPAC-SW/kete/releases/tag/v1.0.3
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

[package]
name = "_core"
version = "1.0.5"
version = "1.0.6"
edition = "2021"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2024, California Institute of Technology
Copyright (c) 2025, California Institute of Technology

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = "kete"
copyright = "2024, Caltech IPAC"
copyright = "2025, Caltech IPAC"
author = "Dar Dahlen"

# -- General configuration ---------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "kete"
version = "1.0.5"
version = "1.0.6"
description = "Kete Asteroid Survey Tools"
readme = "README.md"
authors = [{name = "Dar Dahlen", email = "[email protected]"},
Expand Down
4 changes: 2 additions & 2 deletions src/examples/galactic_center.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import matplotlib.pyplot as plt
import numpy as np

jd_start = kete.Time.from_ymd(2024, 3, 1).jd
jd_end = kete.Time.from_ymd(2024, 4, 1).jd
jd_start = kete.Time.from_ymd(2025, 3, 1).jd
jd_end = kete.Time.from_ymd(2025, 4, 1).jd


# Load all orbits from the MPC catalog
Expand Down
2 changes: 1 addition & 1 deletion src/examples/on_sky.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# %% Pick an observing time:
# By default, kete uses TDB scaled JD time, the Time object automatically handles
# conversions to and from this scaling:
jd = kete.Time.from_ymd(2024, 6, 1.5).jd
jd = kete.Time.from_ymd(2025, 6, 1.5).jd

# Currently the state of the object above is not at this date
# lets perform orbit propagation to bring it to this date:
Expand Down
2 changes: 1 addition & 1 deletion src/examples/plot_elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

object_names = ["Vesta", "10p", "Pallas", 734]

start_time = datetime(2024, 2, 11, 12, tzinfo=timezone)
start_time = datetime(2025, 2, 11, 12, tzinfo=timezone)

# Observers position, on the surface of the earth:
site = "Palomar Mountain"
Expand Down
4 changes: 2 additions & 2 deletions src/examples/plot_observability.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
# -------
obj = kete.HorizonsProperties.fetch("Eros", update_name=False)

start_time = kete.Time.from_ymd(2023, 11, 1).jd
end_time = kete.Time.from_ymd(2024, 11, 1).jd
start_time = kete.Time.from_ymd(2024, 11, 1).jd
end_time = kete.Time.from_ymd(2025, 11, 1).jd

# Observers position:
site = "Palomar Mountain"
Expand Down
2 changes: 1 addition & 1 deletion src/examples/plot_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# them hitting the earth after discovery.

# Pick your favorite time to observe
jd = kete.Time.from_iso("2024-07-03T23:11:42.748000+00:00").jd
jd = kete.Time.from_iso("2025-07-03T23:11:42.748000+00:00").jd

# Move the entire population of asteroids to that time using 2-body
# mechanics, this can be directly substituted with propagate_n_body if you
Expand Down
8 changes: 3 additions & 5 deletions src/kete/rust/spice/pck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ pub fn pck_load_py(filenames: Vec<String>) -> PyResult<()> {
/// Convert a position vector which is geocentered in the earth frame to a position
/// vector in the sun centered ecliptic frame.
///
/// This requires the `earth_000101_*.pck` file to be loaded which contains the
/// instantaneous earth frame information. The one provided by kete has dates from
/// around 2000 to early 2024. New files may be downloaded from the NAIF website for
/// additional precision or years of epoch. The current file is accurate to ~5 cm
/// precision.
/// This uses PCK files produces by the NAIF team at JPL. New files may be downloaded
/// from the NAIF website if so desired, but the one provided is a highest accuracy
/// copy available as of Jan 2025.
///
/// parameters
/// ----------
Expand Down
8 changes: 3 additions & 5 deletions src/kete/spice.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@ def earth_pos_to_ecliptic(
This uses the WGS84 model of Earth's shape to compute state. This uses Geodetic
latitude and longitude, not geocentric.
The frame conversion is done using a high precision PCK file from the NAIF/JPL
website. The file provided in kete is valid from ~2000 to ~2024. This file
gives positional error on the scale of a few cm. Additionally a lower resolution
file is provided which is valid until 2099, and will be used automatically when
querying past the end of the high resolution file.
The frame conversion is done using a PCK file from the NAIF/JPL website.
This is the combined PCK file containing lower accuracy historical data, high
accuracy modern data, and the current predictions going forward.
Parameters
----------
Expand Down
2 changes: 1 addition & 1 deletion src/kete_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kete_core"
version = "1.0.5"
version = "1.0.6"
edition = "2021"
readme = "README.md"
license = "BSD-3-Clause"
Expand Down
Binary file removed src/kete_core/data/earth_000101_240215_231123.bpc
Binary file not shown.
Binary file not shown.
Binary file removed src/kete_core/data/earth_200101_990825_predict.bpc
Binary file not shown.
4 changes: 2 additions & 2 deletions src/kete_core/data/leap_second.dat
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Value of TAI-UTC in second valid beetween the initial value until
# the epoch given on the next line. The last line reads that NO
# leap second was introduced since the corresponding date
# Updated through IERS Bulletin 67 issued in January 2024
# Updated through IERS Bulletin 69 issued in January 2025
#
#
# File expires on 28 December 2024
# File expires on 28 December 2025
#
#
# MJD Date TAI-UTC (s)
Expand Down
5 changes: 2 additions & 3 deletions src/kete_core/src/spice/pck.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Loading and reading of states from JPL PCK kernel files.
//!
//! PCKs are intended to be loaded into a singleton which is accessible via the
//! [`get_pck_singleton`] function defined below. This singleton is wrapped in a RwLock,
//! [`LOADED_PCK`] object defined below. This singleton is wrapped in a RwLock,
//! meaning before its use it must by unwrapped. A vast majority of intended use cases
//! will only be the read case.
//!
Expand All @@ -15,8 +15,7 @@ use lazy_static::lazy_static;
use std::io::Cursor;

const PRELOAD_PCK: &[&[u8]] = &[
include_bytes!("../../data/earth_000101_240215_231123.bpc"),
include_bytes!("../../data/earth_200101_990825_predict.bpc"),
include_bytes!("../../data/earth_1962_240827_2124_combined.bpc"),
];

/// A collection of segments.
Expand Down

0 comments on commit 1e4161b

Please sign in to comment.