Skip to content

UnicodeEncodeError: 'utf-8' codec can't encode characters in position 61-63: surrogates not allowed #593

@xzhangatnuist

Description

@xzhangatnuist

I am trying to calculate SPI using version 2.2.0. However, it gave the error like:

UnicodeEncodeError: 'utf-8' codec can't encode characters in position 61-63: surrogates not allowed

Seems that there are some errors associated with input arguments. I tried to export the environment variable but the error is still here. Any suggestions to avoid it?

Here is how i used the module:
process_climate_indices --index SPI --periodicity monthly --netcdf_temp /share/home/xzhang/drough_data/aaa.nc --var_name_temp tas --output_file_base /share/home/xzhang/drough_data/test_pet

Many thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions