Skip to content
Discussion options

You must be logged in to vote

It issue was related to the used engine when the file is written with the xarray under Python like following.

ds.to_netcdf(output_file)

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.

      double grid_center_lat(grid_size) ;
      	string grid_center_lat:units = "degrees" ;
    

    and this is triggering issue in the ESMF_Script2Unstruct offline tool since it is using nc_get_att_text() call from netCDF API and having hard time to deal with the attribute.

  • netcdf4 and scipy:
    These two en…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@uturuncoglu
Comment options

Answer selected by anntsay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
2 participants