Hmm, the problem is that the code is trying to pickup the last units of measure
value ('in' I expect) on the units line (line 3) and for some reason the code
has found fewer units values on that line than I coded for. Is there any chance
that the earliest daily text file has a different layout to the one you posted
(the code will go through and import the daily files in order of age, oldest
first, youngest last)? Failing that I will have need to make the code a little
more robust.
The reason there is no map is that we know what each field is in the daily text
file and we know the units of each field, so in theory we should be able to get
everything we need from the daily text files without the user specifying
anything. On the other hand, for a plain old CSV file we don't necessarily know
what fields will be where and what their names will be nor do we necessarily
know the units. Hence the map for CSV.
Gary
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.