MeteoSwiss / dvas

Data Visualization and Analysis Software for the UAII 2022
https://meteoswiss.github.io/dvas/
GNU General Public License v3.0
3 stars 0 forks source link

Query db using 'mid' #168

Closed fpavogt closed 2 years ago

fpavogt commented 2 years ago

Describe the change

It would be very useful to have the possibility of querying the db using specific mid values, e.g. RS41. At the moment, unless I missed something, we can query the db using:

We cannot query using object id oid, but this is not critical (I think) because it is something set by the system, and therefore not something known a priori by the user. The mid info, however, is very much known to the user, that may be tempted to use to process all profiles from a given radiosonde model.

@modolol: What do you think ? Is there any db-related black magic that could make this addition difficult ?

There are ways around (e.g. query all flights, and only then select the ones with the correct mid values, add the mid value as a tag), but having the mid query would be the most elegant, no ?

modolol commented 2 years ago

Requests using oid(<id>) should work. Adding mid to the available commands should be done easily.

modolol commented 2 years ago

Can you please check this two features in my last push (branch develop_mol, commit cc30c83541f25fd79499fa91866cab249d0c1aa7)?

fpavogt commented 2 years ago

It works for both oid and mid ! We should add these commands to the doc, in creating_recipes.rst under the Event filtering syntax section (where sn should also be changed to srn).