Quickstart tutorial

First, load the module

import procastro as pa

You can load files from a directory with

ad =  pa.AstroDir("*.fits")

and find files with easy filtering

# either with logical OR
ad_or_filtered = ad.filter(name_match="wasp", exptime_lt=120)

# or with logical AND
ad_and_filtered = ad.filter(name_match="wasp").filter(exptime_lt=120)

also with easy indexing and mixing

ad_selected = ad[ad["exptime"] > 10]
ad_selected = ad[:5] + ad[7:]