Develop a script to initialize meta data index used in production
When using a freshly installed DIRAC instance, the FileCatalog does not contain any metadata index.
These are created directly when creating the first transformations.
However, it might be useful to be able to create them with a dedicated script before any productions.
Note also that the current production scripts do not create meta data index at File Level, but only at directory level. This means that at least nsb meta data index be created before any production.
The current list of meta-data index used in production is:
FC:/> meta show
FileMetaFields : {'nsb': 'INT'}
DirectoryMetaFields : {'thetaP': 'FLOAT', 'data_level': 'INT', 'particle': 'VARCHAR(128)', 'tel_sim_prog_version': 'VARCHAR(128)', 'airshower_sim_prog': 'VARCHAR(128)', 'array_layout': 'VARCHAR(128)', 'outputType': 'VARCHAR(128)', 'calibimgreco_prog_version': 'VARCHAR(128)', 'site': 'VARCHAR(128)', 'MCCampaign': 'VARCHAR(128)', 'stage1_prog': 'VARCHAR(128)', 'calibimgreco_prog': 'VARCHAR(128)', 'tel_sim_prog': 'VARCHAR(128)', 'configuration_id': 'INT', 'phiP': 'FLOAT', 'output_type': 'VARCHAR(128)', 'airshower_sim_prog_version': 'VARCHAR(128)', 'stage1_prog_version': 'VARCHAR(128)', 'merged': 'int'}