Not sure if this is an error or a question for Stack Overflow. Please advise if SO is the better place and I'll remove this issue.
I'm getting the following error while trying to extract records from a head file.
flopy is installed in C:\Anaconda\lib\site-packages\flopy
Traceback (most recent call last):
File "read_mdl.py", line 20, in
recs = hdobj.get_alldata()
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 476, in get_alldata
h = self.get_data(totim=totim, mflay=mflay)
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 438, in get_data
data = self._get_data_array(totim1)
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 343, in _get_data_array
data = np.empty((self.nlay, nrow, ncol), dtype=self.realtype)
ValueError: array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size.
The file is fairly large, 1.73 GB. The model is 9 layers, ~300 rows, ~150 cols. I'm saving ~500 time steps.
I'm calling the function here:
hdobj = flopy.utils.HeadFile(h_file,precision='double')
recs = hdobj.get_alldata()
trying to look at the time steps in the file seems like it's returning junk:
hdobj.get_times()
[0.0, 6.013469302926925e-154, 6.013470016999068e-154]
hdobj.nrow
160
hdobj.ncol
1145128264
hdobj.nlay
2147005518
If I exclude precision:
Error. Precision could not be determined for heads_cut_test.hds
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda\lib\site-packages\flopy\utils\binaryfile.py", line 450, in init
raise Exception()
Exception
I'm using flopy v3.2.11, Python 3.7.1 (64-bit), and my machine has 32 GB RAM installed.
Thanks!
Not sure if this is an error or a question for Stack Overflow. Please advise if SO is the better place and I'll remove this issue.
I'm getting the following error while trying to extract records from a head file.
flopy is installed in C:\Anaconda\lib\site-packages\flopy
Traceback (most recent call last):
File "read_mdl.py", line 20, in
recs = hdobj.get_alldata()
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 476, in get_alldata
h = self.get_data(totim=totim, mflay=mflay)
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 438, in get_data
data = self._get_data_array(totim1)
File "C:\Anaconda\lib\site-packages\flopy\utils\datafile.py", line 343, in _get_data_array
data = np.empty((self.nlay, nrow, ncol), dtype=self.realtype)
ValueError: array is too big;
arr.size * arr.dtype.itemsizeis larger than the maximum possible size.The file is fairly large, 1.73 GB. The model is 9 layers, ~300 rows, ~150 cols. I'm saving ~500 time steps.
I'm calling the function here:
hdobj = flopy.utils.HeadFile(h_file,precision='double')
recs = hdobj.get_alldata()
trying to look at the time steps in the file seems like it's returning junk:
If I exclude precision:
Error. Precision could not be determined for heads_cut_test.hds
Traceback (most recent call last):
File "", line 1, in
File "C:\Anaconda\lib\site-packages\flopy\utils\binaryfile.py", line 450, in init
raise Exception()
Exception
I'm using flopy v3.2.11, Python 3.7.1 (64-bit), and my machine has 32 GB RAM installed.
Thanks!