Class NetCDFResourceAdapter

All Implemented Interfaces:
FWSimFieldContainer

public class NetCDFResourceAdapter extends FWSimResourceAdapter<List<String>>
Resource adapter for NetCDF files (NetCDFInterface). For each header variable the NetCDF variable of the same name is read, restricted by the section specification of the interface (tokens ${...} are replaced). The key variables span the dimensions: every combination of key values becomes one data line of the cache, lines without any valid value (missing value -999 or NaN) are skipped. Dates are stored as days since the epoch. The cache is never stored in the database.
Author:
Andreas Enders
  • Constructor Details

    • NetCDFResourceAdapter

      public NetCDFResourceAdapter(org.jdom2.Element aResourceElement, FWSimSession aSession, int aOrderNumber)
      Creates the adapter from a resource element of the solution.
      Parameters:
      aResourceElement - the resource element
      aSession - the session
      aOrderNumber - order number of the adapter
    • NetCDFResourceAdapter

      public NetCDFResourceAdapter(FWSimResourceAdapter<?> aAdapter, NetCDFInterface aInterface)
      Copy constructor used when the interface is replaced; the key variables are taken over.
      Parameters:
      aAdapter - the adapter to copy
      aInterface - the new interface
    • NetCDFResourceAdapter

      public NetCDFResourceAdapter(org.jdom2.Element aHeaderElement, NetCDFInterface aInterface, int aOrderNumber)
      Creates an adapter for a NetCDF interface with frequency ONCE and without session.
      Parameters:
      aHeaderElement - element with the attribute id (name of the adapter) and the header
      aInterface - the NetCDF interface
      aOrderNumber - order number of the adapter
  • Method Details