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

domain_reads ignores the corner and edge_lengths arguments #1611

Open
uramirez8707 opened this issue Oct 30, 2024 · 0 comments · May be fixed by #1620
Open

domain_reads ignores the corner and edge_lengths arguments #1611

uramirez8707 opened this issue Oct 30, 2024 · 0 comments · May be fixed by #1620

Comments

@uramirez8707
Copy link
Contributor

Describe the bug
If one wanted to read in a slice of the zaxis with fms2_io, one can do

call read_data(fileob, varname, var_data(:,:,:), &
        corner=(/1, 1, 2/), edge_lengths=(/ nx, ny, 1/))

However, fms2_io ignores the corner and edge_lengths arguments and you will always read starting with the first z axis till however big the third dimension is in your buffer.

c(:) = 1
e(:) = shape(vdata)

call netcdf_read_data(fileobj, variable_name, buf_i4_kind, &
unlim_dim_level=unlim_dim_level, &
corner=c, edge_lengths=e, broadcast=.false.)

To Reproduce
This unit test reproduces the issue. It currently fails when checking that the data was read in correctly.

Expected behavior
That test case should work

System Environment
This happens in any system

Additional context
N/A

@uramirez8707 uramirez8707 linked a pull request Dec 5, 2024 that will close this issue
8 tasks
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 a pull request may close this issue.

1 participant