From a 100% theorist (i.e., zero experience

): Decide on what is the smallest detail you want to be able to resolve. This will set a minimum for the aperture for the scope. As a guide consider:
minimum aperture in inches = 4.6 / required resolution in arc seconds
Multiply by 1.4 if you want to image red things, double for infra-red.