Update of down sampling, partial hanning taper, rescale ccf, and allow device with mps#2
Open
frostforestcdjl wants to merge 4 commits intoAI4EPS:mainfrom
Open
Update of down sampling, partial hanning taper, rescale ccf, and allow device with mps#2frostforestcdjl wants to merge 4 commits intoAI4EPS:mainfrom
frostforestcdjl wants to merge 4 commits intoAI4EPS:mainfrom
Conversation
Contributor
frostforestcdjl
commented
May 11, 2025
- read_mseed can get --sampling_rate and do downsample now
- do demean before pad zeros to get one day length, or the padded zeros will be shifted after the later demean.
- comment nt=8640001, or the tensor from "data = np.zeros([3, nx, nt], dtype=np.float32)" will create data length before downsampling instead of the data length after downsampling.
- apply "partial_hann_taper" to replace the hann_window.
- ccf îs devided by window length after cross-correlation now.
- In run.py, add os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1" to allow --device=mps.
… zeros. 3) apply lowpass and update downsample method. 4) comment nt=8640001 for using corrected nt after downsample.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.