MODFLOW-USGS / modpath-v7

MODPATH version 7 -- Particle tracking for MODFLOW-2005, MODFLOW-USG, and MODFLOW-6
11 stars 5 forks source link

Incorrect pathline data in mppth file for numbers smaller than 1E-99 #30

Closed OnnoEbbens closed 2 years ago

OnnoEbbens commented 2 years ago

In the mppth output file numbers smaller than 0.1E-99 are not written correctly. Numbers higher than 1E-99 are written with the scientific 'E' for example: 0.51101513E-99. Numbers smaller are written without the scientific 'E' for example '0.68607846-100'. This makes it hard to read these files using flopy.

When I try to read such a PathlineFile using:

p = flopy.utils.PathlineFile('mp7_gwf_f.mppth', verbose=False)

I get this error:

ValueError: could not convert string to float: '0.68607846-100'

OnnoEbbens commented 2 years ago

Here is my mppth file: https://drive.google.com/file/d/1pvba7aeSxfhmFNsJd4ftySRjUn2qTbd3/view?usp=sharing

OnnoEbbens commented 2 years ago

I see this was already mentioned and closed in #27 and #13