Skip to content

BUG: Issue with orbit and sgp4 defaults #84

@rstoneback

Description

@rstoneback

Describe the bug
If a user attempts to iterate by orbit using sgp4, with added quasi-dipole coordinates, to get orbits by local time, then things get wonky with default values.

The issue is pysat's filtering of orbit breaks. The sgp4 values and additional coordinates look ok.

To Reproduce
Steps to reproduce the behavior:
1.

# Define on-the-fly orbit breakdown input. Note that `mlt` variable will be added by custom function.
orbit_info = {"kind": "lt", "index": "mlt"}
# Instantiate satellite propagator. Note that `inclination` and `alt_periapsis` are keywords defined by
# `missions_sgp4` module, not pysat itself.
inst = pysat.Instrument("missions", "sgp4", orbit_info=orbit_info)
inst.custom_attach(
    pysatMissions.methods.magcoord.add_quasi_dipole_coordinates,
    kwargs={
        "glat_label": "geod_latitude",
        "glong_label": "geod_longitude",
        "alt_label": "geod_altitude",
    },
)
inst.load(2019, 2, use_header=True)
 
inst.orbits.next()
  1. Orbit breakdown is all weird and wrong.

Expected behavior
Normal orbit iteration.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Version Python 3.9
  • Other details about your setup that could be relevant

Additional context
I think the gradient in mlt is too low compared to pysat orbit defaults. We need to expose those parameters, and have optional and consistent orbit filtering across orbit types. This is really a pysat problem that is exposed via pysatMissions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions