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

Fearture/jjin3/allow for missing ob type b #415

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

gmao-jjin3
Copy link
Contributor

Allow filter for missing satellite radiance files in the final SWELL configurations, following @rtodling PR #400. However, radiance observations with zero-sized input files are omitted in the final configurations because JEDI/IODA cannot read those zero-sized files. In addition, filters for missing conventional and ozone observational files are omitted since an action of "error" is now assigned for those missing observations.

@gmao-jjin3
Copy link
Contributor Author

gmao-jjin3 commented Aug 29, 2024

So far, this PR works for missing convectional, ozone, and microwave radiance data. It crashes swell-3dfgat_atmos run when any of AIRS, IASI, CRIS-FSR, and AVHRR input files is missing.

@gmao-jjin3
Copy link
Contributor Author

@gmao-wgu It turns out that JEDI crashes with this correlated IR observational error inflation filter when there aren't observational input files:

- filter: BlackList
  filter variables:
  - name: brightnessTemperature
    channels: *cris-fsr_n20_channels
  action:
    name: inflate error
    inflation variable:
      name: ObsFunction/ObsErrorFactorWavenumIR
      channels: *cris-fsr_n20_channels
      options:
        channels: *cris-fsr_n20_channels

UserError: Invalid prior filter requested
ObsErrorCrossVarCov: Obs error correlations not provided for 324 of 431 channels/variables in file: fv3-jedi/rcov/cris-fsr_108_jedi_rcov.nc4. To see which channels, turn on OOPS_TRACE
OOPS Ending 2024-09-03 12:25:59 (UTC-0400)

I added a check of number of observations in /discover/nobackup/jjin3/jedi/jedi-work2/ufo/src/ufo/errors/ObsErrorCrossVarCov.cc.jj . However, that doesn't solve the issue. JEDI still returns an error of "Invalid prior filter". Any idea?

@gmao-wgu
Copy link
Contributor

gmao-wgu commented Sep 3, 2024

@gmao-jjin3 I will try to replicate your case and proceed from there.

@gmao-jjin3
Copy link
Contributor Author

gmao-jjin3 commented Sep 6, 2024

@gmao-wgu It turns out there is an issue to handle IASI files in JEDI/ioda. The filter mentioned above is fine. My other tests go through with missing AIRS and CRIS-FSR input observational files. Tests only fail with missing IASI data. UFO filters are fine.
Reported the issue to the JCSDA team: https://github.com/JCSDA-internal/ioda/issues/1332

@gmao-jjin3
Copy link
Contributor Author

gmao-jjin3 commented Sep 6, 2024

It turns out I had a minor update in UFO before I traced down the above issue in IODA. Here is a UFO PR for the update: https://github.com/JCSDA-internal/ufo/pull/3455.

@Dooruk
Copy link
Collaborator

Dooruk commented Sep 17, 2024

@gmao-jjin3 and @rtodling, is this ready to merge? I see the relevant PR in JEDI is merged.

@gmao-jjin3
Copy link
Contributor Author

@Dooruk No, the JEDI team is still looking into the issue that arises with missing IASI data.

@fabiolrdiniz
Copy link

@gmao-jjin3, please notice that the actual error message in your excerpt above is:

UserError: Invalid prior filter requested

which means you are probably adding a filter in the wrong section (pre, prior, post, please see https://github.com/JCSDA-internal/oops/blob/d77217323bbbd02ea41049fe1bd339f24a64f177/src/oops/base/ObsFilters.h#L41-L58 for more info), while

ObsErrorCrossVarCov: Obs error correlations not provided for 324 of 431 channels/variables in file: fv3-jedi/rcov/cris-fsr_108_jedi_rcov.nc4. To see which channels, turn on OOPS_TRACE
OOPS Ending 2024-09-03 12:25:59 (UTC-0400)

is a warning message that the matrix you provided for CrIS-FSR doesn't have covariances for some channels (likely the ones you don't use).

@gmao-jjin3
Copy link
Contributor Author

@fabiolrdiniz I noticed that before. However, I don't think it is the real reason. All the filters and their order are fine when the obs input file is available.

@Dooruk
Copy link
Collaborator

Dooruk commented Nov 7, 2024

@fabiolrdiniz or @jianjunj, as I recall, there was an issue associated with the UFO filters in case the missing file action was used. Was that resolved? Can we go ahead and merge these changes?

@fabiolrdiniz
Copy link

@fabiolrdiniz or @jianjunj, as I recall, there was an issue associated with the UFO filters in case the missing file action was used. Was that resolved? Can we go ahead and merge these changes?

That's what I recall too and this was the associated fix https://github.com/JCSDA-internal/ufo/pull/3455. However, I remember @gmao-jjin3 reported elsewhere he was still having an issue that I couldn't reproduce on my side with fv3-jedi (gfs though). Same observation config (obs space, files, filters) but with different settings for the solver. I don't think the solver differences would play a role though.

I'm not the right person to say it's working on the swell environment, but it would be nice if someone could test it and report if indeed there is still an issue.

@Dooruk
Copy link
Collaborator

Dooruk commented Nov 12, 2024

That's what I recall too and this was the associated fix JCSDA-internal/ufo#3455. However, I remember @gmao-jjin3 reported elsewhere he was still having an issue that I couldn't reproduce on my side with fv3-jedi (gfs though). Same observation config (obs space, files, filters) but with different settings for the solver. I don't think the solver differences would play a role though.

I'm not the right person to say it's working on the swell environment, but it would be nice if someone could test it and report if indeed there is still an issue.

@gmao-wgu or @gmao-yzhu you mentioned this issue was resolved but could you point the PR or Git Issue that resolved this issue before we merge this in? And @jianjunj if possible.

@gmao-yzhu
Copy link
Contributor

gmao-yzhu commented Nov 12, 2024 via email

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

Successfully merging this pull request may close these issues.

6 participants