Skip to main content

No project description provided

Project description

across-tools

Unit test smoke test

The across-tools repository is the NASA-ACROSS library to perform specific astronomy-related calculations on the data hosted in the across-server. This repository is responsible for instrument bandpasses, footprint, ephemeris, two-line element (tle) analysis, and observatory/instrument visibility calculations.

Installation

This repository can be installed on python (version >=3.10) environments.

#activate your python environment (conda, mamba, venv... etc)
git clone https://github.com/NASA-ACROSS/across-tools.git
cd across-tools
python -m pip install .

or the latest released version with pip

python -m pip install across-tools

Usage

Below is a small example on how to utilize the tools to initialize a simple footprint, and perform a healpix query on a projected instrument footprint.

from across.tools import Coordinate
from across.tools import Polygon
from across.tools.footprint import Footprint

simple_polygon = Polygon(
   coordinates=[
      Coordinate(ra=-0.5, dec=0.5),
      Coordinate(ra=0.5, dec=0.5),
      Coordinate(ra=0.5, dec=-0.5),
      Coordinate(ra=-0.5, dec=-0.5),
      Coordinate(ra=-0.5, dec=0.5)
   ]
)
footprint = Footprint(detectors=[simple_polygon])

projected_footprint = footprint.project(
   coordinate=Coordinate(ra=42, dec=42), roll_angle=45
)
pixels = projected_footprint.query_pixels()

Contributing

Found a bug? Want to make a feature request? Or create a pull request? Navigate to our Contributing document for more instructions!

Other Links

Open Science at NASA

Notice

NASA Docket No. GSC-19,469-1, and identified as "Astrophysics Cross-Observatory Science Support (ACROSS) System

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.“

The copyright notice to be included in the software is as follows:

Copyright © 2025 United States Government as represented by the Administrator of the National Aeronautics and Space Administration and The Penn State Research Foundation. All rights reserved. This software is licensed under the Apache 2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

across_tools-1.1.0.tar.gz (165.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

across_tools-1.1.0-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file across_tools-1.1.0.tar.gz.

File metadata

  • Download URL: across_tools-1.1.0.tar.gz
  • Upload date:
  • Size: 165.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for across_tools-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1e83526300ee2c90f6239f8f06ab19b3e6653ad769c5416fe43deb8ac14f834e
MD5 ae2a744f31ce55d31aa6a440ef38caf0
BLAKE2b-256 e3616b2ad6284a4163a3f52c6b24ae4d946b83dc4df1375eb41aa482930ae395

See more details on using hashes here.

Provenance

The following attestation bundles were made for across_tools-1.1.0.tar.gz:

Publisher: publish-to-pypi.yml on NASA-ACROSS/across-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file across_tools-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: across_tools-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for across_tools-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 090e3883ad2be063184972be6962a4467d6d546640f5e1803583c4f888bb6898
MD5 ef57a61de869ba2d8d09d5474b329495
BLAKE2b-256 01c71b657f97a10786d22262e0084ac3336d9de0d9b8750653e2fdd0cd41a3d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for across_tools-1.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on NASA-ACROSS/across-tools

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page