---
# System prepended metadata

title: DSECS toolbox

---

# DSECS toolbox

https://earth.esa.int/eogateway/activities/dipolar-spherical-elementary-current-systems-dsecs-toolbox

From the matlab tool:
![](https://i.imgur.com/xJgVCzA.png)

## Inputs needed

- MAG_LR (A&C)
    - `B_NEC, Latitude, Longitude, Radius`
    - with CHAOS model residual
- `apexLat`: (rename to `ApexLatitude`?)
  apex coordinates via apexpy (or are QD coordinates okay? those already available from VirES as QDLat/QDLon)
  Used for separating the analysis between each hemisphere
- `ggFPlat`, `ggFPlon`: (rename to `FootprintLatitude`?)
  Ionospheric footprints of measurements (trace the magnetic field model from the measurement @~450km to the E-region @~130km): can be obtained from taking the inverse transformation (apex->geo, replacing the altitude) of the apex coordinates of the measurement points. These are used to exclude a region of unreliable results around the equator.
- `Uv`: (rename to ?)
  Unit vector in direction of magnetic field model (i.e. from `B_NEC_Model`)