I would stay away from test_modis_simulator.F90, and anything within the "unit_testing" directory. (This directory contains old code from the simulator developers for individual simulator testing, which predates the current testing provided with cosp2.)
Start with
driver/src/cosp2_test.F90. This reads in sample input, sets up the input/output, and calls
cosp_simulator(). You will need to mirror this process with your WRF data. The step setting up the input (two) and output (one) types is where you will need to connect your data with what cosp requires. One input type contains the model-state (e.g. temp, pres, humidity, etc...), and the other contains the derived optical description (e.g. optical-depth, radar reflectivity, lidar backscatter coefficients, etc...). There is a routine,
subsample_and_optics(), provided with the offline driver to perform this mapping from the microphysical fields (e.g. cloud mixing-ratios, effective radii, ...) to the derived optical inputs. This is where you will need to determine
what microphysical information you have from WRF and
what microphysical information you want to provide to the instrument simulators.
Hopefully this provides a starting point. Feel free to reach out if you have specific questions.