Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# Change Log

All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [0.1.1] - 2024-XX-XX
## [0.1.1] - 2025-XX-XX

* Update metadata standards
* Update variable names to indicate which dosimeter is used
* Update setup instructions on readme file
* Removed chained indices for improved pandas 3.0 compatibility
* Disabled new multi-day tests inherited from pysat

## [0.1.0] - 2023-07-23

* Improved metadata standards for SPDF compatibility
* New file naming convention for l1c data
* Added download function
* New script to check on files generated

## [0.0.1] - 2022-10-28

* Initial release
2 changes: 2 additions & 0 deletions ops_reach/instruments/aero_reach.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
# Only setting one inst_id to true since downloads all files.
_test_dates = {'105': {'l1b': dt.datetime(2017, 2, 24)}}
_test_download = {'105': {'l1b': True}}
# Disabling multi-day tests since this functionality is not used in this context
_new_tests = {'105': {'l1b': False}}


def init(self):
Expand Down
14 changes: 7 additions & 7 deletions ops_reach/instruments/methods/reach.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,21 +337,21 @@ def generate_metadata(header_data):
'SCALEMIN': 1.0e-5,
'SCALEMAX': 1.0,
'SCALETYP': 'log'}
meta['proton_flux1'] = {meta.labels.name: 'Proton flux from bowtie',
meta['proton_flux1'] = {meta.labels.name: 'Proton flux from bowtie 1',
meta.labels.units: '#/cm^2/sr/s',
meta.labels.min_val: 0.0,
meta.labels.max_val: 1.0e7,
'SCALEMIN': 1.0,
'SCALEMAX': 1.0e7,
'SCALETYP': 'log'}
meta['electron_flux1'] = {meta.labels.name: 'Electron flux from bowtie',
meta['electron_flux1'] = {meta.labels.name: 'Electron flux from bowtie 1',
meta.labels.units: '#/cm^2/sr/s',
meta.labels.min_val: 0.0,
meta.labels.max_val: 1.0e9,
'SCALEMIN': 1.0,
'SCALEMAX': 1.0e9,
'SCALETYP': 'log'}
meta['species1'] = {meta.labels.name: 'Most probable species',
meta['species1'] = {meta.labels.name: 'Most probable species for Dosimeter 1',
meta.labels.notes: '; '.join(('0 (not currently used)',
'1-protons, 2-electrons',
'and 3-both / ambiguous')),
Expand All @@ -366,21 +366,21 @@ def generate_metadata(header_data):
'SCALEMIN': 1.0,
'SCALEMAX': 1.0e9,
'SCALETYP': 'log'}
meta['proton_flux2'] = {meta.labels.name: 'Proton flux from bowtie',
meta['proton_flux2'] = {meta.labels.name: 'Proton flux from bowtie 2',
meta.labels.units: '#/cm^2/sr/s',
meta.labels.min_val: 0.0,
meta.labels.max_val: 1.0e10,
'SCALEMIN': 1.0,
'SCALEMAX': 1.0e10,
'SCALETYP': 'log'}
meta['electron_flux2'] = {meta.labels.name: 'Electron flux from bowtie',
meta['electron_flux2'] = {meta.labels.name: 'Electron flux from bowtie 2',
meta.labels.units: '#/cm^2/sr/s',
meta.labels.min_val: 0.0,
meta.labels.max_val: 1.0e11,
'SCALEMIN': 1.0,
'SCALEMAX': 1.0e11,
'SCALETYP': 'log'}
meta['species2'] = {meta.labels.name: 'Most probable species',
meta['species2'] = {meta.labels.name: 'Most probable species for Dosimeter 2',
meta.labels.notes: '; '.join(('0 (not currently used)',
'1-protons, 2-electrons',
'and 3-both / ambiguous')),
Expand Down Expand Up @@ -480,7 +480,7 @@ def generate_metadata(header_data):

# Set non-log SCALETYP to linear
ind = meta.data['SCALETYP'] == ''
meta.data['SCALETYP'][ind] = 'linear'
meta.data.loc[ind, 'SCALETYP'] = 'linear'

return meta

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ markers = [
"download",
"no_download",
"load_options",
"new_tests",
"first",
"second"
]