DAP4: DAP4 Projection Syntax

From OPeNDAP Documentation

<< Back to OPULS Development


Currently, the syntax for "projection" constraints in the spec looks roughly like this:


In looking how John handled this in CDM, I noticed that he used a different but equivalent notation that strikes me a superior.


Basically, the proposal is to push all of the indexing to the end of the expression. So we now would have (using the above example):



Assuming one has the rank info for the intermediate structs and fields, the two forms are equivalent. The advantage of this format is that it has a simpler syntax and is easier to parse. It is basically an FQN followed by a sequence of slice specs.