fill_gap: Correlation with other stations

Description Usage Arguments Author(s)

View source: R/gap_filling.R

Description

calculates the correlation coefficient from the series with gaps to all the other series and computes a buffer with a 500km radius. At least 5 available observations per month for all the data is recommended, otherwise the normalization of the data and correlation coef. can give a wrong impression.

Usage

1
2
3
4
5
6
7
8
9
fill_gap(
  meta,
  series,
  full_data_series,
  missing_date,
  buffer_dist = 500,
  n.months = 5,
  n.stations = 5
)

Arguments

meta

metadata with lat lon from all the stations

series

series with missing data

full_data_series

full data series which will be used to fill the gap

missing_date

missing month from the series

buffer_dist

minimum distance to the filling stations in km. Returning 1 if the full_data_series stations falls within the buffer zone.

n.months

minimum number of months with needed to compute correlation coef.

n.stations

maximum number of reference stations from which the median is calculated

Author(s)

Marieke Dirksen


MariekeDirk/Dimming-Brightening documentation built on March 21, 2020, 2:41 a.m.