Skip to content

Got "IndexError: Index exceeds dimension bounds" when running Rout_vic.py #23

@giaMSU

Description

@giaMSU

Hi all,
I meet this error when running rout_vic.py. Could you please help to fix it?
Best

~/VIC_running/scripts$ python rout_vic.py ../data/input/Nyando_UHFile.csv ../data/input/gis/Nyando_gauge_fraction.tif ../data/output/runoff_2005.nc ../data/output/base_2005.nc ../data/output/rout_out.csv 20050101 20131231 False
Traceback (most recent call last):
File "rout_vic.py", line 287, in
main()
File "rout_vic.py", line 281, in main
sys.argv[6],sys.argv[7],sys.argv[8])
File "rout_vic.py", line 222, in rout_vic
runoff = (rovar[t1off:t2off,idx[0][i],idx[1][i]]*factor)
File "netCDF4/_netCDF4.pyx", line 4408, in netCDF4._netCDF4.Variable.getitem
File "netCDF4/_netCDF4.pyx", line 5350, in netCDF4._netCDF4.Variable._get
IndexError: index exceeds dimension bounds

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