UW-Hydro / VIC

The Variable Infiltration Capacity (VIC) Macroscale Hydrologic Model
http://vic.readthedocs.io
MIT License
260 stars 383 forks source link

Resloved--Can't Run vic_image.exe -g global,txt, and the error occured in the file of set_forcing_type.c #933

Open ZhengWang1003 opened 1 year ago

ZhengWang1003 commented 1 year ago

931

In the set_forcing_type.c file, line 132-139, if (strcasecmp("MISSING", ncvarname) != 0) { strcpy(param_set.TYPE[type].varname, ncvarname); } else { log_err( "Must supply netCDF variable name for %s forcing file number %d", optstr, file_num + 1); }

Is there an error in the phrase, should it be changed to:

if (strcasecmp("MISSING", ncvarname) == 0) { strcpy(param_set.TYPE[type].varname, ncvarname); } else { log_err( "Must supply netCDF variable name for %s forcing file number %d", optstr, file_num + 1); }

ZhengWang1003 commented 1 year ago

I fixed this problem by checking my domain.nc, the variables in nc file was wrong, making nc with an extra variable: mouth, delete it, and solved, but a new error happened, #932