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

load simple and multiple file types #50

Merged
merged 14 commits into from
Jun 2, 2021
Merged

load simple and multiple file types #50

merged 14 commits into from
Jun 2, 2021

Conversation

aburrell
Copy link
Member

Addresses #25 and #21.

import datetime as dt
import pysatMadrigal
import pysat

stime = dt.datetime(2011, 8, 16)
etime = stime + dt.timedelta(days=2)

dmsp = pysat.Instrument(inst_module=pysatMadrigal.instruments.dmsp_ivm, tag='utd', inst_id='f15')
dmsp.download(start=stime, file_type='hdf5')
dmsp.download(start=stime+dt.timedelta(days=1), file_type='simple')
dmsp.load(date=stime, end_date=etime)
print(dmsp.data)

This should load 2 days of data, one of which is from an HDF5 file, the other of which is from a simple.gz file.

Added a load option for simple Madrigal data.
Fixed the limitation where only one type of file format could be listed at once.
Added a description of the changes to the changelog.
Added the missing pandas import.
Fixed spacing to conform with PEP8 requirements.
@aburrell aburrell requested a review from rstoneback May 28, 2021 13:23
@aburrell aburrell added this to the 0.0.4 Release milestone May 28, 2021
This was linked to issues May 28, 2021
Re-add missing kwargs that were accidentally removed.
@rstoneback rstoneback mentioned this pull request May 28, 2021
rstoneback and others added 5 commits May 28, 2021 15:09
Added a general `list_files` routine for multiple file types.
Changed the individual instruments to use the general `list_files` routine.
Fixed the incorrect assignment of a routine variable name that would have overwritten another variable.
@aburrell aburrell requested a review from rstoneback June 1, 2021 16:04
Fixed the mis-spelling of a module name.
Copy link
Collaborator

@rstoneback rstoneback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aburrell!

@aburrell aburrell merged commit 462dd78 into develop Jun 2, 2021
@aburrell aburrell deleted the file_selection branch June 2, 2021 12:15
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.

TEC with HDF5 and netCDF4 Load simple files
2 participants