Skip to content

Sprint: Updating two GOES and three marine converters for naming conventions#1121

Merged
srherbener merged 31 commits intofeature/sprint-ioda-convertersfrom
feature/sprint-ioda-converters-greg1
Jan 3, 2023
Merged

Sprint: Updating two GOES and three marine converters for naming conventions#1121
srherbener merged 31 commits intofeature/sprint-ioda-convertersfrom
feature/sprint-ioda-converters-greg1

Conversation

@gthompsnJCSDA
Copy link
Copy Markdown
Contributor

@gthompsnJCSDA gthompsnJCSDA commented Nov 20, 2022

Description

This is a large PR to update all non-BUFR python converters to the develop branch and get them all to work with the naming convention changes. In all there are 11 marine, 2 land, 5 composition converters along with the GOES converter and GNSSRO. Only the GOES converter does not have a corresponding ctest due to file sizes of the input files.

This PR does not resolve getting all ctests to pass for the ioda-validate program of the testoutput files. That will require additional changes to the source code again to update any variable names in correspondence with the ObsSpace.yaml since a number of new converters in marine and compo were added since the develop branch had gone forward for over 7 months without corresponding changes in the sprint branch.

Issue(s) addressed

Part of the code sprint and an issue was not separately created.

Acceptance Criteria (Definition of Done)

Working in sprint branch, positive reviews, and output files pass validation tests (this step will come soon in next PR).

Dependencies

None

Impact

There should be none as long as kept within Sprint branch now.

Copy link
Copy Markdown
Collaborator

@srherbener srherbener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gthompsnJCSDA
Copy link
Copy Markdown
Contributor Author

@ericlingerfelt It seems you are the really best candidate to review the PR please.

@ericlingerfelt
Copy link
Copy Markdown
Contributor

I will take look this morning. Thanks for doing this, @gthompsnJCSDA!

@ericlingerfelt
Copy link
Copy Markdown
Contributor

I can review the GOES converter modifications, but I do not have the expertise to review the marine ones.

@gthompsnJCSDA gthompsnJCSDA marked this pull request as draft December 7, 2022 17:25
@gthompsnJCSDA gthompsnJCSDA marked this pull request as ready for review December 9, 2022 18:14
@gthompsnJCSDA gthompsnJCSDA marked this pull request as draft December 20, 2022 17:12
@gthompsnJCSDA
Copy link
Copy Markdown
Contributor Author

I decided to put this PR into DRAFT mode while I work out a bunch more marine converters to use the proper dateTime variable. Stay tuned.

@PatNichols
Copy link
Copy Markdown
Contributor

@gthompsnJCSDA is this ready for merging...

@gthompsnJCSDA
Copy link
Copy Markdown
Contributor Author

@gthompsnJCSDA is this ready for merging...

Not yet. I will check off the last couple items and pull it out of draft mode and ask you to merge. I basically fixed a large batch of converters - so I'll update the comments. But the testoutput files are still not passing the ioda-validate program, which I will work on separately and submit another PR.

@gthompsnJCSDA gthompsnJCSDA marked this pull request as ready for review December 24, 2022 15:20
Copy link
Copy Markdown
Collaborator

@BenjaminRuston BenjaminRuston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good, thanks for working through these, the change fromncf to hdf will have to ask you more about later

from datetime import datetime, date, timedelta
import os
from pathlib import Path
from pyhdf.SD import SD, SDC
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why switch to pyhdf API? What problem is this solving?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I had to. The input file is hdf4, not hdf5/netcdf, so I had to switch. This is basically coming from a develop branch change that someone made - so I just followed it thru into the sprint branch so it functions again.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also found this strange was this something from the aerosol group? but if pyhdf is supported in the stack would potentially get this through and then have the aerosol group review and hopefully consolidate and minimize the number of libraries used

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gthompsnJCSDA thanks for the explanation. pyhdf is supported/included in spack-stack. It would be nice in the future to get providers updated from hdf4 to netcdf/hdf5, but that is certainly outside the scope of this PR.

@srherbener
Copy link
Copy Markdown
Collaborator

I think it makes sense to merge now so that the downstream work gets unblocked. I'll do the merge now. Thanks for your patience!

@srherbener srherbener merged commit be4cd94 into feature/sprint-ioda-converters Jan 3, 2023
@srherbener srherbener deleted the feature/sprint-ioda-converters-greg1 branch January 3, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OBS OBS processing, UFO

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants