Skip to content

astropenguin/sam45

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAM45

Release Python Downloads DOI Tests

NRO/SAM45 log data reader

Installation

pip install sam45

Usage

The following functions will read a SAM45 log to extract each information as a NumPy structured array.

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. It complies with the definition as of December 5, 2025.

import sam45

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