Download DOE ARM surface meteorology
Use particula.data.sources to list and download files from any datastream
available through ARM Live. Once you have a local file, choose a reader for
that instrument and data product. For particle sizes, concentrations, optical
properties or composition, see Process ARM aerosol instrument data.
This walkthrough retrieves one day of Southern Great Plains surface
meteorology and converts the first one-minute observation into a water-only
Particula environment. The example uses datastream sgpmetE13.b1, facility
E13, on January 1, 2019.
Get your ARM username and token in your browser
Section titled “Get your ARM username and token in your browser”- Open ARM Account Management. Select Register if you need an account. Complete registration and keep the ARM username you chose. ARM Account Management
- Open ARM Live Data Web Service and select Log in. After signing in, copy the access token ARM displays for your account. ARM Live
- Follow the Particula installation steps. With your Python environment active, run the commands below. At the prompts, enter the ARM username and paste the access token. Token entry is hidden.
particula-data login armparticula-data status armUse your terminal’s paste command at the access-token prompt, then press
Enter. The prompt stays blank even after a successful paste. If you see Supply a nonempty provider access token., copy just the token value again and rerun
particula-data login arm. Once you see
Saved arm credential., you can close the window. The saved token
is available to later processes in the same desktop account.
A desktop installation should report system credential store. Open a
new terminal, activate the same Python environment, and list matching files.
The first command checks your credentials with ARM. If the sample filename
appears, the second command saves it under data/arm/.
particula-data arm-list sgpmetE13.b1 2019-01-01T00:00:00Z 2019-01-01T00:01:00Zparticula-data arm-download sgpmetE13.b1.20190101.000000.cdf data/arm/sgpmetE13.b1.20190101.000000.cdfRetrieve the same selection in Python
Section titled “Retrieve the same selection in Python”This example requests one minute at the Southern Great Plains site. ARM Live lists archive files that cover the selection. The download preserves the complete original file. ARM directs tape-only files through its ordering service. ARM Live API
from pathlib import Pathfrom particula.data.sources import list_arm_files, download_arm
files = list_arm_files( "sgpmetE13.b1", "2019-01-01T00:00:00Z", "2019-01-01T00:01:00Z")for filename in files: path = download_arm(filename, Path("data/arm") / filename)Convert a UTC observation to model inputs
Section titled “Convert a UTC observation to model inputs”The classic NetCDF file contains a minute-by-minute time series. Select an
exact observation time to build one box of EnvironmentData. The reader
requires zero QC flags for all three measurements and checks their units
and missing values. A file obtained with ACT or an archive order works the
same way.
from datetime import UTC, datetimefrom particula.instruments import read_arm_environment
path = "data/arm/sgpmetE13.b1.20190101.000000.cdf"when = datetime(2019, 1, 1, 0, 0, tzinfo=UTC)state = read_arm_environment(path, when)print(state.temperature, state.pressure, state.saturation_ratio)For the ARM Live file retrieved on November 28, 2026, the first observation
gives 273.807 K, 97,900 Pa and a water saturation ratio of 0.864.
The pinned public file with the same name gives 274.727 K with the same
pressure and humidity. Run particula-data verify on your downloaded file
to identify the exact copy by its SHA-256 and processing version.
Public reference file
For a simulation with another condensable species followed by water,
supply that species’ saturation ratio from the study configuration. With
the example value of 0.2, the two columns are [0.2, 0.864].
state = read_arm_environment(path, when, other_saturation_ratios=[0.2], water_index=1)If your reader already decoded the data, call
arm_environment_from_fields(times_utc, fields, units, when) from
particula.instruments. Supply a one-dimensional UTC NumPy datetime64
axis and aligned arrays for temp_mean (degC), atmos_pressure (kPa),
rh_mean (%) and their three qc_ fields. Mask missing observations or
supply their source markers in missing_values. Both conversion paths
accept the same species order.
If the file is unavailable
Section titled “If the file is unavailable”If ARM rejects the query, repeat particula-data login arm with the
username that owns the token. A successful query can return an empty list.
Check the site, facility, processing level and date in ARM Data Discovery.
Older files on tape may require an archive order. Once delivered, the same
local-file conversion applies to classic NetCDF files with the fields and
units shown above. ARM Data Discovery
Explore this topic: Population measures and weights