Closed Brtle closed 7 years ago
Any output data will always be sorted by ascending time-series segments.
The output of dataselect will be sorted. If you only provided the 2nd file to dataselect as input then that is what will be sorted. Nothing in the existing files, that get appended to, are taken into account. Put another way, dataselect does not "manage" an output/archive data structure, e.g. -SDS (which is just a preset of the -A
option).
If you want to make sure that all the data records in a given file are sorted you'll need to specify them as input to the program.
If I've misunderstood the issue please reopen.
Thank you for your explanations! Maybe a warning can be added in the documentation of the -A
option to clarify this situation? I think it's a little ambiguous.
I think there is a bug when you add some data in an SDS archive. According to the documentation:
However, by adding data to a day where data is already present in the SDS archive,
dataselect
seems to concatenate the new data to the old without sorting.I tried with a small sample. I created a small SDS archive with only 1 file:
I then added this file:
The new SDS archive file isn't sorted.