Skip to content

Issue in "processing_data.py"... TypeError: '<' not supported between instances of 'numpy.longdouble' and 'int' #1

@RawbyTheSheeth

Description

@RawbyTheSheeth

In line 276, num2date is fails for me when data is a zero dimensional numpy array. This occurs when I read the file:
file = 'OR_ABI-L2-CMIPF-M6C14_G16_s20200802050177_e20200802059485_c20200802059592.nc'

I get:
TypeError: '<' not supported between instances of 'numpy.longdouble' and 'int'

For my workaround, I simply added the line:
data = data if np.array(data).ndim > 0 else [data.tolist()]
right after data is first assigned in line 271. It hasn't broken anything else for me yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions