Skip to main content

HERA strip: A tool for simulating and visualizing diffuse sky models for HERA observations.

Project description

HERA Strip

HERA Strip is an open source Python project that simulates and visualizes the diffuse radio sky using a global sky model. It leverages pygdsm, healpy, astropy, and Bokeh to create interactive sky maps over time from a given observer location.

Installation

You can install HERA Strip in several ways:

From PyPI (recommended)

pip install hera_strip

From source

Clone the repository and install:

git clone https://github.com/yourusername/hera_strip.git
cd hera_strip
pip install .

For development:

git clone https://github.com/yourusername/hera_strip.git
cd hera_strip
pip install -e .

Usage

Command Line Interface

HERA Strip provides a command-line interface:

# Basic usage
hera-strip --location "-30.7,21.4" --start "2023-04-06T00:00:00" --duration 86400 --frequency 76

# Save output to a directory
hera-strip --location "-30.7,21.4" --start "2023-04-06T00:00:00" --duration 86400 --frequency 76 --output "./output"

Python API

from astropy.coordinates import EarthLocation
from astropy.time import Time
from herastrip import HeraStripSimulator

# Create a simulator instance
location = EarthLocation(lat=-30.7, lon=21.4)  # HERA location
obstime = Time("2023-04-06T00:00:00")
simulator = HeraStripSimulator(
    location=location,
    obstime_start=obstime,
    total_seconds=86400,  # 24 hours
    frequency=76  # MHz
)

# Run the simulation
simulator.run_simulation(save_simulation_data=True, folder_path="./output")

Development

Building the package

pip install build
python -m build

Running tests

pip install pytest
pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

hera_strip-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

hera_strip-0.1.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file hera_strip-0.1.0.tar.gz.

File metadata

  • Download URL: hera_strip-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hera_strip-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d6cf156bd2171e4463c3aa781fb4524afc65d33bf4671a699fb0050a9d341d3
MD5 2f99f165aab4eb5b1a63d3218403cef6
BLAKE2b-256 09736a681f47571dac4a9b100e3f3e4d1fb9a7c1ffb062babaa6b9cea00b390c

See more details on using hashes here.

File details

Details for the file hera_strip-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hera_strip-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hera_strip-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e84d2f32b604b8cb7e13c56bb170820c61202c0cc070a2d0694a5503fc8a78ff
MD5 3ab8e5a91f3817da7b683412d5c2ffd1
BLAKE2b-256 87ae1be969b35c5c2dad53f4f91c9ba8c9299d0a84a40017df1ab063978c113a

See more details on using hashes here.

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