We're updating the issue view to help you get more done. 

STARE server-side functions: function 3

Description

This function will use the passed in parameters similar to the previous two functions. Using these parameters, the function will generate two vectors: one with the data values and one with the STARE indices.

To return multiple values we will have to use a struct and have the client unwrap it. The bes/dap/DapFunctionUtil has a function (promote_function_output_structures) that if the Structure given to the DDS ends with "_unwrap" it will take each variable from the structure and 'promote it' to the top level of the DDS.

1 2 3 4 5 6 7 struct responseVals(string variable, vector <uint64> stareIndices) { struct.stareIndex; struct.dataVal; return struct; }

 

Should only have to name it “_unwrap” and return it, then let the server handle the rest. Look at BESDapResponseBuilder::send_dap2_data and GeoTiffTransmitter::send_data_as_geotiff for examples.

 

Status

Assignee

Kodi Neumiller

Reporter

Kodi Neumiller

Priority

Medium

Labels

None

Story Points

3

Fix versions

None

Epic Link