edzer / spacetime

Classes and methods for spatio-temporal data
74 stars 20 forks source link

Quick question on STFDF in a variogramST #39

Open bhurley6ehs opened 5 years ago

bhurley6ehs commented 5 years ago

I was hoping to find out about the tlags function in variogramST. If I have an STFDF with, let's say 100 months (all formatted properly as instructed), would my tlags = 0:100, or would it be 1:100, or do I even need to add the tlags option to the variogramST function?

BenGraeler commented 5 years ago

tlags is an argument of the variogramST function for the empirical variogram in the pkg gstat. It defines the temporal differences between pairs of stations that are used in the variogram calculation. With 0:10, you would start with stations in the same time slice (pure spatial variogram) up to stations 10 indices (weeks in your case) apart. Typically, one does not use tlags larger than the expected temporal range. Note that for STFDF tlags is in indecies, but for STIDF, tlags needs to be provided in temporal scale (seconds, days,...) depending on the temporal resolution of the STIDF and should be accompanied by the argument tunit.

On 24 May 2019, bhurley6ehs notifications@github.com wrote:

I was hoping to find out about the tlags function in variogramST. If I have an STFDF with, let's say 100 months (all formatted properly as instructed), would my tlags = 0:100, or would it be 1:100, or do I even need to add the tlags option to the variogramST function?

-- Dr. Benedikt Gräler 52°North Initiative for Geospatial Open Source Software GmbH Martin-Luther-King-Weg 24 48155 Muenster, Germany

E-Mail: b.graeler@52north.org Fon: +49-(0)-251/396371-39 Fax: +49-(0)-251/396371-11

http://52north.org/ Twitter: @FiveTwoN

General Managers: Prof. Dr. Albert Remke, Prof. Dr. Andreas Wytzisk-Arens Local Court Muenster HRB 10849

bhurley6ehs commented 5 years ago

Thank you Ben.