OzFlux / PyFluxPro

PyFluxPro V3.4 is a significant upgrade from previous versions. It has several new features, improved stability and is introduced ahead of the 2021 OzFlux Data Workshop.
GNU General Public License v3.0
21 stars 5 forks source link

Fix mds bug #96

Closed pisaac-ozflux closed 1 year ago

pisaac-ozflux commented 1 year ago

The MDS C code behaves as follows:

  1. If the data set starts at YYYY-12-31 23:30 or earlier then the whole of year YYYY is filled and the output data starts at YYYY-01-01 00:30.
  2. If the data set starts at YYYY+1-01-01 00:00 then this data point is discarded, the output data starts at YYYY+1-01-01 00:30 and the gap filled data returned by MDS is 1 point shorter than the input data.
  3. If the data set starts at YYYY+1-01-01 00:30 then the gap filled data set starts at YYYY+1-01-01 00:30.

The pfp_gfMDS.gfMDS_get_mds_output() now explicitly handles the second case.