across-client 0.1.dev50__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- across_client-1.0.0/.github/workflows/release.yaml +22 -0
- across_client-1.0.0/.release-please-manifest.json +3 -0
- across_client-1.0.0/CHANGELOG.md +49 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/PKG-INFO +7 -3
- {across_client-0.1.dev50 → across_client-1.0.0}/README.md +6 -2
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/_version.py +3 -3
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/core/config.py +1 -1
- {across_client-0.1.dev50 → across_client-1.0.0}/across_client.egg-info/PKG-INFO +7 -3
- {across_client-0.1.dev50 → across_client-1.0.0}/across_client.egg-info/SOURCES.txt +9 -1
- across_client-1.0.0/docs/_static/logo.png +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/docs/conf.py +8 -1
- across_client-1.0.0/docs/index.rst +143 -0
- across_client-1.0.0/docs/notebooks/README.md +30 -0
- across_client-1.0.0/docs/notebooks.rst +12 -0
- across_client-1.0.0/docs/pre_executed/getting_started.ipynb +400 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/docs/requirements.txt +1 -1
- across_client-1.0.0/docs/schedules.rst +549 -0
- across_client-1.0.0/docs/ssa.rst +459 -0
- across_client-1.0.0/docs/visibility.rst +278 -0
- across_client-1.0.0/release-please-config.json +9 -0
- across_client-0.1.dev50/docs/index.rst +0 -51
- across_client-0.1.dev50/docs/notebooks/README.md +0 -25
- across_client-0.1.dev50/docs/notebooks/intro_notebook.ipynb +0 -84
- across_client-0.1.dev50/docs/notebooks.rst +0 -6
- {across_client-0.1.dev50 → across_client-1.0.0}/.copier-answers.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.git_archival.txt +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.gitattributes +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/ISSUE_TEMPLATE/bug.yaml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/ISSUE_TEMPLATE/spike.yaml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/ISSUE_TEMPLATE/ticket.yaml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/dependabot.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/pull_request_template.md +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/README.md +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/build-documentation.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/pre-commit-ci.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/publish-to-pypi.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/smoke-test.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.github/workflows/testing-and-coverage.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.gitignore +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.pre-commit-config.yaml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.readthedocs.yml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/.setup_dev.sh +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/CODE_OF_CONDUCT.md +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/CONTRIBUTING.md +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/LICENSE +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/__init__.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/__init__.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/__init__.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/filter.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/instrument.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/observation.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/observatory.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/schedule.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/telescope.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/apis/tools.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/client.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/core/__init__.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across/client/py.typed +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across_client.egg-info/dependency_links.txt +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across_client.egg-info/requires.txt +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/across_client.egg-info/top_level.txt +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/docs/Makefile +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/docs/pre_executed/README.md +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/examples/001_accessing_SSA_model_data.ipynb +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/examples/002_calculating_instrument_visibility_windows.ipynb +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/pyproject.toml +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/setup.cfg +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/filter/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/filter/test_filter.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/instrument/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/instrument/test_instrument.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/observation/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/observation/test_observation.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/observatory/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/observatory/test_observatory.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/schedule/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/schedule/test_schedule.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/telescope/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/telescope/test_telescope.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/tools/conftest.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/apis/tools/test_tools.py +0 -0
- {across_client-0.1.dev50 → across_client-1.0.0}/tests/client/test_client.py +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Run this workflow only on merged release-please PRs
|
|
2
|
+
name: Release PR Merged
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
issues: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
release-please:
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- uses: googleapis/release-please-action@v4
|
|
19
|
+
with:
|
|
20
|
+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
|
|
21
|
+
config-file: release-please-config.json
|
|
22
|
+
manifest-file: .release-please-manifest.json
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [1.0.0](https://github.com/NASA-ACROSS/across-client/compare/v1.0.0...v1.0.0) (2026-01-15)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **.github:** add across issue and pr templates ([07ba108](https://github.com/NASA-ACROSS/across-client/commit/07ba108e288d122348d928dbfcb3d339c42a0d42))
|
|
9
|
+
* **actions:** adding release please action and configuration ([#39](https://github.com/NASA-ACROSS/across-client/issues/39)) ([bcedfcb](https://github.com/NASA-ACROSS/across-client/commit/bcedfcb11590fd6ab6711573fc9df7890b9c666a))
|
|
10
|
+
* add example jupyter notebook for accessing SSA data ([a452121](https://github.com/NASA-ACROSS/across-client/commit/a452121fb32ef44cda3342b87628ce1164d04604))
|
|
11
|
+
* add example jupyter notebook for accessing SSA data ([b9e3ae9](https://github.com/NASA-ACROSS/across-client/commit/b9e3ae90d5380fde7969097fe4be5359120a50e3))
|
|
12
|
+
* add readthedocs documentation ([#41](https://github.com/NASA-ACROSS/across-client/issues/41)) ([6547c6c](https://github.com/NASA-ACROSS/across-client/commit/6547c6cd69baf554ca0e21513a22f93cb6669381))
|
|
13
|
+
* add visibility calculator example notebook ([c381b68](https://github.com/NASA-ACROSS/across-client/commit/c381b684b7fc561189d927de43db2224e4ae7e04))
|
|
14
|
+
* add visibility calculator sdk functionality to client ([17862c5](https://github.com/NASA-ACROSS/across-client/commit/17862c5c04af78785e71f535864c1ebbc1b4c24a))
|
|
15
|
+
* add visibility calculator sdk functionality to client ([4b72cf8](https://github.com/NASA-ACROSS/across-client/commit/4b72cf86a693c744c0da39cb3ff7be84a6ecc1bc))
|
|
16
|
+
* adding client to across namespace ([da8c9d7](https://github.com/NASA-ACROSS/across-client/commit/da8c9d7f214eca1c409a7150432ccf08ac0d7d89))
|
|
17
|
+
* adding other sdk SSA endpoints ([419fec0](https://github.com/NASA-ACROSS/across-client/commit/419fec09b930477b9e79d20f8249dd56479a6098))
|
|
18
|
+
* adding other sdk SSA endpoints ([9003819](https://github.com/NASA-ACROSS/across-client/commit/9003819f6838ec7b7204a699971c1cbfc7cbdc5e))
|
|
19
|
+
* adding pagination params to observation.get_many ([bca535c](https://github.com/NASA-ACROSS/across-client/commit/bca535cc804e856861a26c0e3f21c7dfa76ae792))
|
|
20
|
+
* **client:** Adding the client wrapper for the sdk ([440a41a](https://github.com/NASA-ACROSS/across-client/commit/440a41a6eaa071aa9a76d3454f01147092aec839))
|
|
21
|
+
* default host to be server url ([#43](https://github.com/NASA-ACROSS/across-client/issues/43)) ([b201fda](https://github.com/NASA-ACROSS/across-client/commit/b201fdaadc0cd02f093bb4885b0958da63b1f6a4))
|
|
22
|
+
* **legal:** add NASA copyright notices ([7a40e93](https://github.com/NASA-ACROSS/across-client/commit/7a40e93dc60d185cfbaa41599ffc6b8620d4b4f2))
|
|
23
|
+
* **legal:** add NASA copyright notices ([b343f1d](https://github.com/NASA-ACROSS/across-client/commit/b343f1d03b6980ba13e1f91ce530eef780e026a6))
|
|
24
|
+
* new issue and pr templates ([107f686](https://github.com/NASA-ACROSS/across-client/commit/107f686a57fc7a658e579136fd762a2a1d3c84c7))
|
|
25
|
+
* **README:** installation instructions with pypi ([#37](https://github.com/NASA-ACROSS/across-client/issues/37)) ([dbcff39](https://github.com/NASA-ACROSS/across-client/commit/dbcff398d38ae8b8bd732c374a9de7167e20936a))
|
|
26
|
+
* update readme ([ffacff2](https://github.com/NASA-ACROSS/across-client/commit/ffacff265fa713aeaefa3746d8b00518418bc0b5))
|
|
27
|
+
* updating the README, adding contributing and code of conduct ([331bd3f](https://github.com/NASA-ACROSS/across-client/commit/331bd3f09c10ec160cda67bf159bce746211a208))
|
|
28
|
+
* updating the README, adding contributing and code of conduct ([c7bf0fa](https://github.com/NASA-ACROSS/across-client/commit/c7bf0fafb7d4708c4e176310b53c28e59d30c365))
|
|
29
|
+
* updating the README, adding contributing and code of conduct ([7bf4c3c](https://github.com/NASA-ACROSS/across-client/commit/7bf4c3c33a8ac36ee15e6fa9c701418c10aeb038))
|
|
30
|
+
* updating the README, adding contributing and code of conduct ([3cfb0fb](https://github.com/NASA-ACROSS/across-client/commit/3cfb0fbfa5dcfcf6c13410ce63986ecc696fe038))
|
|
31
|
+
* updating the README, adding contributing and code of conduct ([95602dc](https://github.com/NASA-ACROSS/across-client/commit/95602dc185db2f0db659bb5d50b404a67f2a971d))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* add maintainers ([605023d](https://github.com/NASA-ACROSS/across-client/commit/605023de09517a667b380d3a2e253bd9e54beec0))
|
|
37
|
+
* change types of ids in apis and tests ([59a78e9](https://github.com/NASA-ACROSS/across-client/commit/59a78e941bda6532b4cae3dea2a140f0a8b45788))
|
|
38
|
+
* change types of ids in apis and tests ([4e2748f](https://github.com/NASA-ACROSS/across-client/commit/4e2748f14930729a9502d09c54e35525af626e91))
|
|
39
|
+
* missed two ([0be33b7](https://github.com/NASA-ACROSS/across-client/commit/0be33b7a6272cb08f71a0eebf59fe5331b22fd63))
|
|
40
|
+
* **org-name:** update organization name ([c065d13](https://github.com/NASA-ACROSS/across-client/commit/c065d13a3c8125d811f75cceb6e792f1d688985b))
|
|
41
|
+
* **org-name:** update organization name ([fc13f9b](https://github.com/NASA-ACROSS/across-client/commit/fc13f9bcd5902f45ed65161459610915b6de01f0))
|
|
42
|
+
* pyproject.toml ([9f8a1b9](https://github.com/NASA-ACROSS/across-client/commit/9f8a1b92729ef65c5f591c0b0a8a1d2e4786903f))
|
|
43
|
+
* removing ssh from gha ([#35](https://github.com/NASA-ACROSS/across-client/issues/35)) ([392370e](https://github.com/NASA-ACROSS/across-client/commit/392370ef1e9b29189bb0ab1fdac1de9148e90557))
|
|
44
|
+
* try removing init to fix gh actions ([d2dc1d3](https://github.com/NASA-ACROSS/across-client/commit/d2dc1d3ac76bb08e25bbdac9043b7ea424d76cbc))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Miscellaneous Chores
|
|
48
|
+
|
|
49
|
+
* release 1.0.0 ([b1c1e69](https://github.com/NASA-ACROSS/across-client/commit/b1c1e6943a41f708834017b4351bbbbe22f5ffe4))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: across-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Author-email: "Samuel D. Wyatt" <samuel.d.wyatt@nasa.gov>, "Jamie A. Kennea" <jak51@psu.edu>, Craig Pellegrino <craig.m.pellegrino@nasa.gov>
|
|
5
5
|
Maintainer-email: "Samuel D. Wyatt" <samuel.d.wyatt@nasa.gov>, "Jamie A. Kennea" <jak51@psu.edu>, Craig Pellegrino <craig.m.pellegrino@nasa.gov>
|
|
6
6
|
License: Apache License
|
|
@@ -255,7 +255,11 @@ cd across-client
|
|
|
255
255
|
python -m pip install .
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
or the latest released version with `pip`
|
|
259
|
+
|
|
260
|
+
```sh
|
|
261
|
+
python -m pip install across-client
|
|
262
|
+
```
|
|
259
263
|
|
|
260
264
|
## Usage
|
|
261
265
|
|
|
@@ -283,7 +287,7 @@ nircam_observations = client.observation.get_many(
|
|
|
283
287
|
|
|
284
288
|
## Contributing
|
|
285
289
|
|
|
286
|
-
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](CONTRIBUTING.md) document for more instructions!
|
|
290
|
+
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](https://github.com/NASA-ACROSS/across-client/blob/main/CONTRIBUTING.md) document for more instructions!
|
|
287
291
|
|
|
288
292
|
## Other Links
|
|
289
293
|
|
|
@@ -24,7 +24,11 @@ cd across-client
|
|
|
24
24
|
python -m pip install .
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
or the latest released version with `pip`
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
python -m pip install across-client
|
|
31
|
+
```
|
|
28
32
|
|
|
29
33
|
## Usage
|
|
30
34
|
|
|
@@ -52,7 +56,7 @@ nircam_observations = client.observation.get_many(
|
|
|
52
56
|
|
|
53
57
|
## Contributing
|
|
54
58
|
|
|
55
|
-
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](CONTRIBUTING.md) document for more instructions!
|
|
59
|
+
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](https://github.com/NASA-ACROSS/across-client/blob/main/CONTRIBUTING.md) document for more instructions!
|
|
56
60
|
|
|
57
61
|
## Other Links
|
|
58
62
|
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.
|
|
32
|
-
__version_tuple__ = version_tuple = (
|
|
31
|
+
__version__ = version = '1.0.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 0, 0)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'ga2b2e33c5'
|
|
@@ -14,7 +14,7 @@ class Config(BaseConfig):
|
|
|
14
14
|
Core configuratiaon for across.client
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
|
-
HOST: str = "
|
|
17
|
+
HOST: str = "https://server.prod.across.smce.nasa.gov/api/v1"
|
|
18
18
|
ACROSS_SERVER_ID: str | None = None
|
|
19
19
|
ACROSS_SERVER_SECRET: str | None = None
|
|
20
20
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: across-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 1.0.0
|
|
4
4
|
Author-email: "Samuel D. Wyatt" <samuel.d.wyatt@nasa.gov>, "Jamie A. Kennea" <jak51@psu.edu>, Craig Pellegrino <craig.m.pellegrino@nasa.gov>
|
|
5
5
|
Maintainer-email: "Samuel D. Wyatt" <samuel.d.wyatt@nasa.gov>, "Jamie A. Kennea" <jak51@psu.edu>, Craig Pellegrino <craig.m.pellegrino@nasa.gov>
|
|
6
6
|
License: Apache License
|
|
@@ -255,7 +255,11 @@ cd across-client
|
|
|
255
255
|
python -m pip install .
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
|
|
258
|
+
or the latest released version with `pip`
|
|
259
|
+
|
|
260
|
+
```sh
|
|
261
|
+
python -m pip install across-client
|
|
262
|
+
```
|
|
259
263
|
|
|
260
264
|
## Usage
|
|
261
265
|
|
|
@@ -283,7 +287,7 @@ nircam_observations = client.observation.get_many(
|
|
|
283
287
|
|
|
284
288
|
## Contributing
|
|
285
289
|
|
|
286
|
-
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](CONTRIBUTING.md) document for more instructions!
|
|
290
|
+
Found a bug? Want to make a feature request? Or create a pull request? Navigate to our [Contributing](https://github.com/NASA-ACROSS/across-client/blob/main/CONTRIBUTING.md) document for more instructions!
|
|
287
291
|
|
|
288
292
|
## Other Links
|
|
289
293
|
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
.gitignore
|
|
5
5
|
.pre-commit-config.yaml
|
|
6
6
|
.readthedocs.yml
|
|
7
|
+
.release-please-manifest.json
|
|
7
8
|
.setup_dev.sh
|
|
9
|
+
CHANGELOG.md
|
|
8
10
|
CODE_OF_CONDUCT.md
|
|
9
11
|
CONTRIBUTING.md
|
|
10
12
|
LICENSE
|
|
11
13
|
README.md
|
|
12
14
|
pyproject.toml
|
|
15
|
+
release-please-config.json
|
|
13
16
|
.github/dependabot.yml
|
|
14
17
|
.github/pull_request_template.md
|
|
15
18
|
.github/ISSUE_TEMPLATE/bug.yaml
|
|
@@ -19,6 +22,7 @@ pyproject.toml
|
|
|
19
22
|
.github/workflows/build-documentation.yml
|
|
20
23
|
.github/workflows/pre-commit-ci.yml
|
|
21
24
|
.github/workflows/publish-to-pypi.yml
|
|
25
|
+
.github/workflows/release.yaml
|
|
22
26
|
.github/workflows/smoke-test.yml
|
|
23
27
|
.github/workflows/testing-and-coverage.yml
|
|
24
28
|
across/__init__.py
|
|
@@ -46,9 +50,13 @@ docs/conf.py
|
|
|
46
50
|
docs/index.rst
|
|
47
51
|
docs/notebooks.rst
|
|
48
52
|
docs/requirements.txt
|
|
53
|
+
docs/schedules.rst
|
|
54
|
+
docs/ssa.rst
|
|
55
|
+
docs/visibility.rst
|
|
56
|
+
docs/_static/logo.png
|
|
49
57
|
docs/notebooks/README.md
|
|
50
|
-
docs/notebooks/intro_notebook.ipynb
|
|
51
58
|
docs/pre_executed/README.md
|
|
59
|
+
docs/pre_executed/getting_started.ipynb
|
|
52
60
|
examples/001_accessing_SSA_model_data.ipynb
|
|
53
61
|
examples/002_calculating_instrument_visibility_windows.ipynb
|
|
54
62
|
tests/apis/filter/conftest.py
|
|
Binary file
|
|
@@ -54,5 +54,12 @@ autoapi_dirs = ["../across"]
|
|
|
54
54
|
autoapi_ignore = ["*/__main__.py", "*/_version.py"]
|
|
55
55
|
autoapi_add_toc_tree_entry = False
|
|
56
56
|
autoapi_member_order = "bysource"
|
|
57
|
-
|
|
57
|
+
# -- HTML output options -----------------------------------------------------
|
|
58
58
|
html_theme = "sphinx_rtd_theme"
|
|
59
|
+
html_static_path = ["_static"]
|
|
60
|
+
|
|
61
|
+
# Logo configuration
|
|
62
|
+
html_logo = "_static/logo.png"
|
|
63
|
+
|
|
64
|
+
# Favicon configuration (optional - browser tab icon)
|
|
65
|
+
# html_favicon = "_static/favicon.ico"
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
|
|
2
|
+
.. across-client documentation main file.
|
|
3
|
+
|
|
4
|
+
across-client Documentation
|
|
5
|
+
========================================================================================
|
|
6
|
+
|
|
7
|
+
**across-client** is a Python library used to access and manipulate data products from NASA-ACROSS's ``core-server``.
|
|
8
|
+
It provides functionality to easily retrieve and push data from the server combined with
|
|
9
|
+
functionality from the ``across-tools`` package to manipulate the data to enable a variety of scientific use cases.
|
|
10
|
+
|
|
11
|
+
**across-client** is developed and maintained by NASA's Astrophysics
|
|
12
|
+
Cross Observatory Science Support (ACROSS) Team, and is part of the larger
|
|
13
|
+
ACROSS software ecosystem, which includes APIs and scientific tools for accessing
|
|
14
|
+
information about astronomical observatories, instruments, and observation
|
|
15
|
+
planning. **across-client** is designed to be a module that enables users to easily access the data products
|
|
16
|
+
and conduct the scientific analyses needed for their individual use cases.
|
|
17
|
+
|
|
18
|
+
Features
|
|
19
|
+
--------
|
|
20
|
+
|
|
21
|
+
**across-client** provides access to Science Situational Awareness (SSA) model data, broadly
|
|
22
|
+
encompassing state and status information of NASA's fleet of observatories. This includes:
|
|
23
|
+
|
|
24
|
+
- **Observing Facility Data**: Retrieve real-time information about NASA's observing fleet, including observatory, telescope, and instrument metadata.
|
|
25
|
+
- **Planned and Performed Schedules and Observations**: Search for telescope observation schedules, both past and future.
|
|
26
|
+
- **Visibility Computation**: Calculate target visibility windows based on instrument constraints to aid in scheduling submitting observation requests.
|
|
27
|
+
|
|
28
|
+
Installation
|
|
29
|
+
-------------
|
|
30
|
+
|
|
31
|
+
Install from PyPI:
|
|
32
|
+
|
|
33
|
+
.. code-block:: console
|
|
34
|
+
|
|
35
|
+
>> pip install across-client
|
|
36
|
+
|
|
37
|
+
Or install from source:
|
|
38
|
+
|
|
39
|
+
.. code-block:: console
|
|
40
|
+
|
|
41
|
+
>> git clone https://github.com/NASA-ACROSS/across-client.git
|
|
42
|
+
>> cd across-client
|
|
43
|
+
>> pip install -e .
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
Quickstart
|
|
47
|
+
-----------
|
|
48
|
+
|
|
49
|
+
Retrieving Observatory Information
|
|
50
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
51
|
+
|
|
52
|
+
.. code-block:: python
|
|
53
|
+
|
|
54
|
+
from across.client import Client
|
|
55
|
+
|
|
56
|
+
client = Client()
|
|
57
|
+
# GET an observatory by name
|
|
58
|
+
observatories = client.observatory.get_many(name="JWST")
|
|
59
|
+
observatory = observatories[0]
|
|
60
|
+
|
|
61
|
+
# GET an observatory by telescope name
|
|
62
|
+
observatories = client.observatory.get_many(telescope_name="UVOT")
|
|
63
|
+
observatory = observatories[0]
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
Retrieving Schedules
|
|
67
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
68
|
+
|
|
69
|
+
.. code-block:: python
|
|
70
|
+
|
|
71
|
+
from across.client import Client
|
|
72
|
+
|
|
73
|
+
client = Client()
|
|
74
|
+
# GET schedules with given fidelity and status
|
|
75
|
+
schedules = client.schedule.get_many(page=1, page_limit=10, fidelity="low", status="planned")
|
|
76
|
+
print(f"Page: {schedules.page}")
|
|
77
|
+
print(f"Number of schedules returned: {len(schedules.items)}")
|
|
78
|
+
print(f"Total number of schedules: {schedules.total_number}")
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Computing Target Visibility
|
|
82
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
83
|
+
|
|
84
|
+
.. code-block:: python
|
|
85
|
+
|
|
86
|
+
from across.client import Client
|
|
87
|
+
from datetime import datetime
|
|
88
|
+
|
|
89
|
+
client = Client()
|
|
90
|
+
|
|
91
|
+
# Set target and query parameters
|
|
92
|
+
target_ra = 83.86662
|
|
93
|
+
target_dec = -69.26986
|
|
94
|
+
|
|
95
|
+
date_range_begin = datetime(2025, 12, 23, 0, 0, 0)
|
|
96
|
+
date_range_end = datetime(2025, 12, 24, 0, 0, 0)
|
|
97
|
+
|
|
98
|
+
uvot = client.instrument.get_many(name="UVOT")[0]
|
|
99
|
+
|
|
100
|
+
# Calculate windows
|
|
101
|
+
visibility_windows = client.visibility_calculator.calculate_windows(
|
|
102
|
+
instrument_id=uvot.id,
|
|
103
|
+
ra=target_ra,
|
|
104
|
+
dec=target_dec,
|
|
105
|
+
date_range_begin=date_range_begin,
|
|
106
|
+
date_range_end=date_range_end,
|
|
107
|
+
)
|
|
108
|
+
print(visibility_windows.model_dump_json(indent=4))
|
|
109
|
+
|
|
110
|
+
Development
|
|
111
|
+
-----------
|
|
112
|
+
|
|
113
|
+
Setting Up Development Environment
|
|
114
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
115
|
+
|
|
116
|
+
If you wish to help development or contribute to the project, follow these steps to set up
|
|
117
|
+
a development environment using a python virtual environment:
|
|
118
|
+
|
|
119
|
+
.. code-block:: console
|
|
120
|
+
|
|
121
|
+
# Clone the repo
|
|
122
|
+
>> git clone git@github.com:NASA-ACROSS/across-client.git
|
|
123
|
+
>> cd across-client
|
|
124
|
+
# Create and activate a virtual environment
|
|
125
|
+
>> python -m venv .venv
|
|
126
|
+
>> source .venv/bin/activate
|
|
127
|
+
# Install development dependencies
|
|
128
|
+
>> pip install -e .
|
|
129
|
+
# Install pre-commit hooks
|
|
130
|
+
>> pre-commit install
|
|
131
|
+
|
|
132
|
+
Note: please be sure in to run the last command to install the pre-commit hooks, which will
|
|
133
|
+
help ensure code quality and consistency.
|
|
134
|
+
|
|
135
|
+
.. toctree::
|
|
136
|
+
:hidden:
|
|
137
|
+
|
|
138
|
+
Home page <self>
|
|
139
|
+
Observing Facility Data <ssa>
|
|
140
|
+
Schedule and Observation Retrieval <schedules>
|
|
141
|
+
Visibility Calculation <visibility>
|
|
142
|
+
API Reference <autoapi/index>
|
|
143
|
+
Notebooks <notebooks>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Demonstration Notebooks
|
|
2
|
+
|
|
3
|
+
This directory contains Jupyter notebooks that demonstrate how to use the across-client library.
|
|
4
|
+
|
|
5
|
+
## Notebooks
|
|
6
|
+
|
|
7
|
+
- **getting_started.ipynb**: Introduction to the core functionality of across-client, including retrieving data from the ACROSS core-server and computing target visibility windows.
|
|
8
|
+
|
|
9
|
+
## Running Notebooks
|
|
10
|
+
|
|
11
|
+
These notebooks are designed to be run with the across-client package installed. To set up your environment:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install -e .
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Documentation Integration
|
|
18
|
+
|
|
19
|
+
Notebooks in this directory are automatically rendered and included in the ReadTheDocs documentation.
|
|
20
|
+
To add a new notebook:
|
|
21
|
+
|
|
22
|
+
1. Create the notebook in this directory
|
|
23
|
+
2. Add an entry to `../notebooks.rst` referencing your notebook
|
|
24
|
+
3. Include a markdown cell at the beginning with a `# Title` that will be used in the table of contents
|
|
25
|
+
|
|
26
|
+
## Pre-executed Notebooks
|
|
27
|
+
|
|
28
|
+
For notebooks that require large datasets, external API access, or significant compute resources,
|
|
29
|
+
place them in the `../pre_executed/` directory instead. These notebooks should be run manually
|
|
30
|
+
and their outputs saved before committing.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Notebooks
|
|
2
|
+
========================================================================================
|
|
3
|
+
These example notebooks demonstrate how to use the across-client library to interface
|
|
4
|
+
with the ACROSS ``core-server`` to retrieve observatory/telescope/instrument metadata,
|
|
5
|
+
schedules and observations, and to perform visibility window calculations.
|
|
6
|
+
|
|
7
|
+
Getting Started with across-client
|
|
8
|
+
-----------------------------------
|
|
9
|
+
.. toctree::
|
|
10
|
+
:maxdepth: 1
|
|
11
|
+
|
|
12
|
+
Getting Started with across-client <pre_executed/getting_started>
|