Skip to main content
U.S. FlagAn official website of the United States government
icon dot gov
Official websites use .gov

A .gov website belongs to an official government organization in the United States.

icon https
Secure .gov websites use HTTPS

A lock () or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Use —interval=undef to get all data.

Calculate the averages of 1-minute data from a lab data set. Use the “–mean” switch to da.export to have it output unweighted means from the statistics calculation when available. When it's not available (no averaging done) it will output the conventional values instead.

da.generate.edited --profile=aerosol_native `query.run 2` |da.select --include="Ba[BGR]_A1[145]" |da.avg --interval=undef |da.export --mean |transpose

Calculate segment averages for a lab experiment (example bash script). Note that this scirpt doesn't call da.avg, but it is included here because it generates averaged data.

#!/bin/bash

RUN=7
TIMES=`/aer/sfa/work/GMD_lab_absorption_study_2015/runs/query ${RUN}`

echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cpd3data>
<cpd3data version="1.0">    
    <value station="sfa" archive="segment" variable="run" flavors="" 
            priority="0" type="" 
            start="'${TIMES/%\ */}'" end="'${TIMES##* }'">
    </value>
</cpd3data>' |
    da.multiplex "| da.generate.edited sfa ${TIMES}" - | 
    da.smooth.segment --segment=':segment:run' |
    da.select --include=':clean:BsG_S11' |
    da.export