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

KeyError: 'only_ocean_sources'???why? #9

Open
HanyuZhang520 opened this issue Dec 19, 2024 · 0 comments
Open

KeyError: 'only_ocean_sources'???why? #9

HanyuZhang520 opened this issue Dec 19, 2024 · 0 comments

Comments

@HanyuZhang520
Copy link

Step 2: Creating a source grid

create the source grid
!noisi setup_sourcegrid example

show the sketch of the source grid

#Image('example/sourcegrid.png', width=400)

result:

Configuration used to set up source grid:
{'date_created': '2024.12.19',
'grid_dx_in_m': 35000,
'grid_lat_max': 65,
'grid_lat_min': 30,
'grid_lon_max': 25,
'grid_lon_min': -15,
'ocean_only_sources': True,
'project_name': 'example',
'project_path': '/mnt/d/DAS_ZXP_20231227/noisi/noisi/examples/example',
'random_shift_longitude': False,
'synt_data': 'DIS',
'verbose': True,
'wavefield_channel': 'Z',
'wavefield_domain': 'time',
'wavefield_duration': 800.0,
'wavefield_filter': [0.01, 0.2],
'wavefield_path': 'x',
'wavefield_point_force': '1.0e6',
'wavefield_sampling_rate': 0.5,
'wavefield_type': 'analytic'}
Number of gridpoints: 9520
Traceback (most recent call last):
File "/home/zhy/anaconda3/envs/noisi_py3.8/bin/noisi", line 33, in
sys.exit(load_entry_point('noisi==0.1.0a0', 'console_scripts', 'noisi')())
File "/home/zhy/anaconda3/envs/noisi_py3.8/lib/python3.8/site-packages/noisi-0.1.0a0-py3.8.egg/noisi/main.py", line 172, in run
args.func(args, comm, size, rank)
File "/home/zhy/anaconda3/envs/noisi_py3.8/lib/python3.8/site-packages/noisi-0.1.0a0-py3.8.egg/noisi/scripts/source_grid.py", line 49, in setup_sourcegrid
if config["only_ocean_sources"]:
KeyError: 'only_ocean_sources'

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

1 participant