Resolve "Dataset parameters filter by multiple parameter names"
Closes #605 (closed) This MR does:
Allows to get the data parameters in CSV format (specially for data mining)
Example
http://localhost:8000/catalogue/-/datasetparameter?instrumentName=BM18&name=TOMO_energy,TOMO_pixelSize,InstrumentDetector01Rois_value,TOMO_exposureTime,TOMO_ccdAcqmode&startDate=2023-11-01&endDate=2024-05-17&format=csv
Response
datasetId createTime TOMO_energy TOMO_pixelSize InstrumentDetector01Rois_value TOMO_exposureTime
1419531307 2023-11-26T09:52:47.996+01:00 101.0 7.0 0.09
1419537469 2023-11-26T10:13:38.512+01:00 101.0 7.0 0.09
1419544423 2023-11-26T10:33:59.564+01:00 101.0 7.0 0.09
....
Multiple parameters are not allowed when format is not csv as it can not be mapped into json.
Allows to get unique values
Example
http://localhost:8000/catalogue/----/datasetparameter/values?instrumentName=BM18&name=TOMO_energy,TOMO_pixelSize,InstrumentDetector01Rois_value,TOMO_exposureTime,TOMO_ccdAcqmode&startDate=2024-05-16&endDate=2024-05-17
Response
[
{
"name": "TOMO_energy",
"values": [
"41.0",
"70.0",
"89.0",
"110.0",
"170.0"
]
},
{
"name": "TOMO_pixelSize",
"values": [
"1.036",
"2.501",
"14.863"
]
},
{
"name": "InstrumentDetector01Rois_value",
"values": [
"0,0,2959,5056",
"0,448,2048,1152",
"1,0,2959,5056",
"881,0,1199,5056",
"0,0,5056,2960"
]
},
{
"name": "TOMO_exposureTime",
"values": [
"0.01",
"0.035",
"0.045",
"0.08",
"0.25"
]
}
]
Edited by Alejandro De Maria Antolinos