Skip to content

ENH: added support for Madrigal data - #14

Merged
aburrell merged 66 commits into
developfrom
madrigal
Nov 23, 2026
Merged

aburrell merged 66 commits into
developfrom
madrigal

Conversation

@aburrell

Copy link
Copy Markdown
Collaborator

Description

Added new instruments and methods that support downloading and managing the CEDAR Madrigal data sets.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Added unit tests and tried out instruments.

Test Configuration:

  • Operating system: OS X Tahoe
  • Version number: Python 3.10
  • Any details about your local setup that are relevant

Checklist:

  • Make sure you are merging into the develop (not main) branch
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have linted the files updated in this pull request
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • Add a note to CHANGELOG.md, summarizing the changes
  • Update CITATION.cff file for new code contributors

If this is a release PR, replace the first item of the above checklist with the
release checklist on this wiki:
https://github.com/aburrell/ocbpy/wiki/Release-Checklist

Added instrument methods for Madrigal data sets.
Added coordinate conversions commonly needed for ground-based instruments.
Added optional dependencies for Madrigal instruments.
Added Instruments for handling Madrigal data sets.
Made the error messages more informative.
Added unit tests for the ground-based instrument coordinate conversions.
Fixed bugs in the DMSP methods revealed by the unit tests.
Added unit tests for the DMSP methods.
Removed the deprecated frequency formats from the DMSP SSJ data.
Fixed the logic for updating the meta data.
Added unit tests for the general madrigal instrument methods.
Added unit tests for the Madrigal GNSS method functions.
Added unit tests for the Madrigal JRO instrument methods.
Reconfigure the CI testing to only do the full set for the release candidate, and perform a reduced subset focusing on the most recent Python version for development.
Added documentation for the Madrigal instruments and methods.
Update download warning period to not include dates in the future.
Test for top key and change the assignment method if it does or doesn't exist.
Add an index name before recasting time series data into xarray.
Fix the loading time selection to be appropriate for xarray.
Remove the `meta` variable from the list of returned TEC values.
Fix the comments and time selection in the SSJ load function.
Added a closing parentheses.
Move the parenthesis to the correct location.
Add a log catch if extra data is present in a data set.
Update the data variables present in the oblique JRO ISR data files.
Only evaluate attributes that exist, and ensure the time variable is appropriately named.
Add the Madrigal instruments to the instrument unit/integration test suite.
Remove xarray attribute from a normal dictionary.
Fixed an overly indented line.
Fixed PEP8 error identified with CI.
 Change CI to exit on first failure.
Updated links that have been permenantly redirected.
Updated another URL that was permenantly redirecting.
Update the Madrigal site to use https.
Added retries and a time delay to the Madrigal listing of remote experiments.
Remove the extra whitespace after new lines.
Added more retry/pause loops for the Madrigal connections.
Updated the error handling for failed connections and downloads with the retry logic.
Fixed the propagation of the error message outside of the try/except loop.
Add a missing break upon success.
Cast the data before multiplying.
Added unit tests for `build_madrigal_datetime_index`.  Fixed a bug in the simple file evaluation.
Fixed the incorrect underline length in the Madrigal Instrument docstrings.
Try explicitly extracting the arrays from the pandas DataFrame.
Fixed a too-long underline length in the docstring.
Try removing the `loc` call.
Update the docstrings to use the correct "Notes" section instead of the custom "Note" section header.
The file conversion for HDF5 datasets in pandas changed around v3.1.1.  Convert the HDF5 data into a dict and then into pandas.
Switched from dims ti sizes.
Fixed the HDF5 assignment to pandas and the masking of data in the AE cleaning routine.
Fixed section titles and underline lengths.
Ensure variable is maintained and not discarded.
Added a quick exit if no data has been loaded.
If no indices are supplied, to not attempt to assign any values to them.
Fixed the new evaluation logic to work as well for a single index value.
Peruvian website has been finicky, and has a captcha.  Linking to Wikipedia, which has a link to the official site.
Fixed the type evaluation to be correct.
Fixed indexing to work in newer versions of pandas.
@aburrell
aburrell merged commit d5de5eb into develop Nov 23, 2026
52 of 54 checks passed
@aburrell
aburrell deleted the madrigal branch November 23, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants