Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory issue, FES2022 setup #589

Closed
fadhilahmadd opened this issue Mar 18, 2025 · 2 comments
Closed

Memory issue, FES2022 setup #589

fadhilahmadd opened this issue Mar 18, 2025 · 2 comments

Comments

@fadhilahmadd
Copy link

import pyfes
filepath = r'D:\fes2022b\fes2022.yaml'
handlers = pyfes.load_config(filepath)

then i got this error :

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\asus\anaconda3\envs\coastsat\Lib\site-packages\pyfes\config.py", line 519, in load
models[key] = _load_model(user_settings[key], tidal_type=key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\asus\anaconda3\envs\coastsat\Lib\site-packages\pyfes\config.py", line 487, in _load_model
return Cartesian(**settings['cartesian']).load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\asus\anaconda3\envs\coastsat\Lib\site-packages\pyfes\config.py", line 282, in load
lon, lat, wave = load_cartesian_model(
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\asus\anaconda3\envs\coastsat\Lib\site-packages\pyfes\config.py", line 163, in load_cartesian_model
wave: Matrix = amp * numpy.cos(pha) + 1j * amp * numpy.sin(pha)
~~~^~~~~
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 445. MiB for an array with shape (5401, 10801) and data type complex64

@phillipjws
Copy link
Contributor

See the script here as it was written to solve this problem.

@fadhilahmadd
Copy link
Author

thankyouu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants