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

Output methods for ungrib, MPAS, and MPAS Init. #625

Open
2 tasks
christinaholtNOAA opened this issue Oct 28, 2024 · 1 comment
Open
2 tasks

Output methods for ungrib, MPAS, and MPAS Init. #625

christinaholtNOAA opened this issue Oct 28, 2024 · 1 comment

Comments

@christinaholtNOAA
Copy link
Contributor

AC

  • Add an interface for a public method task (if not already done)
  • Provide the output files in an appropriate data structure (dict, list) as a public helper method on the object.

Description

Use stream files and other config settings to determine expected output for MPAS and MPAS Init and output in a dict with labels like those in stream file. Return a list (probably) of the ungribbed files.

No need to hook into CLI.

@christinaholtNOAA christinaholtNOAA converted this from a draft issue Oct 28, 2024
@christinaholtNOAA
Copy link
Contributor Author

Ungrib

Output files are named from namelist entries like this pseudo code:

for file_date in share.start_date to share.end_data in share.interval_seconds:
file_name = f"{ ungrib.prefix }:{ file_date.strfmt("%Y-%m-%d_%h") }"

MPAS Init

Output file is defined from the streams.init_atmosphere for any entries matching the type=output. The filename_template entry defines the name of the output files. They use templates that look like:

filename_template="lbc.$Y-$M-$D_$h.$m.$s.nc"

MPAS

Same approach as MPAS, but the name of the streams file is streams.atmosphere. Both can probably use the values defined in the UW YAML.

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

No branches or pull requests

1 participant