v0.0.1
Initial release: * This project includes minimal data files required by the Python Skyfield library: `de421.bsp`, `deltat.data`, `deltat.preds` and `Leap_Second.dat`. * It provides a small Python script to download the files from their respective source, * This script eventually checks if some of the files are expired and skips them (by default), * Usage documentation is included in the `README.md` file. * This project code is released under the terms of the MIT License. Skyfield Library: https://rhodesmill.org/skyfield/
This commit is contained in:
parent
40d597c41c
commit
4c4bf5b563
|
@ -0,0 +1,11 @@
|
||||||
|
# Changelog for Skyfield Data
|
||||||
|
|
||||||
|
## 0.0.1 (2019-07-29)
|
||||||
|
|
||||||
|
Initial release
|
||||||
|
|
||||||
|
* This project includes minimal data files required by the [Python Skyfield library](https://rhodesmill.org/skyfield/): `de421.bsp`, `deltat.data`, `deltat.preds` and `Leap_Second.dat`,
|
||||||
|
* It provides a small Python script to download the files from their respective source,
|
||||||
|
* This script eventually checks if some of the files are expired and skips them (by default),
|
||||||
|
* Usage documentation is included in the `README.md` file.
|
||||||
|
* This project code is released under the terms of the MIT License.
|
|
@ -1 +1,2 @@
|
||||||
recursive-include skyfield_data/data *
|
recursive-include skyfield_data/data *
|
||||||
|
include COPYING
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -13,4 +13,4 @@ clean:
|
||||||
rm -f skyfield_data/data/*
|
rm -f skyfield_data/data/*
|
||||||
|
|
||||||
package:
|
package:
|
||||||
python3 setup.py sdist
|
python3 setup.py sdist bdist_wheel
|
||||||
|
|
11
README.md
11
README.md
|
@ -22,13 +22,20 @@ Once all the files are on your disk space, you can instantiate your ``skyfield``
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Once you have installed ``skyfield_data``, you may create a dedicated loader with the following code:
|
Install the packages using:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pip install skyfield skyfield-data
|
||||||
|
```
|
||||||
|
|
||||||
|
To create a custom Skyfield loader, use the following code:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from skyfield_data import get_skyfield_data_path
|
from skyfield_data import get_skyfield_data_path
|
||||||
from skyfield.api import Loader
|
from skyfield.api import Loader
|
||||||
load = Loader(get_skyfield_data_path())
|
load = Loader(get_skyfield_data_path())
|
||||||
planets = load('de421.bsp')
|
planets = load('de421.bsp') # this command won't download this file
|
||||||
|
ts = load.timescale() # this command won't download the deltat + Leap Second files
|
||||||
```
|
```
|
||||||
|
|
||||||
## Developers
|
## Developers
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[metadata]
|
[metadata]
|
||||||
name = skyfield-data
|
name = skyfield-data
|
||||||
version = 0.0.0
|
version = 0.0.1
|
||||||
author = Bruno Bord
|
author = Bruno Bord
|
||||||
author-email = bruno@jehaisleprintemps.net
|
author-email = bruno@jehaisleprintemps.net
|
||||||
home-page = https://github.com/brunobord/skyfield-data
|
home-page = https://github.com/brunobord/skyfield-data
|
||||||
|
|
Loading…
Reference in New Issue