This function reads omni data from the NASA SPDF FTP server via anonymous FTP connection and maps it to the mongodb.
Warning
In general, nobody except the database admins will need to use this function
gme.ind.mapOmniMongo(1997,res=1)
written by AJ, 20130123
a class to represent a record of omni data. Extends gmeBase.gmeData. Insight on the class members can be obtained from the NASA SPDF site. note that Omni data is available from 1995-present day (or whatever the latest NASA has uploaded is), in 1 and 5 minute resolution.
Warning
AE,AL,AU,SYM/H,SYM/D,ASYM/H,and ASYM/D are included in the omni files and thus are read into this class. I cannot verify the quality of these indices distributed with Omni data. For quality assurance on these indices, use the functions in the gme.mag.indices module.
Note
If any of the members have a value of None, this means that they could not be read for that specific time
emptyOmniObj = gme.ind.omniRec()
written by AJ, 20130128
This method is used to convert a line of omni data read from the NASA SPDF FTP site into a omniRec object.
Note
In general, users will not need to worry about this.
Belongs to: omniRec
myOmniObj.parseFtp(ftpLine)
written by AJ, 20130123
This function reads omni data. First, it will try to get it from the mongodb, and if it can’t find it, it will look on the NASA SPDF FTP server using readOmniFtp()
import datetime as dt
omniList = gme.ind.readOmni(sTime=dt.datetime(2011,1,1),eTime=dt.datetime(2011,6,1),bx=[0,5.5],bye=[-1,3.5],bze=[-10,0],ae=[0,56.3])
written by AJ, 20130128
This function reads omni data from the NASA SPDF server via anonymous FTP connection.
Warning
You should not use this. Use the general function readOmni() instead.
import datetime as dt
omniList = gme.ind.readOmniFtp(dt.datetime(2011,1,1,1,50),eTime=dt.datetime(2011,1,1,10,0),res=5)
written by AJ, 20130128
alias of gme.ind.omni