Skip to content

Error with load_ncdf when using the option --lncd_input_file #20

@pjacquet1977

Description

@pjacquet1977

When I set "modules_preproc": ["load_ncdf"] and igm_run --lncd_input_file=$PATH"input.nc" I obtain the error message:

Traceback (most recent call last):
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm_venv_gpu/bin/igm_run", line 33, in
sys.exit(load_entry_point('igm-model', 'console_scripts', 'igm_run')())
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/igm_run.py", line 48, in main
run_intializers(imported_modules, params, state)
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/common.py", line 165, in run_intializers
module.initialize(params, state)
File "/work/CTR/CI/DCSR/rfabbret/default/pjacquet/igm/igm/modules/preproc/load_ncdf/load_ncdf.py", line 83, in initialize
I = np.where(TIME == params.time_start)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions