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

docs for chgres_cold2fv3.py #519

Merged
merged 3 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 3 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sphinxcontrib-bibtex
sphinx_rtd_theme
docutils==0.16
docutils==0.16
numpy
netCDF4
10 changes: 10 additions & 0 deletions ush/chgres_cold2fv3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
???
"""
edwardhartnett marked this conversation as resolved.
Show resolved Hide resolved
import numpy as np
from netCDF4 import Dataset
import remap_dwinds
Expand All @@ -6,6 +9,13 @@
import sys

def nan_check(arr, name, check_id):
"""
NAN check?

arr: ???
name: ???
check_id: ???
"""
edwardhartnett marked this conversation as resolved.
Show resolved Hide resolved
nan_count = 0
nan_count = np.sum(np.isnan(arr))
print(f"coldstartwinds({check_id}) nan_count({name}): {nan_count}")
Expand Down
Loading