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

fix WV x-spectra stacking #75

Merged
merged 2 commits into from
Aug 5, 2024
Merged

fix WV x-spectra stacking #75

merged 2 commits into from
Aug 5, 2024

Conversation

agrouaze
Copy link
Member

@agrouaze agrouaze commented May 17, 2024

recommendations (F.Nouguier):

  1. find the smallest size in range and azimuth for all the xpsectra WV dataset (2millions imagettes)
  2. crop all the spectra (to minimal values found) using isel
  3. store the k_rg and k_az as variables in the stacked dataset
  4. look at the variability of the 2 vectors (k_az and k_rg) in the dataset to decide if they are close enough to be considered as identical. If not -> find the smallest k that are "common" and crop them.

My current approach is more brutal, I crop the xspectra to k<0.14 (40m) and it works (so far) because the data is close enough at these values of k.

This PR also contains modifications to allow to build the dataset WV L1C stacked containing groups for foundation model training:

group: ecmwf_0100_1h {
group: ww3_global_yearly_3h {
group: sar_sentinel1_wv_l1b_xsp_intraburst {

@agrouaze agrouaze added the bug Something isn't working label May 17, 2024
@agrouaze agrouaze linked an issue May 17, 2024 that may be closed by this pull request
@agrouaze agrouaze marked this pull request as draft May 17, 2024 16:00
@agrouaze agrouaze self-assigned this May 17, 2024
@agrouaze agrouaze marked this pull request as ready for review August 5, 2024 10:05
@agrouaze agrouaze merged commit 5332118 into main Aug 5, 2024
@agrouaze agrouaze deleted the fix_stacking_WV branch August 5, 2024 12:23
@agrouaze agrouaze restored the fix_stacking_WV branch August 23, 2024 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WV L1C stacking is resulting in not centered/cropped spectra
1 participant