Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Canopy water content from AVIRIS-NG data

This tutorial shows how to calculate equivalent water thickness or canopy water content (CWC) from BioSCape AVIRIS-NG L3 Reflectance Mosaics data. Variations in CWC can indicate drought stress and wildfire risk.

We will apply a simple fitting of spectral absorption features of liquid water and use scripts available from the ISOFIT package.

Canopy Water Content (CWC)

The CWS is derived from surface reflectance by applying a well-validated algorithm based on a physical model (Beer-Lambert model) (Green et al. 2006; Bohn et al. 2020). Derived surface reflectance spectra were particularly smooth in water absorption bands and include estimates of per-band posterior uncertainties (Thompson et al. 2018). Of note, this model does not account for multiple scattering effects within the canopy and may result in an overestimation of retrieved CWC (Bohn et al. 2020).

References

  • Bohn, N., L. Guanter, T. Kuester, R. Preusker, and K. Segl. 2020. Coupled retrieval of the three phases of water from spaceborne imaging spectroscopy measurements. Remote Sensing of Environment 242:111708. Bohn et al. (2020)

  • Green, R.O., T.H. Painter, D.A. Roberts, and J. Dozier. 2006. Measuring the expressed abundance of the three phases of water with an imaging spectrometer over melting snow. Water Resources Research 42:W10402. Green et al. (2006)

  • Thompson, D.R., V. Natraj, R.O. Green, M.C. Helmlinger, B.-C. Gao, and M.L. Eastwood. 2018. Optimal estimation for imaging spectrometer atmospheric correction. Remote Sensing of Environment 216:355–373. Thompson et al. (2018)

Datasets

  • Brodrick, P. G., Chlus, A. M., Eckert, R., Chapman, J. W., Eastwood, M., Geier, S., Helmlinger, M., Lundeen, S. R., Olson-Duvall, W., Pavlick, R., Rios, L. M., Thompson, D. R., & Green, R. O. (2025). BioSCape: AVIRIS-NG L3 Resampled Reflectance Mosaics, V2. ORNL Distributed Active Archive Center. Brodrick et al. (2025)

Import modules

Let’s first import the required Python modules.

Loading...
Loading...
Loading...
Loading...

Earthdata Authentication

Retrieve AVIRIS-NG Spectra

AVIRIS-NG File

We will use the file AVIRIS-NG_BIOSCAPE_V02_L3_33_55 for this tutorial. Let’s retrieve it using the earthaccess python module.

Let’s print the first granule.

Loading...

We will use earthaccess to retrieve a list of file-like objects on AWS S3 buckets.

Loading...
Loading...
Loading...
[<File-like object S3FileSystem, ornl-cumulus-prod-protected/bioscape/BioSCape_ANG_V02_L3_RFL_Mosaic/data/AVIRIS-NG_BIOSCAPE_V02_L3_33_55_QL.tif>, <File-like object S3FileSystem, ornl-cumulus-prod-protected/bioscape/BioSCape_ANG_V02_L3_RFL_Mosaic/data/AVIRIS-NG_BIOSCAPE_V02_L3_33_55_UNC.nc>, <File-like object S3FileSystem, ornl-cumulus-prod-protected/bioscape/BioSCape_ANG_V02_L3_RFL_Mosaic/data/AVIRIS-NG_BIOSCAPE_V02_L3_33_55_RFL.nc>]

Let’s open the reflectance file as xarray datatree.

Loading...

We will now convert the reflectance to xarray dataset.

Loading...

We will plot the reflectance using hvplot.

Loading...

Let’s retrieve a spectra from the AVIRIS-NG file and plot.

<Figure size 640x480 with 1 Axes>

Beer-lambert Law

Let’s define a function that returns the vector of residuals between measured and modeled surface reflectance. The surface reflectance optimizes for the path length of surface liquid water based on the Beer-Lambert attenuation law.

Refractive indices of different water phases

There is a file in the data folder called k_liquid_water_ice.csv, which provides refractive indices of different water phases. This is the imaginary part of the liquid water refractive index. Let’s open that file and display the first few lines.

Loading...

The table above provides the imaginary part of the liquid water refractive index for seven temperatures. Let’s plot these values.

<Figure size 1500x600 with 8 Axes>

We will use wvl_6 as the wavelength column and T = 20°C as the k column or imaginary parts of refractive index, when doing the inversion below.

Inversion

Given a reflectance estimate, we will fit a state vector including liquid water path length based on a simple Beer-Lambert surface model defined above.

Let’s first define some parameters and bounds.

message: `gtol` termination condition is satisfied. success: True status: 1 fun: [-2.842e-12] x: [ 1.789e-02 3.297e-01 2.024e-04] cost: 4.0380212571120976e-24 jac: [[-2.350e+00 8.626e-01 2.453e-01]] grad: [ 6.678e-12 -2.451e-12 -6.972e-13] optimality: 1.6431014911470569e-12 active_mask: [0 0 0] nfev: 4 njev: 4

In the above solution from least square optimization x_opt.x provides the estimated liquid water path length, intercept, and slope, respectively based on a given surface reflectance. Let’s print the Equivalent Water Thickness (EWT) value for the pixel.

EWT in cm: 0.01789

We can use the above function invert_liquid_water and apply to the every pixels of the file, which would be computationally intensive and we won’t be doing in this tutorial.

References
  1. Bohn, N., Guanter, L., Kuester, T., Preusker, R., & Segl, K. (2020). Coupled retrieval of the three phases of water from spaceborne imaging spectroscopy measurements. Remote Sensing of Environment, 242, 111708. 10.1016/j.rse.2020.111708
  2. Green, R. O., Painter, T. H., Roberts, D. A., & Dozier, J. (2006). Measuring the expressed abundance of the three phases of water with an imaging spectrometer over melting snow. Water Resources Research, 42(10). 10.1029/2005wr004509
  3. Thompson, D. R., Natraj, V., Green, R. O., Helmlinger, M. C., Gao, B.-C., & Eastwood, M. L. (2018). Optimal estimation for imaging spectrometer atmospheric correction. Remote Sensing of Environment, 216, 355–373. 10.1016/j.rse.2018.07.003
  4. Brodrick, P. G., Chlus, A. M., Eckert, R., Chapman, J. W., Eastwood, M., Geier, S., Helmlinger, M., Lundeen, S. R., Olson-Duvall, W., Pavlick, R., Rios, L. M., Thompson, D. R., & Green, R. O. (2025). BioSCape: AVIRIS-NG L3 Resampled Reflectance Mosaics, V2. Oak Ridge National Laboratory, Oak Ridge, Tennessee, USA. 10.3334/ORNLDAAC/2427