Skip to content

lkilcommons/nasaomnireader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nasaomnireader

Download, read, and manuipulate NASA OMNIWeb data

Build Status

The tools in this packaged used to be part of lkilcommons/geospacepy-lite. As of version 0.2 of geospacepy-lite, nasaomnireader is now it's own package.

Data Sources

The package automatically downloads data from the NASA OMNIWeb website. It can use data in two formats:

Text

By default, text files are downloaded and used.

WARNING: metadata for text files is supplied from hardcoded, dumped CDF file metadata

CDF

The NASA CDF format files will be downloaded if the code finds the following packages on your computer:

  1. The NASA CDF Library

  2. Spacepy, for it's pyCDF python interface to the NASA CDF Library

Installation Instructions

  • Clone the repository
  • python setup.py install

Example code using omnireader:

from nasaomnireader import omnireader
#Create a time window
sTimeIMF = datetime.datetime(2010,1,1)
eTimeIMF = datetime.datetime(2010,1,3)

#omni_interval is a dictionary-like object 
#that you can use to get the omni data for
#any variable as a numpy array 
#for any span of time
omniInt = omnireader.omni_interval(sTimeIMF,eTimeIMF,'5min')
t = omniInt['Epoch'] #datetime timestamps
By,Bz = omniInt['BY_GSM'],omniInt['BZ_GSM']

Who do I talk to?

  • This repository was created and is managed by Liam M. Kilcommons at CU Boulder

About

Tools for reading NASA OMNIWeb data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages