Howdy Chaps.
I have a metric tonne of weather data. I have a file for each day. Each file is commadelimited with headings.
The columns are common throughout each file, eg:
Time,TemperatureC,DewpointC,PressurehPa, ...
Merging all these files and graphing them reveals that some files are (seemingly randomly) Temperature °F instead of Temperature °C.
I would like to change every temperature in °F into °C – the only means of being able to tell whether the temperature is in °F or °C is the heading of each file, or from context (time of day, time of year).
What’s the best way to systematically open each file, see if a comma delimited heading contains an F, and converting the vertical column below it into C and saving?
Got about 3,220 files.
I would prefer not to use Excel if at all possible… Python?