function to extract data from figure files (might be useful at some point)
array_factor function for planar rectangular arrays (needs work and verification)