vergauwenthomas / PyFa

Python wrapper on Rfa using xarray
MIT License
0 stars 0 forks source link

Bug: Error in ncvar_put #65

Open kobebryant432 opened 7 months ago

kobebryant432 commented 7 months ago

I am unable to successfully load a file with the new R -> to netcdf setup.

Error in ncvar_put(nc = ncout, varid = name, vals = nc_data_to_add[[name]],  : 
  unused argument (na_replace = "fast")
Execution halted
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/dodrio/scratch/projects/2022_200/project_output/RMIB-UGent/vsc46032_kobe/PyFa/pyfa_tool/dataset.py", line 381, in import_2d_field
    self.import_fa(whitelist=fieldname,
  File "/dodrio/scratch/projects/2022_200/project_output/RMIB-UGent/vsc46032_kobe/PyFa/pyfa_tool/dataset.py", line 333, in import_fa
    ds = reading_fa.read_and_format_nc(ncfile)
  File "/dodrio/scratch/projects/2022_200/project_output/RMIB-UGent/vsc46032_kobe/PyFa/pyfa_tool/modules/reading_fa.py", line 91, in read_and_format_nc
    ds[var].rio.set_nodata(float(ds.attrs['fillvalue']), inplace=True)
KeyError: 'fillvalue'