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

Bnb/dev #101

Merged
merged 6 commits into from
Oct 12, 2022
Merged

Bnb/dev #101

merged 6 commits into from
Oct 12, 2022

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Oct 12, 2022

added non surface features for DataHandlerNCforCC

Copy link
Member

@grantbuster grantbuster left a comment

Choose a reason for hiding this comment

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

Looks good but I think you still need to add a clause in FeatureHandler.lookup() that prioritizes an exact match from the feature registry over the regex match.

arr = np.expand_dims(arr, axis=(0, 2, 3))
arr = np.repeat(arr, hgt.shape[0], axis=0)
arr = np.repeat(arr, hgt.shape[2], axis=2)
arr = np.repeat(arr, hgt.shape[3], axis=3)
Copy link
Member

Choose a reason for hiding this comment

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

is this where the pressure level magic happens? Looks great, this is exactly why i reached out for help :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, all we needed to do was setup the plev field to be treated like any other field that needs height interpolation. So we make it into a 4D array (it starts as just a 1D) and we're good to go.

@bnb32
Copy link
Collaborator Author

bnb32 commented Oct 12, 2022

Looks good but I think you still need to add a clause in FeatureHandler.lookup() that prioritizes an exact match from the feature registry over the regex match.

This can be accomplished by the ordering in the feature registry but I also added an explicit loop for this.

@bnb32 bnb32 merged commit 3c41e4a into main Oct 12, 2022
@bnb32 bnb32 deleted the bnb/dev branch October 12, 2022 18:12
github-actions bot pushed a commit that referenced this pull request Oct 12, 2022
non surface feature handling for cc data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants