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

bounds-check bug in SAMPLEXY #1409

Closed
karlmsmith opened this issue Nov 23, 2017 · 1 comment
Closed

bounds-check bug in SAMPLEXY #1409

karlmsmith opened this issue Nov 23, 2017 · 1 comment

Comments

@karlmsmith
Copy link
Contributor

karlmsmith commented Nov 23, 2017

Reported by @AnsleyManke on 24 Jan 2014 01:20 UTC
The function samplexy gets the x and y axis coordinates of the first argument. If a sub-range of the variable is sent in,

let SAMPLEXY(rose[x=300:310,y=-10:10], longitude, latitude)

then Ferret hits an error if bounds check is on.

let z_out = samplexy(rose[d=4,x=2.2:5.16,y=52.23:54.84], lon, lat)
load z_out

At line 438 of file samplexy.F
Fortran runtime error: Array reference out of bounds for array 'xaxdat', lower bound of dimension 1 exceeded (2 < 5467)

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2137

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Comment by @AnsleyManke on 24 Jan 2014 19:07 UTC
Fixed in samplexy.F

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant