-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi, I am completely new to PyReuce. I am trying to reduce some APF data (with @pha12kt), but I can't even get PyReduce to find the files. I can run the UVEX example, nothing else.
Following the folder structure from executing base_dir = datasets.UVES("."), I have all the files in the folder /blabla/datasets/Lick_APF/raw, and this script:
import os.path
import pyreduce
# define parameters
instrument = "Lick_APF"
target = "blabla"
night = None
mode = "middle"
steps = (
"all"
)
base_dir = "/blabla/datasets/Lick_APF"
input_dir = "raw"
output_dir = "reduced"
# Path to the configuration parameters, that are to be used for this reduction
config = pyreduce.configuration.get_configuration_for_instrument(instrument, plot=1)
pyreduce.reduce.main(
instrument,
target,
night,
mode,
steps,
base_dir=base_dir,
input_dir=input_dir,
output_dir=output_dir,
configuration=config,
)
The log file is save, as expected, at blabla/datasets/Lick_APF/logs/{target}.log, it says:
2023-05-24 22:46:37,256 - DEBUG - pyreduce.util - ----------------------
2023-05-24 22:46:37,256 - DEBUG - pyreduce.util - PyReduce version: 0.5.27
2023-05-24 22:46:38,097 - WARNING - pyreduce.instruments.common - No science files found matching the expected values {'instrument': 'apf', 'spec': 'OBJECT'}
2023-05-24 22:46:38,097 - WARNING - pyreduce.reduce - No files found for instrument: lick_apf, mode: middle in folder: /blabla/datasets/Lick_APF/raw/
Do I need to preprocess the raw data's header or something to specify which files are science/dark/flat etc. for it to work? The files were downloaded straight from https://mthamilton.ucolick.org/data/ without any alteration.
Thanks!