Class PrairieMetadata

java.lang.Object
loci.formats.in.PrairieMetadata

public class PrairieMetadata extends Object
Metadata structure for Prairie Technologies' TIFF-based format.
  • Constructor Details

    • PrairieMetadata

      public PrairieMetadata(Document xml, Document cfg, Document env)
      Creates a new Prairie metadata by parsing the given XML, CFG and/or ENV documents.
      Parameters:
      xml - The XML document to parse, or null if none available.
      cfg - The CFG document to parse, or null if none available.
      env - The ENV document to parse, or null if none available.
  • Method Details

    • getWaitTime

      public Double getWaitTime()
      Gets the waitTime recorded in the configuration.
    • getActiveChannels

      public int[] getActiveChannels()
      Gets the list of active channel indices, in sorted order.

      These indices correspond to the configuration's channel keys flagged as True.

    • isInvertX

      public boolean isInvertX()
      Gets whether the stage position X coordinates are inverted (i.e., left-to-right).
    • isInvertY

      public boolean isInvertY()
      Gets whether the stage position Y coordinates are inverted (i.e., bottom-to-top).
    • getBitDepth

      public Integer getBitDepth()
      Gets the bitDepth recorded in the configuration.
    • getLaserPower

      public Double getLaserPower()
      Gets the first laserPower recorded in the configuration.
    • getConfig

      public PrairieMetadata.Value getConfig(String key)
      Gets the value of the given configuration key.
    • getConfig

      public PrairieMetadata.ValueTable getConfig()
      Gets the map of configuration key/value pairs.
    • getDate

      public String getDate()
      Gets the date of the acquisition.
    • getCycleMin

      public int getCycleMin()
      Gets the minimum cycle value. Matches the smallest cycle attribute found, and hence will not necessarily equal 1 (though in practice it usually does).
    • getCycleMax

      public int getCycleMax()
      Gets the maximum cycle value. Matches the largest cycle attribute found, and hence will not necessarily equal sequences#size() (though in practice it usually does).
    • getCycleCount

      public int getCycleCount()
      Gets the number of recorded cycles. This value is equal to getCycleMax() - getCycleMin() + 1.
    • getFirstSequence

      public PrairieMetadata.Sequence getFirstSequence()
      Gets the first Sequence.
    • getSequence

      public PrairieMetadata.Sequence getSequence(int cycle)
      Gets the Sequence at the given cycle.
    • getSequences

      public ArrayList<PrairieMetadata.Sequence> getSequences()
      Gets all Sequences, ordered by cycle.
    • getFrame

      public PrairieMetadata.Frame getFrame(int cycle, int index)
      Gets the Frame at the given (cycle and index).
    • getFile

      public PrairieMetadata.PFile getFile(int cycle, int index, int channel)
      Gets the Frame at the given (cycle, index, channel).
    • getValue

      public PrairieMetadata.Value getValue(String key)
      Gets the value of the given key, at the top-level <PVScan> element.
    • getValues

      public PrairieMetadata.ValueTable getValues()
      Gets the table of PVScan key/value pairs.