Opened 12 years ago

Last modified 12 years ago

#13 new enhancement

kernelUD(): grid extent insufficent with anisotropic datasets > causes error in getverticeshr()

Reported by: Anne Ghisla Owned by: Clément Calenge
Priority: major Milestone:
Component: Adehabitat Version:
Keywords: kernelUD, getverticeshr, grid, extent Cc:

Description

when running kernelUD() on a particular dataset, where locations are scattered along a horizontal line, the grid calculated by the function seems too small on Y axis, therefore larger isopleths fall outside the grid.
This causes getverticeshr() to raise an error (probably in contourLines() call):

Error in re[[i]] : subscript out of bounds

would it be possible to get a more clear error message, or to catch this error earlier?

I attach a sample dataset to replicate this situation.

many thanks in advance

Anne

Attachments (1)

dataset.csv (1.8 KB) - added by Paolo Cavallini 12 years ago.
Sample data

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by Paolo Cavallini

Attachment: dataset.csv added

Sample data

comment:1 Changed 12 years ago by Anne Ghisla

software versions:

R 2.8.1
adehabitat 1.8.0

Note: See TracTickets for help on using tickets.