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/13a780bea383047210d4748eff51a87a835baa332d8e0a47e1106ce0f5807111.png ../../_images/a4f995cd34bf8fada628af963a56fcd0d901a7cd1558d95cca9add0151c105da.png