# BARREL Balloon Array for Radiation-belt Relativistic Electron Losses: X-ray Spectra and Magnetometer Data (CDAWeb on HelioCloud)

## Facts

- Provider: NASA SPDF CDAWeb (HelioCloud mirror) / BARREL team (R. Millan, Dartmouth College)
- License: CC0-1.0 (https://heliophysicsdata.gsfc.nasa.gov/WS/hdp/1/Spase?ResourceID=spase://NASA/NumericalData/BARREL/1A/FastSpectra/L2/PT0.05S)
- Format: CSV (in sampled files)
- Stored at: Amazon S3, s3://gov-nasa-hdrl-data1/spdf/cdaweb/data/barrel (us-east-1)
- Access: public, readable without an account
- Category: Astronomy & Space
- Source: https://cdaweb.gsfc.nasa.gov/pub/data/barrel/
- Page: https://scigantic.com/archive/d911ab5d-3532-511b-bdea-b7cf25fc3c46
- Keywords: Astronomy & Space, heliophysics, magnetometer, spectroscopy, CSV, AWS Open Data

## About

Level 2 data from NASA's BARREL (Balloon Array for Radiation-belt Relativistic Electron Losses), campaigns of high-altitude balloons that measured bremsstrahlung X-rays from radiation belt electrons precipitating into the atmosphere, coordinated with the Van Allen Probes. The HelioCloud catalog lists 387 CDAWeb datasets, about eight per balloon payload (folders such as 1a, 2m, 4c), covering campaigns from 2013 to 2020. Per payload: fast (50 ms) bremsstrahlung X-ray spectra (FSPC), medium (4 s) and slow spectra (MSPC, SSPC), three-axis magnetometer, GPS ephemeris coordinates, and analog housekeeping. Files are CDF. Files mirror the NASA SPDF CDAWeb tree (instrument, data level, product, year) in the HelioCloud bucket and are listed in the HelioCloud catalog.json; read them with cdflib, SpacePy or pySPEDAS. License: CC0 1.0, per the dataset's SPASE record and the NASA Heliophysics Science Data Management Policy. Cite the instrument teams and the dataset DOIs given on each CDAWeb dataset page, and acknowledge SPDF/CDAWeb.

## Load the data

```python
import boto3
from botocore import UNSIGNED
from botocore.client import Config
s3 = boto3.client('s3', region_name='us-east-1', config=Config(signature_version=UNSIGNED))
s3.list_objects_v2(Bucket='gov-nasa-hdrl-data1', Prefix='spdf/cdaweb/data/barrel/', Delimiter='/')
```

Lists the files with anonymous access. Runs on any machine, with no cloud account.

## Data structure

File types in sampled files: CSV

Example file: `spdf/cdaweb/data/barrel/indices/BAR_1A_L2_EPHM_2013.csv`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/d911ab5d-3532-511b-bdea-b7cf25fc3c46
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/d911ab5d-3532-511b-bdea-b7cf25fc3c46
- Over MCP: `get_schema_card` with id `d911ab5d-3532-511b-bdea-b7cf25fc3c46` at https://api.scigantic.com/mcp

## Related topics

- [CSV datasets](https://scigantic.com/topics/csv)
- [Astronomy & Space datasets](https://scigantic.com/topics/astronomy-and-space)
- [Spectroscopy datasets](https://scigantic.com/topics/spectroscopy)
- [Heliophysics datasets](https://scigantic.com/topics/heliophysics)
- [Magnetometer datasets](https://scigantic.com/topics/magnetometer)
