gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Issue
I tried to convert the data which run well in VIC4 classic driver into netCDF4 file so that it can be run on the VIC5 image driver, and the following error occurred. The error message is as follows:
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f620a30e083]
./vic_image.exe(+0x4dbed) [0x55de10ac3bed]
./vic_image.exe(+0xa4493) [0x55de10b1a493]
./vic_image.exe(+0x7865d) [0x55de10aee65d]
[ERROR] ../shared_all/src/vic_history.c:110: errno: None: Number of gridcells in stream is less than 1
(base) root@DESKTOP-FQB9Q1L:~/VIC/vic/drivers/image#
I think it may be caused the number of the grid cells are too low, and increse the number (+8000). However, it is still not in working.
So I further looked throught the code at line 109 of vic_history.c file, and infer that is caused by variable ngridcells. But I don't know what this variable means.
if ((*streams)[streamnum].ngridcells < 1) {
log_err("Number of gridcells in stream is less than 1");
}
System information and C complier
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Issue
I tried to convert the data which run well in VIC4 classic driver into netCDF4 file so that it can be run on the VIC5 image driver, and the following error occurred. The error message is as follows:
I think it may be caused the number of the grid cells are too low, and increse the number (+8000). However, it is still not in working. So I further looked throught the code at line 109 of vic_history.c file, and infer that is caused by variable
ngridcells
. But I don't know what this variable means.Anybody can tell me how to fix it? Thanks you!