Metadata-Version: 2.4
Name: sam45
Version: 1.0.0rc2
Summary: NRO/SAM45 log data reader
Project-URL: homepage, https://astropenguin.github.io/sam45
Project-URL: repository, https://github.com/astropenguin/sam45
Author-email: Akio Taniguchi <a-taniguchi@mail.kitami-it.ac.jp>
License: MIT License
        
        Copyright (c) 2025 Akio Taniguchi
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: astronomy,nro,python,radio-astronomy,sam45
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: <3.15,>=3.10
Requires-Dist: numpy<3,>=2
Requires-Dist: tomli<3,>=2
Description-Content-Type: text/markdown

# SAM45

[![Release](https://img.shields.io/pypi/v/sam45?label=Release&color=cornflowerblue&style=flat-square)](https://pypi.org/project/sam45/)
[![Python](https://img.shields.io/pypi/pyversions/sam45?label=Python&color=cornflowerblue&style=flat-square)](https://pypi.org/project/sam45/)
[![Downloads](https://img.shields.io/pypi/dm/sam45?label=Downloads&color=cornflowerblue&style=flat-square)](https://pepy.tech/project/sam45)
[![Tests](https://img.shields.io/github/actions/workflow/status/astropenguin/45m/tests.yaml?label=Tests&style=flat-square)](https://github.com/astropenguin/sam45/actions)

NRO/SAM45 log data reader

## Installation

```shell
pip install sam45
```

## Usage

The following functions will read a SAM45 log to extract each information as [a NumPy structured array](https://numpy.org/doc/stable/user/basics.rec.html).

```python
import sam45

data_ctl = sam45.read.ctl("/path/to/log")
data_obs = sam45.read.obs("/path/to/log")
data_dat = sam45.read.dat("/path/to/log")
data_end = sam45.read.end("/path/to/log")
```

## Data types

The data type of each information is defined as [a NumPy structured data type](https://numpy.org/doc/stable/reference/arrays.dtypes.html).
It complies with the definition as of December 5, 2025.

```python
import sam45

dtype_ctl = sam45.dtypes.ctl
dtype_obs = sam45.dtypes.obs
dtype_dat = sam45.dtypes.dat
dtype_end = sam45.dtypes.end
```
