retoomey / RAPIO

Real Time Algorithm Parameter and IO
GNU Lesser General Public License v3.0
2 stars 0 forks source link

Expand capital I option to include named paired lists #2

Open retoomey opened 1 year ago

retoomey commented 1 year ago

Idea from Carrie to allow assignment override of incoming products with the -I option. This would also have to be implemented in the StockAlgorithm class in WDSS2 core. We also already have key pairing in the capital O options so this would work similar to that.

The capital I option would have the ability to take the form: -I "Reflectivity=CorrectedRef PhiDP=CorrectedPhiDP Velocity=RadialVelocity"

Where in code something like this API would allow knowing a product matches:

std::string dataType = newData.getDataTypeString();
if (matches("Reflectivity", dataType){ // Returns true if incoming is CorrectedRef above
   // Handle reflectivity
}