JiaweiZhuang / xESMF

Universal Regridder for Geospatial Data
http://xesmf.readthedocs.io/
MIT License
273 stars 48 forks source link

Error writing log file #123

Closed mcooper closed 3 years ago

mcooper commented 3 years ago

I'm using Regridder wihtin a docker container and running into an issue with ESMF being unable to open the log file. The output to the console (I believe from Fortran) when I run regridder = xe.Regridder(da, target_grid, 'bilinear') says:

Create weight file: bilinear_144x192_180x360.nc  
 ESMF_LogOpenFile(): error opening file: PET0.ESMF_LogFile, iostat =          13
 ESMF_LogOpenFile(): error opening file: PET0.ESMF_LogFile, iostat =          13
 ESMF_LogOpenFile(): error opening file: PET0.ESMF_LogFile, iostat =          13
 ESMF_LogOpenFile(): error opening file: PET0.ESMF_LogFile, iostat =          13

And then python says:

ValueError: ESMC_FieldRegridStoreFile() failed with rc = 22.    Please check the log files (named "*ESMF_LogFile").

I'm wondering if this is a simple issue of file system permissions within the docker container, but I cant figure out where ESMF is trying to write the log file to, or how to specify where it could write to (where it has permissions).

mcooper commented 3 years ago

This is no longer a problem for me, although I am still curious where ESMF tries to write its logs to