-
Notifications
You must be signed in to change notification settings - Fork 0
Site Vs30 / Z values #90
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
Changes from 15 commits
4f251ae
74a4e6e
58fee28
3779fac
0e97199
56b7cc6
02fd89d
41f1822
31b231e
df23bd8
5dd07e5
3e6ff8e
ffaba45
b20ba31
9368b79
f148282
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6,14 +6,179 @@ | |||||
| from pathlib import Path | ||||||
|
|
||||||
| import fiona | ||||||
| import numpy as np | ||||||
| import pandas as pd | ||||||
| import rasterio | ||||||
| from obspy.clients.fdsn import Client as FDSN_Client | ||||||
| from pyproj import Transformer | ||||||
| from scipy.spatial import cKDTree | ||||||
|
|
||||||
| from nzgmdb.data_retrieval import tect_domain | ||||||
| from nzgmdb.management import config as cfg | ||||||
| from nzgmdb.management.data_registry import NZGMDB_DATA | ||||||
| from qcore import point_in_polygon | ||||||
| from velocity_modelling import registry | ||||||
| from velocity_modelling import registry, threshold | ||||||
|
|
||||||
|
|
||||||
| def fill_gaps_with_nearest( | ||||||
| coords: np.ndarray, | ||||||
| values: np.ndarray, | ||||||
| invalid_mask: np.ndarray = None, | ||||||
| k: int = 8, | ||||||
| ): | ||||||
|
||||||
| ): | |
| ) -> np.ndarray: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ): | |
| ) -> np.ndarray: |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than printing a warning here, perhaps raise a UserWarning? Advantage of this is that such warnings can be supressed and are visually distinct from other printed messages and so are easier to identify in the console.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.