ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
30 stars 21 forks source link

Plotting occurrence distributions on map #95

Open chfleming opened 5 years ago

chfleming commented 5 years ago

It appears that you can plot the home-range distribution atop the map layer, but not the occurrence distributions.

xhdong-umd commented 5 years ago

Yes, I didn't code it because I thought the occurrence plot have much more details which will interfere with map details. I am not sure if that will be useful. Also the homerange are just polygons and easy to overlay on map, I am not sure about occurrence plot which looks much more complicated.

chfleming commented 5 years ago

We have students requesting this feature. The home-range objects and occurrence objects should export the same way.

chfleming commented 5 years ago

We also have some managers using this functionality on the command line too.

markbidwell commented 5 years ago

This feature would be very useful, so thanks for considering it. It would also be useful to be able to save the occurrence distributions as a shapefile. Thank you.

rmccabe2 commented 4 years ago

I would also be interested in having the occurrence objects export as a shapefile. Is this a feature that could be available in the ctmmweb app within the next few months?

xhdong-umd commented 4 years ago

@chfleming , So the exported occurrence only have some polygons,

spdf <- SpatialPolygonsDataFrame.UD(occur_list_sub2[[2]])
plot(spdf)
Screen Shot 2019-09-10 at 7 22 56 PM

and the details in plot are not available in export, right?

plot(occur_list_sub2[[2]])
Screen Shot 2019-09-10 at 7 23 13 PM

Should I use some more confidence intervals, or just default option is enough?

chfleming commented 4 years ago

AKDEs have 3 polygons for the CIs. Occurrence distributions are themselves CIs and by default there is only one polygon exported.

People are probably more interested in the raster export.

rmccabe2 commented 4 years ago

If both options (raster and shapefile) could be available that would be great! I would like to identify the land cover types within the polygons.

xhdong-umd commented 4 years ago

Export occurrence to shapefile, raster, tiff (same with home range) is added.

To add occurrence to map need more changes. I probably need to change how each layers are named as there will be points/home range/occurrence layers in the map. Previously single model was renamed by individual names without model postfix, but that might need to change as this will cause too much problems in naming.