Default fill value possibly too big
I started binning a set of files on Yori but hadn't specified a fill value in the YAML:
grid_settings:
gridsize: 1
projection: conformal
lat_in: Latitude
lon_in: Longitude
lat_out: Latitude
lon_out: Longitude
variable_settings:
- name_in: 'MODIS25'
name_out: 'Grid_MODIS25'
- name_in: 'MODIS35'
name_out: 'Grid_MODIS35'
The result is this error:
Traceback (most recent call last):
----- truncated -----
File "/home/enelson/venv/lib/python3.6/site-packages/yori-1.3.11.dev0+g7e044fb.d20190927-py3.6.egg/yori/run_yori.py", line 187, in callYori
Yori.runYori(debug, compression)
File "/home/enelson/venv/lib/python3.6/site-packages/yori-1.3.11.dev0+g7e044fb.d20190927-py3.6.egg/yori/run_yori.py", line 175, in runYori
self.grid_size, self.ymlSet, self.fv, edges=myGrid.edges)
File "/home/enelson/venv/lib/python3.6/site-packages/yori-1.3.11.dev0+g7e044fb.d20190927-py3.6.egg/yori/run_yori.py", line 203, in write_output
outInst.saveNewVar(fout, gridvar, k, fillvalue=fv, vartype='i4')
File "/home/enelson/venv/lib/python3.6/site-packages/yori-1.3.11.dev0+g7e044fb.d20190927-py3.6.egg/yori/new_ioutils.py", line 236, in saveNewVar
complevel=self.clevel) #,
File "netCDF4/_netCDF4.pyx", line 2768, in netCDF4._netCDF4.Dataset.createVariable
File "netCDF4/_netCDF4.pyx", line 3896, in netCDF4._netCDF4.Variable.__init__
OverflowError: Python int too large to convert to C long
It seems the fill value (e.g. https://gitlab.ssec.wisc.edu/pveglio/yori/blob/master/yori/run_yori.py#L15) is a bit too large.