Hi,
The work-around is as follows:
IF array_length( v_id, 1 ) = 1 THEN
SELECT array_append( v_id, NULL ) INTO v_id;
END IF;
result := climate.plr_stations( v_id, v_latitude, v_longitude, latitude,
longitude );
This now works when *v_id* contains a single element.
Dave