All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgrasstools.gears.io.timedependent.OmsTimeSeriesIteratorReader.html Maven / Gradle / Ivy

The newest version!
Utility class for reading data from a OMS formatted csv file. The file needs a metadata line containing the id of the station. The table is supposed to have a first column of timestamp and all other columns of data related to the ids defined. This reader reads a time series data file step by step, so it is time dependent, if you need to read a time series all in one please refer to TimeSeriesReader.

This model allow the user to aggregate data for working with different timesteps. This means that if you will work with a different timestep respect to the data original one, you simply need to specify the number of timesteps to aggregate (number of rows) as an integer value and the operation that you would do with the aggregated data, sum or average.

Parameters

  • the csv file to read from
  • the id metadata field
  • the file novalue to be translated into the internal novalue (defaults to -9999.0); it can be also a string.
  • the internal novalue to use (defaults to NaN, usually not changed)
  • the number of rows to aggregate (default is 1, i.e. no aggregation)
  • the aggregation type to use (0 = sum, 1 = avg)
  • the time at which start to read (format: yyyy-MM-dd HH:mm)
  • the time at which end to read (format: yyyy-MM-dd HH:mm)
  • the reading timestep in minutes
  • the current time read (format: yyyy-MM-dd HH:mm)
  • the previous time read (format: yyyy-MM-dd HH:mm)
  • the read map of ids and values




© 2015 - 2024 Weber Informatics LLC | Privacy Policy