Skip to content

clearsky_temperature error when certain lat/lon values passed #120

@cdeline

Description

@cdeline

There's an uncaught exception in clearsky_temperature.py when certain lat/lon values are passed. For instance,

get_clearsky_tamb(df.index[0:1],35,31)

returns the correct values, but

get_clearsky_tamb(times[0:1],35,30)

returns "ValueError: Must have equal len keys and value when setting with an iterable"

The actual issue appears to be when someone inserts an incorrect lat/lon pair that points to ocean instead of land, there's no clearsky temperature to be returned, but the error is not at all descriptive. This should be an exception that is caught and returned with a message that is somewhat helpful like 'incorrect lat/lon pair - no land found at this point' or something like that...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions