ESMF_Scrip2Unstruct workaround #512
-
Requirements
Affiliation(s)No response ESMF Versionv8.9.0 IssueGetting following error from ESMF_Scrip2Unstruct, scrip.nc: The units attribute for grid_corner_lon is not degrees nor radians. My script file structure as follows, netcdf scrip { // global attributes: So, I have those attributes. I am not sure why ESMF complains about. Autotag |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It issue was related to the used engine when the file is written with the xarray under Python like following. The default engine used in this call depends on the actual Python environment. It could pick h5netcdf, netcdf4 or scipy. Here are the behaviors of the supported engines:
It would be nice to explicitly specify the engine that would be used by the xarray |
Beta Was this translation helpful? Give feedback.
It issue was related to the used engine when the file is written with the xarray under Python like following.
The default engine used in this call depends on the actual Python environment. It could pick h5netcdf, netcdf4 or scipy.
Here are the behaviors of the supported engines:
h5netcdf:
It is adding extra type (
string) to the variable attributes like seen as following.and this is triggering issue in the
ESMF_Script2Unstructoffline tool since it is usingnc_get_att_text()call from netCDF API and having hard time to deal with the attribute.netcdf4 and scipy:
These two en…