Clean up code to ensure readability and thoroughly document any sections that may have needed explanation.
Standardize the syntax and names of functions as well.
Examples of what was done:
Capitalize all instances of NRRD that is not referring to the file extension *.nrrd or the library pynrrd or nrrd. NRRD is an acronym for Nearly Raw Raster Data, so it should be capitalized.
Replace all instances of filehandle with fh
Rename variables that did not conform to the underscore protocol (each_word_is_a_underscore)
Clean up code to ensure readability and thoroughly document any sections that may have needed explanation.
Standardize the syntax and names of functions as well.
Examples of what was done: