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.
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.