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 anojip_darkattribute holding an xarray orpam_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 theojip_darkattribute ifpsdornpqdata is available. - Measurements from light-adapted plant state are stored in the attribute
psl(ojip) which has anojip_lightattribute holding an xarray orpam_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 theojip_lightattribute ifpslornpqdata is available. - Measurements from PAM light and dark images are stored in the
pmlandpmdattributes, which have attributespam_lightandpam_darkcontaining xarrays. - Time-resolved PAM fluorescence measurements are stored in the attribute
pmtwhich has an attributepam_timecontaining 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
chland include a chlorophyll fluorescence frame (Chl) stored as NumPy array/ndarray access asps.chl.chlorophyll. The Fdark frame, if collected, is not stored. - Measurements from color are stored in the attribute
clrand include a color image frame (CLR) stored as NumPy array/ndarray access asps.clr.color. - Green fluorescence protein (GFP) measurements are stored in the attribute
gfp, which hasgreenfluorescence (GFP, 525 nm) andautofluorescence (Auto, 585 nm) attributes containing numpy arrays. - Red fluorescence protein (RFP) measurements are stored in the attribute
rfp, which has aredattribute containing a numpy array of RFP fluorescence (585 nm). - Alpha light absorption coefficient (APH) measurements are stored in the attribute
aphand include reflected light frames for red (640 nm) and far-red (732 nm) wavelengths.ps.aphcontains the red and far-red frames, which are accessed asps.aph.redandps.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

OJIP Light-adapted fluorescence measurements

PAM Time fluorescence measurements

Chlorophyll fluorescence measurements

Spectral reflectance measurements

Green fluorescence protein (GFP) measurements

Red fluorescence protein (RFP) measurements

Alpha light absorption coefficient (APH) measurements

Source Code: Here