Open alicelg99 opened 3 years ago
I agree that this is unfortunate. However, for legacy reasons, I am reluctant to change the output format as other scripts currently in use will break then. I suggest you implement a routine for determining the non-numeric headerlines: Just check whether the fist non-blank char is a number or not. This should give you a pretty robust way of computing the lines to skip in importing the data.
Ok I understand. I will look at it, thank you.
The output files are not organized in the same way. Indeed, most of the time the files have a title on the first line, then the column names separated with a tab and then the data, as we can see below (an exemple of a actetranspiration.out file):
So, when a file does not have this configuration, the code does not work. Indeed, sometimes we have some files without title and with spaces instead of tab between the columns. See below (an exemple of a _lake_outflowr.out file):
This second case occurs at least for the following files:
I was wondering if it is easy to change the way of how these files are written. If it is, it would be great to do it as we can compare all the files. Otherwise, I can try to adapt the code: it will be a long task but I think I can do it.