Reformatting Text Files


One of the most common programming tasks in natural resources is to reformat a file. This happens so often be cause field crews and web sites rarely provide data in a format that software packages need. In addition, software packages do not all take data in the same format so you may need to change a file between packages. Finally, we want to reformat data to make it more accessible to humans.

In the summer of 2020, I worked on a project that pulled over 300 files on Salmon data just for the Trinity River. The data was thn QAQCed and selected files were processed with Ptyhon and put into a database for the Yurok Fisheries Department to use. This is just one of hundreds of examples where I have processed large datasets using Python.


The most common reformatting tasks are:


© Copyright 2018 HSU - All rights reserved.