iris icon indicating copy to clipboard operation
iris copied to clipboard

Implement UGRID default start_index

Open pp-mo opened this issue 4 years ago • 6 comments

✨ Feature Request

In the UGRID conventions, the 'start_index' property is never actually required, e.g. in this section

For the indexing one may use either 0- or 1-based indexing; the convention used should be specified using a start_index attribute to the index variable (i.e. Mesh2_face_nodes in the example below). Consistent with the CF-conventions compression option, the connectivity indices are 0-based by default. See this section on zero or one-based indexing for more details.

But in our current code, we have assumed it is always there

Notable specifically for connectivities, might possibly apply elsewhere, but at present I think not : probably just in this one place ?

pp-mo avatar Jun 30 '21 09:06 pp-mo

This should I think be fine to implement - the Connectivity class always has a start_index attribute, but defaults to =0 in line with the UGRID conventions.

trexfeathers avatar Jul 05 '21 07:07 trexfeathers

fine to implement

Absolutely, logically it is all fine, we must just stop assuming that a file variable always has a start_index attribute.

So, I think this PR should be all that's needed

pp-mo avatar Jul 05 '21 11:07 pp-mo

In order to maintain a backlog of relevant issues, we automatically label them as stale after 500 days of inactivity.

If this issue is still important to you, then please comment on this issue and the stale label will be removed.

Otherwise this issue will be automatically closed in 28 days time.

github-actions[bot] avatar Oct 29 '23 00:10 github-actions[bot]

This stale issue has been automatically closed due to a lack of community activity.

If you still care about this issue, then please either:

  • Re-open this issue, if you have sufficient permissions, or
  • Add a comment stating that this is still relevant and someone will re-open it on your behalf.

github-actions[bot] avatar Nov 26 '23 00:11 github-actions[bot]