Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reducing Lick_APF #62

Open
cylammarco opened this issue May 24, 2023 · 0 comments
Open

reducing Lick_APF #62

cylammarco opened this issue May 24, 2023 · 0 comments

Comments

@cylammarco
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant