MadrigalWeb
Documentation for MadrigalWeb.
MadrigalWeb.Experiment
MadrigalWeb.Instrument
MadrigalWeb.Parameter
MadrigalWeb.download_file
MadrigalWeb.download_files
MadrigalWeb.filter_by_kindat
MadrigalWeb.get_all_instruments
MadrigalWeb.get_experiment_file_parameters
MadrigalWeb.get_experiment_files
MadrigalWeb.get_experiments
MadrigalWeb.Experiment
— TypeA class that encapsulates information about a Madrigal Experiment.
Similar to the MadrigalExperiment
class in the madrigalWeb python module.
MadrigalWeb.Instrument
— TypeInstrument
A struct that encapsulates information about a Madrigal Instrument.
Fields
name
: Instrument name (e.g., 'Millstone Hill Incoherent Scatter Radar')code
: Instrument code (e.g., 30)mnemonic
: Three-character mnemonic (e.g., 'mlh')latitude
: Instrument latitude in degreeslongitude
: Instrument longitude in degreesaltitude
: Instrument altitude in kmcategory
: Instrument category (e.g., 'Incoherent Scatter Radars')
Similar to the MadrigalInstrument
class in the madrigalWeb python module.
MadrigalWeb.Parameter
— TypeParameter
A struct that encapsulates information about a Madrigal parameter.
Similar to the MadrigalParameter
class in the madrigalWeb python module.
MadrigalWeb.download_file
— Functionthrow
controls whether to throw or silently return nothing
on request error
MadrigalWeb.download_files
— Methoddownload_files(inst, kindat, t0, t1; kws...)
Download files for a given instrument code inst
, data code kindat
, and time range t0
to t1
.
MadrigalWeb.filter_by_kindat
— Methodfilter_by_kindat(expFileList, kindat)
Returns a subset of the experiment files in expFileList whose kindat is found in kindat argument.
MadrigalWeb.get_all_instruments
— Methodget_all_instruments(url)
get_all_instruments(server::Server = Default_server[])
Returns a list of all Madrigal instruments at the given Madrigal site url
or server
.
Examples
# Get all instruments from the default server
instruments = get_all_instruments()
# Get all instruments from a specific server
server = Server("https://cedar.openmadrigal.org")
instruments = get_all_instruments(server)
MadrigalWeb.get_experiment_file_parameters
— Functionget_experiment_file_parameters(file, url)
get_experiment_file_parameters(file, server::Server = Default_server[])
Returns a list of all measured and derivable parameters in the given experiment file
.
Examples
# Get parameters for a specific file
file = first(get_experiment_files(experiment))
parameters = get_experiment_file_parameters(file)
Similar to the getExperimentFileParameters
method in the madrigalWeb python module.
MadrigalWeb.get_experiment_files
— Methodget_experiment_files(exp; server = Default_server[], getNonDefault = false)
Get all default experiment files for a given experiment exp
.
MadrigalWeb.get_experiments
— Methodget_experiments(code, t0, t1; server = Default_server[])
Get a list of experiments for a given instrument code
and time range t0
to t1
.