xgcm / aerobulk-python

A python wrapper for aerobulk (https://github.com/brodeau/aerobulk)
GNU General Public License v3.0
14 stars 4 forks source link

Include range endpoints in input_range_check #54

Open paigem opened 1 year ago

paigem commented 1 year ago

While running aeroubulk-python today I ran into an error from the input_range_check that the shortwave radiation had values not within range. Investigating further it became clear that there are many points that are exactly equal to zero, which is the bottom end of the acceptable range for that variable.

This PR updates the code so that both the endpoints of the range are included as acceptable. I.e. whereas we previously had (range_start,range_end) we now have [range_start,range_end], where the square brackets include the end points.