Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Support for loading .STS files (and .XML associated meta files) #229

Open
t-esman opened this issue May 2, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@t-esman
Copy link
Collaborator

t-esman commented May 2, 2024

Description

A method for loading .STS (standard time series) and .XML files into pysat.

Potential impact

This will allow for the addition of magnetometer data directly from PDS to be loaded into pysat. For example (https://pds-ppi.igpp.ucla.edu/item/urn:nasa:pds:maven.mag.calibrated:data.ss:mvn_mag_l2_2014284ss1s_20141011::1.1) magnetometer data from MAVEN and MGS are separated into .STS and .XML files. Other magnetometer data is likely similarly stored.

Potential solution(s)

An .sts loader already exists that is potentially compatible for pysat (written by tesman and j. gruesbeck (GSFC code 695)). However, it is limited to a resulting xarray dataset (Cannot yet produce pandas). Additionally, it does not load any meta and likely needs edits. Additional code is necessary.

Alternatives

The only alternative used so far has been to load the .STS file into IDL, save the file as a .sav and then open that with pysat. (MGS dataset)

Additional context

Noting that MGS files are stored with doy and a lack of an appropriate epoch/time. So these potentially have to be accounted for.

@t-esman t-esman added the enhancement New feature or request label May 2, 2024
@t-esman t-esman self-assigned this May 2, 2024
@jklenzing
Copy link
Member

Thanks @t-esman! If the data series is 1D, you can post-process using dataset.to_pandas() to convert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants