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

documentation for blending_fv3.py #517

Merged
merged 7 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
sphinxcontrib-bibtex
sphinx_rtd_theme
docutils==0.16
docutils==0.16
numpy
netCDF4
raymond
18 changes: 18 additions & 0 deletions ush/blending_fv3.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
"""
This file handles blending of FV3 tiles???
edwardhartnett marked this conversation as resolved.
Show resolved Hide resolved

"""
import numpy as np
from netCDF4 import Dataset
import raymond
import sys

def check_file_nans(test_nc, vars_fg, vars_bg, name):
"""
Check file NANS?

test_nc: Test netCDF file.
vars_fg: Vars?
vars_bg: Vars?
name: Name of file?
edwardhartnett marked this conversation as resolved.
Show resolved Hide resolved

"""
nans = False
for (var_fg, var_bg) in zip(vars_fg, vars_bg):
i = vars_fg.index(var_fg)
Expand All @@ -20,6 +33,11 @@ def check_file_nans(test_nc, vars_fg, vars_bg, name):
return nans

def err_check(err):
"""
Check for error.

err: Error code.
"""
if err > 0:
print(f"An error ocurred in {sys.argv[0]}. Blending failed!!!")
print(f"err={err}")
Expand Down
Loading