[pnm][griddata] Simplify file hedaer reader and handle Windows endlines

6 jobs for !3233 with fix/porenetwork-windows-lineendings in 39 seconds (queued for 2 seconds)
latest merge request