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

Support monotonically increasing/decreasing array in data_override #1388

Merged
merged 18 commits into from
Dec 14, 2023

Conversation

uramirez8707
Copy link
Contributor

@uramirez8707 uramirez8707 commented Oct 11, 2023

Description

  • Updates nearest_index to support monotonically increasing/decreasing arrays
  • Updates axis_edges to support monotonically increasing/decreasing arrays
  • Updates horiz_interp (bilinear) to support monotonically increasing/decreasing arrays
  • Updates data_override to support monotonically increasing/decreasing arrays

Fixes #1387
Fixes #1397
Fixes #1213

How Has This Been Tested?
CI, including tests that were added

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • New check tests, if applicable, are included
  • make distcheck passes

@uramirez8707 uramirez8707 marked this pull request as draft October 11, 2023 16:41
bensonr
bensonr previously approved these changes Oct 17, 2023
@uramirez8707 uramirez8707 changed the title update nearest_index to support motonically increasing/decreasing arrays Support monotically increasing/decreasing array in data_override Oct 24, 2023
@uramirez8707 uramirez8707 changed the title Support monotically increasing/decreasing array in data_override Support monotonically increasing/decreasing array in data_override Oct 24, 2023
bensonr
bensonr previously approved these changes Oct 25, 2023
@uramirez8707 uramirez8707 marked this pull request as ready for review December 11, 2023 22:22
@@ -265,7 +270,7 @@
!! inputs:
!!
!! rval = arbitrary data...same units as elements in "array"
!! array = array of data points (must be monotonically increasing)
!! array = array of data points (must be monotonically)
Copy link
Member

Choose a reason for hiding this comment

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

This is an incomplete sentence. Can you fix for the beta tag?

Comment on lines +1034 to +1041
! do j = 1, axis_sizes(2)+1
! if( override_array(curr_position)%lat_in(j) > lat_min ) exit
! js_src = j
! enddo
! do j = 1, axis_sizes(2)+1
! je_src = j
! if( override_array(curr_position)%lat_in(j) > lat_max ) exit
! enddo
Copy link
Member

Choose a reason for hiding this comment

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

TODO: remove

@rem1776 rem1776 merged commit ac0d086 into NOAA-GFDL:main Dec 14, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants