gher-uliege / DIVAnd.jl

DIVAnd performs an n-dimensional variational analysis of arbitrarily located observations
GNU General Public License v2.0
70 stars 11 forks source link

Removing duplicates from a unique source of data #107

Closed ctroupin closed 1 year ago

ctroupin commented 1 year ago

[User email added here so users can find the answer]

Regarding, finding and removing the duplicate observations, in the notebook "90-full-analysis", section 3.2, it seems that the function uses two data files:

@time dupl = DIVAnd.Quadtrees.checkduplicates( (obslon,obslat,obsdepth,obstime), obsval, (obslonwod,obslatwod, obsdepthwod, obstimewod), obsvalwod, (0.01,0.01,0.01,1/(24*60)),0.01);

But, if I want to remove duplicates from one file, how can I do that ?

ctroupin commented 1 year ago

The function checkduplicates can be used directly on data from a single dataset, i.e. with a command like

dupl = checkduplicates((obslon,obslat,obsdepth,obstime), obsval, delta, deltavalue)
Alexander-Barth commented 1 year ago

Yes, I can confirm that this is the correct function to be used in this case.

ctroupin commented 1 year ago

Thanks Alex, I'll add this as an explanation in notebook 90-full-analysis.ipynb.