Ceilometer Quicklooks

Ceilometer Quicklooks#

Code to Generate Plots#

Hide code cell source
import act
import glob
import matplotlib.pyplot as plt
import matplotlib

files = glob.glob('../../data/ceilometer/sgp*')

ds = act.io.read_arm_netcdf(files)

# apply range correction
ds = act.corrections.correct_ceil(ds)

ds.attrs['datastream'] = 'ceilometer.b1'

# variables=['p_pol', 'x_pol', 'linear_depol_ratio']

variables = ['backscatter', 'first_cbh']

for variable in variables:
    display = act.plotting.TimeSeriesDisplay(ds, figsize=(8,4))
    if variable == 'backscatter':
        display.plot(variable,
                     cmap='rainbow',
                     vmin=0,
                     vmax=4,
                     y_rng=(0, ds.range.max().values))
    else:
        display.plot(variable,
                     cmap='rainbow',
                     y_rng=(0, ds.range.max().values))

    plt.show()
    plt.close()
../../_images/f8e3fd54b80f971d60237dbf5ce078c3c441c9c7e385c05bc5e87a41e3daeefe.png ../../_images/c05f8b8970d14d79eee7ad932750b7e2ea240b975ae51f892f46f16a0e218e42.png