Read CropReporter Fluorescence Image Files

Reads .INF/.DAT image data from a PhenoVation CropReporter system into a PSII_data instance containing xarray DataArrays with labeled frames and NumPy array/ndarray, depending on the input files.

plantcv.photosynthesis.read_cropreporter(filename)

returns ps

  • Parameters:

    • filename - INF metadata file to be read (possibly including a path). DAT files are automatically detected.
  • Context:

    • Reads in binary image files to be processed and does so using the metadata contained within a corresponding .INF file.
    • Measurements from dark-adapted plant state are stored in the attribute psd (ojip) which has an ojip_dark attribute holding an xarray or pam_dark, depending on the measurement protocol. Frames F0 and Fm are labeled according to the metadata in .INF. The default measurement label is 't0'. These measurements are also accessible in the ojip_dark attribute if psd or npq data is available.
    • Measurements from light-adapted plant state are stored in the attribute psl (ojip) which has an ojip_light attribute holding an xarray or pam_light, depending on the measurement protocol. Frames Fp and Fmp are labeled according to the metadata in .INF. The default measurement label is 't1'. These measurements are also accessible in the ojip_light attribute if psl or npq data is available.
    • Measurements from PAM light and dark images are stored in the pml and pmd attributes, which have attributes pam_light and pam_dark containing xarrays.
    • Time-resolved PAM fluorescence measurements are stored in the attribute pmt which has an attribute pam_time containing an xarray. Frames F0, Fm, Fp, Fmp, F0pp, and Fmpp are labeled according to the metadata in .INF, with measurement labels starting at 't0' (e.g. t0, t1, t2, ...).
    • Measurements from chlorophyll fluorescence are stored in the attribute chl and include a chlorophyll fluorescence frame (Chl) stored as NumPy array/ndarray access as ps.chl.chlorophyll. The Fdark frame, if collected, is not stored.
    • Measurements from color are stored in the attribute clr and include a color image frame (CLR) stored as NumPy array/ndarray access as ps.clr.color.
    • Green fluorescence protein (GFP) measurements are stored in the attribute gfp, which has green fluorescence (GFP, 525 nm) and auto fluorescence (Auto, 585 nm) attributes containing numpy arrays.
    • Red fluorescence protein (RFP) measurements are stored in the attribute rfp, which has a red attribute containing a numpy array of RFP fluorescence (585 nm).
    • Alpha light absorption coefficient (APH) measurements are stored in the attribute aph and include reflected light frames for red (640 nm) and far-red (732 nm) wavelengths. ps.aph contains the red and far-red frames, which are accessed as ps.aph.red and ps.aph.farred, respectively. The Fdark frame, if collected, is not stored.
    • Spectral measurements are stored as a PlantCV Spectral_data object in the attribute spectral. Frames are stored by reflectance wavelength and can include: blue (475nm), green (550nm), red (640nm), green2 (540nm), far-red (710nm), and near-infrared (770nm).
  • Example use:

Note

This function assumes a specific pattern between the .INF metadata file and the corresponding .DAT binary image filenames. We assume that for metadata file HDR_xx.INF or xx_HDR_xx.INF there will be a corresponding image files with the same path, containing XXX_xxx.DAT or xx_XXX_xxx.DAT where XXX is the analysis protocol (e.g. PSD, PSL, etc.). Some CropReporter imaging protocols will results in multiple binary image .DAT files per .INF metadata file.

from plantcv import plantcv as pcv      

# Set global debug behavior to None (default), "print" (to file),
# or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "plot"

#read in image
ps = pcv.photosynthesis.read_cropreporter(filename="PSII_HDR_020321_WT_TOP_1.INF")

# you can check which variables were imported at the prompt with:
ps

# to see the frames you imported use xarray plot methods e.g.
ps.psd.load().plot(col='frame_label', col_wrap=4)

OJIP Dark-adapted fluorescence measurements

Screenshot

OJIP Light-adapted fluorescence measurements

Screenshot

PAM Time fluorescence measurements

Screenshot

Chlorophyll fluorescence measurements

Screenshot

Spectral reflectance measurements

Screenshot

Green fluorescence protein (GFP) measurements

Screenshot

Red fluorescence protein (RFP) measurements

Screenshot

Alpha light absorption coefficient (APH) measurements

Screenshot

Source Code: Here