You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.
The CTD software SD200W does not always produce standard/compliant csv files - well, the main problem with csv, I guess, is that there is no real standard to follow.
The files that are produced sometimes has no data other than the pressure for some measurements, and it does not say N/A or alike for the data which is missing.
The first two data lines in this file causes an error since they got one element.
I'd suggest add an option to ignore lines which does not comply to number of elements, or assume the first elements are in the correct place, and add nan for the rest? I don't know which would be preferred in this case.
The text was updated successfully, but these errors were encountered:
aleksandervines
changed the title
handle data lines with no data
handle data lines with less than expected number of elements
May 24, 2016
I think the best option is to keep it an option. Currently, if you mark those two lines as "header" lines in the wizard interface, they should be ignored. We should also give the option of including them, but padding them out with missing values where needed.
Currently, if you mark those two lines as "header" lines in the wizard interface, they should be ignored.
This works for each specific case, but it requires for this to be checked on every file.
I wouldn't put it past this silly program which creates these csv files to also have some lines like that in the middle or at the end of the file.
And yes, I think it should be an option, as different users would require different solutions, some would want for this to fail as they then would need to quality check the input files which should be on a correct format.
Ah yes, you would need to do that for each file...and, as you say, if those lines happen to be deep in the data block, then all bets are off. A checkbox, enabled by default, called something like "Insert missing values into incomplete data rows" should do the trick. What do you think? Does that text make sense?
The CTD software SD200W does not always produce standard/compliant csv files - well, the main problem with csv, I guess, is that there is no real standard to follow.
The files that are produced sometimes has no data other than the pressure for some measurements, and it does not say N/A or alike for the data which is missing.
Example:
The first two data lines in this file causes an error since they got one element.
I'd suggest add an option to ignore lines which does not comply to number of elements, or assume the first elements are in the correct place, and add nan for the rest? I don't know which would be preferred in this case.
The text was updated successfully, but these errors were encountered: