API
ARMLive.ARMDataset Type
ARMDataset{ST<:AbstractString, DT<:TimeType}Specifies an ARM (Atmospheric Radiation Measurement) dataset with the following fields:
stream- The ARM datastream name (e.g.,"sgpmetE13.b1").start- The start date for the data query.stop- The end date for the data query.path- The local directory path where data will be stored.
ARMLive.ARMDataset Method
ARMDataset(; stream :: ST,
start :: DT,
stop :: DT,
path :: ST = armpath(homedir())
) where {ST <: AbstractString, DT<:TimeType} -> ARMDataset{ST,DT}Create an ARMDataset specification for querying and downloading ARM data.
Keyword Arguments
stream- The ARM datastream name (e.g.,"sgpmetE13.b1").start- The start date for the data query.stop- The end date for the data query.path- The root directory for storing data, default ishomedir().
ARMLive.query Method
query(ads :: ARMDataset)Retrieve a list of available files for an ARM data stream.
Arguments
ads: An ARMDataset type.
ARMLive.setup Method
setup(;
user :: String,
token :: String,
path :: AbstractString = homedir(),
overwrite :: Bool = false
) -> nothingCreate an ARM credentials configuration file (.armliverc) in the specified directory.
Keyword Arguments
user: The ARM user identifier for authentication.token: The ARM authentication token.path: The directory where the .armliverc file will be saved. Defaults to the user's home directoryhomedir().overwrite: Iftrue, overwrite an existing .armliverc file. Iffalse, skip creation if the file already exists. Defaults tofalse.
Base.download Method
download(
ads :: ARMDataset,
variables :: Vector{<:AbstractString};
overwrite :: Bool = false,
interactive :: Bool = true
) -> nothingDownload ARM data files for a specified data stream and time period and extract variables of interest if they exist into separate files/folders. This will help to save space when there are too many variables around.
Arguments
ads: An ARMDataset typevariables: A vector of variable names (in String format)
Keyword Arguments
overwrite: Iftrue, overwrite existing files. Iffalse, skip files that already exist. Defaults tofalse.interactive: Iftrue, display a progress bar during download. Iffalse, log download messages instead. Defaults totrue.
Base.download Method
download(
ads :: ARMDataset;
overwrite :: Bool = false,
interactive :: Bool = true
) -> nothingDownload ARM data files for a specified data stream and time period.
Arguments
ads: An ARMDataset type
Keyword Arguments
overwrite: Iftrue, overwrite existing files. Iffalse, skip files that already exist. Defaults tofalse.interactive: Iftrue, display a progress bar during download. Iffalse, log download messages instead. Defaults totrue.
Base.read Method
read(
ads :: ARMDataset,
dt :: TimeType;
throw :: Bool = true
) -> ds :: NCDatasetRead ARM data from NetCDF files for a specified date or datetime.
Arguments
ads: An ARMDataset object specifying the data stream and storage path.dt: A Date or DateTime object specifying which data to read.throw: Iftrue, throw an error when no data is found. Iffalse, log a warning and returnnothing. Defaults totrue.
Returns
An NCDataset object containing the data. If multiple files match the datetime, they are automatically aggregated along the time dimension.
Returns
nothingif no data is found andthrow=false.