__init__ (
self,
id,
url,
name,
siteid,
sitename,
instcode,
instname,
startyear,
startmonth,
startday,
starthour,
startmin,
startsec,
endyear,
endmonth,
endday,
endhour,
endmin,
endsec,
isLocal,
madrigalUrl,
)
__init__ initializes a MadrigalExperiment.
Inputs:
id (int, or string that can be converted) Example: 10000111. Uniquely identifies experiment.
url (string) Example: 'http://madrigal.haystack.mit.edu/cgi-bin/madtoc/1997/mlh/03dec97'
name (string) Example: 'Wide Latitude Substorm Study'
siteid (int, or string that can be converted) Example: 1
sitename (string) Example: 'Millstone Hill Observatory'
instcode (int, or string that can be converted) Code of instrument. Example: 30
instname (string) Instrument name. Example: 'Millstone Hill Incoherent Scatter Radar'
startyear - int, or string that can be converted
startmonth - int, or string that can be converted
startday - int, or string that can be converted
starthour - int, or string that can be converted
startmin - int, or string that can be converted
startsec - int, or string that can be converted
endyear - int, or string that can be converted
endmonth - int, or string that can be converted
endday - int, or string that can be converted
endhour - int, or string that can be converted
endmin - int, or string that can be converted
endsec - int, or string that can be converted
isLocal - True if a local experiment, False if not
madrigalUrl - url of Madrigal site. Used if not a local experiment.
Returns: void
Affects: Initializes all the class member variables.
Exceptions: If illegal argument passed in.
Exceptions
|
|
ValueError, 'In MadrigalExperiment, instname not string type: %s' %(str( instname ) )
ValueError, 'In MadrigalExperiment, isLocal not boolean: %s' %(str( isLocal ) )
ValueError, 'In MadrigalExperiment, madrigalUrl not string type: %s' %(str( madrigalUrl ) )
ValueError, 'In MadrigalExperiment, name not string type: %s' %(str( name ) )
ValueError, 'In MadrigalExperiment, sitename not string type: %s' %(str( sitename ) )
ValueError, 'In MadrigalExperiment, url not string type: %s' %(str( url ) )
|
|