Skip to content

Releases: jgieseler/solo-epd-loader

v0.4.1

14 Feb 14:46
b31c795
Compare
Choose a tag to compare

What's Changed

  • Improve support for EPT level 3 data by providing more metadata
  • Change package structure to follow new OpenAstronomy template (using pyproject.toml instead of setup.cfg)
  • Drop support for Python 3.8

Full Changelog: v0.4.0...v0.4.1

v0.4.0

22 Jan 13:55
Compare
Choose a tag to compare

What's Changed

  • Add support for EPT level 3 data. This dataset provides the electron data already in a corrected form. In addition, pitch angles with respect to the average magnetic field are provided. The dataset is structured a bit different, see Example 5 in the README. Not all data-manipulation functions support the new dataset yet (e.g., combine_channels).
  • cdflib fixed a very old bug in 1.3.3. Unfortunately, that change is breaking the workaround used so far to bypass the bug. This update fixes the occurring problems while being backwards compatible to cdflib<1.3.3. This might lead to small problems in existing code that obtains channel energy information (e.g., use meta['Electron_Bins_Text'][0] instead of meta['Electron_Bins_Text'][0][0]).
  • Verify compatibility with Python 3.11 and 3.12

Full Changelog: v0.3.8...v0.4.0

0.3.7

07 Mar 12:44
Compare
Choose a tag to compare

What's Changed

  • Change default behavior: With this version, the time index denotes the center of the measurement time interval (before it was the start). This behavior can be changed with the new pos_timestamp option (defaults to 'center', alternatively use 'start' for previous behavior).
  • Add experimental function combine_pixels that averages (per time step and energy) the fluxes (and uncertainties) of a list of STEP pixels into a combined pixel.
  • Implement custom warnings
  • Internal & small code changes

Full Changelog: v0.3.6...v0.3.7

v0.3.6

05 Sep 08:58
Compare
Choose a tag to compare

What's Changed

  • (Preliminary) Add new function calc_ept_corrected_e to correct EPT electron measurements for ion contamination

Full Changelog: v0.3.5...v0.3.6

v0.3.5

27 Jul 14:13
Compare
Choose a tag to compare

What's Changed

  • Fix a bug occurring with cdflib<1.0

Full Changelog: v0.3.4...v0.3.5

v0.3.4

24 Jul 13:34
Compare
Choose a tag to compare

What's Changed

  • Make resample_df independent of seppy
  • Add test functions & corresponding GitHub Actions
  • Remove 3.6 & 3.7 from supported Python versions because they're not srupported by sunpy any more
  • Clean requirements (hopefully fix #17 for conda-forge)

Full Changelog: v0.3.3...v0.3.4

v0.3.3

21 Jul 14:13
Compare
Choose a tag to compare

What's Changed

  • Bugfix circular import caused by adding function resample_df from seppy

Full Changelog: v0.3.2...v0.3.3

v0.3.2

21 Jul 13:31
Compare
Choose a tag to compare

What's Changed

  • Add function combine_channels to combine fluxes of multiple adjacent energy channels of EPT or HET (fix #13)
  • Obtain resampling function resample_df from seppy (fix #18)

Full Changelog: v0.3.1...v0.3.2

v0.3.1

20 Jul 14:53
Compare
Choose a tag to compare

What's Changed

  • Add omni-directional data (viewing='omni') for loading EPT and HET data (1d26657). This loads all four viewing directions and calculates an average of those following ('sun'+'asun'+'north'+'south')/4
  • Add tqdm progress bar to calc_electron (5599880)
  • Catch error when loading empty STEP data (ddc14cf)

Full Changelog: v0.3.0...v0.3.1

v0.3.0

11 Jul 13:33
Compare
Choose a tag to compare

What's Changed

  • STEP data loading rewritten. Now all STEP data is supported (fix #23)! Some unused data (e.g. counting rates) is skipped in the loading, which should result in less memory-consumption (and a little speed-up).
  • Returns all STEP data as normal-indexed DataFrame (previously only for new STEP data product; somehow fixes #9).
    Careful: This means the data is returned in a slightly different format; you might need to adjust your code!
    You can try to use the new helper function create_multiindex after obtaining the new DataFrame df to get a similar multiindexed DataFrame as before for the old STEP data product:
    >>> from solo_epd_loader import epd_load, create_multiindex
    >>> df, energies = epd_load(sensor='step', startdate=20220403, autodownload=True)
    >>> df = create_multiindex(df)
    >>> df.head()
                               DELTA_EPOCH   Integral_Avg_Flux                                          ...    Magnet_Avg_Uncertainty QUALITY_BITMASK QUALITY_FLAG SMALL_PIXELS_FLAG
                               DELTA_EPOCH Integral_Avg_Flux_0 Integral_Avg_Flux_1 Integral_Avg_Flux_2  ... Magnet_Avg_Uncertainty_31 QUALITY_BITMASK QUALITY_FLAG SMALL_PIXELS_FLAG
    Time                                                                                                ...                                                                         
    2022-04-03 00:00:00.396785         1.0         423233152.0         266092544.0         167752016.0  ...                  0.000000            18.0          1.0               0.0
    2022-04-03 00:00:01.396787         1.0         400162176.0         262457408.0         186587328.0  ...                  0.000000            18.0          1.0               0.0
    2022-04-03 00:00:02.396789         1.0         388228896.0         260276320.0         170106416.0  ...                  0.000000            18.0          1.0               0.0
    2022-04-03 00:00:03.396791         1.0         361180160.0         242100592.0         161865968.0  ...                  0.000000            18.0          1.0               0.0
    2022-04-03 00:00:04.396792         1.0         372317888.0         255187120.0         167752016.0  ...              24368.373047            18.0          1.0               0.0
    
    [5 rows x 132 columns]
  • Make compatible to cdflib 1.0 (fix #27)

Full Changelog: v0.2.8...v0.3.0