GithubHelp home page GithubHelp logo

popovs / opptools Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 18.05 MB

Project and coding tools for Environment and Climate Change Canada's Oceans Protection Plan seabird data pipeline. Forked and modified from CIDAtools.

Home Page: https://popovs.github.io/OPPtools/

R 100.00%

opptools's People

Contributors

allisonglider avatar carolineledbetter avatar johnsra3 avatar petersonr avatar popovs avatar

Watchers

 avatar

Forkers

allisonglider

opptools's Issues

Quiet output for ctcrw_interpolation

Currently the crawl function within ctcrw_interpolation fills the console with messages. Need to add argument along the lines of quiet = TRUE to suppress output, particularly when running ctcrw_interpolation within a Markdown doc.

Add option to add BC EEZ to maps

Audience of these outputs are operating within the Canadian jurisdiction. For wide ranging species, e.g. storm petrels, including the BC EEZ may be helpful to delineate between international & Canadian waters.

EEZ files can be added via the mregions package.

Option to pass additional columns to `opp_download_data`

As the title says.

A potential option for this may be an argument to check whether the data are ARGOS or not, and if they are, to return error classes.

Might be nice to also add a param/argument to the function where you can also supply a list of additional Movebank columns for opp_download_data to add to the output.

Remove spatialEco dependency

The function ud_vol imports spatialEco::raster.vol. This can be replaced with adehabitatHR::getvolumeUD and adehabitatHR::getverticesHR to limit the number of packages being imported.

Output for opp_get_trips is not projected

The output for opp_get_trips is a SpatialPointsDataFrame with an associated proj4string, but running sp::is.projected returns FALSE.

Running the same function on the output from ctcrw_interpolation returns TRUE, e.g. sp::is.projected(interp_output$data) and sp::is.projected(interp_output$interp) are both TRUE!

At the moment this is a minor inconvenience as it means opp_kernel cannot calculate kernels on opp_get_trips outputs, only on ctcrw_interpolation outputs.

GWGU Maps

Request for maps for an annual report:

I can take a look at the tracks and see if a bird has done anything interesting – such as utilizing multiple habitat types, high site fidelity to a landfill, migration, etc.

Map ideas and where we would like to focus, if possible:

  •      GWGU tagged on the West Coast of Vancouver Island (Tofino/Ucluelet) in 2022
    
  •      Gull(s) heading for breeding grounds in Alaska in 2022
    
  •      Fine scale movement map – this could be a gull tagged at a Landfill or natural area
    
  •      Gull tagged at a landfill in 2020 or 2021, with interesting track in 2022
    
  •      CAGU tagged at the Nanaimo Landfill
    

I can give you more specifics to include once I’ve had a look at the recent Movebank data. However, please feel free to let me know if something exciting pops out at you when you get a chance to look at the data. And as always don’t hesitate to reach out with questions.

Rename `render_kba` to `opp_render_report` + rename associated files

To stay consistent with OPPTools naming convention and move away from the acronym "KBA", the render_kba report function should be renamed. All associated files, e.g. skeleton.Rmd, should be modified accordingly.

Can also potentially delete opp-cpf-report to avoid any further confusion.

Fix OPP workflow

OPP workflow generates an HTML dependency error when building documentation. Fix this error so documentation can properly compile.

change_yaml_matter produces unusual content in Rmd

The function change_yaml_matter does not update Rmd params verbatim. For example "TRUE/FALSE" become "yes/no" and strings are pasted in without quotation marks. This means that when a Rmd file is generated using either render_diagnostic or render_kba, the Rmd itself is not knittable until the user manually fixes the params in the YAML header.

Reproject output from `opp_get_trips` and `opp_sites` to EPSG4326/WGS84

All final OPP data products should be in EPSG4326/WGS84 projection. Code for opp_get_trips and opp_sites should either be updated to output 4326 products, or additional lines of code should be written into the KBA skeleton.Rmd file to re-project geospatial products before saving as shapefiles.

Linked to issue #66

Report path bug

When installing and using OPPTools on a new machine, reports are generated wherever the package is installed (e.g. ~Macintosh HD/Library/Frameworks/R. framework/Resources/library/OPPTools/inst/rmarkdown/templates/opp_x_report/ on a Mac). This is an issue with using here::here in the various reporting functions. As this project is currently retired there are no plans to fix this, so this is more of an FYI for anyone who may be using this package in future.

Improve shapefile output

Modify shapefile output to the following:

  • Clearer column names indicating % population use vs. number of individuals etc.
    Simplify shapefile bins to: 100% of population using, 75% using, 50% using, and 25% using
    Red KBA polyline output

Get colony data

Need to get breeding population size data for tracked colonies to finalise reports.

Add 'step' smoother option to opp_kernel

Allow user to specify the smoother as a numeric value or 'href' or 'step'. Where selecting href or step uses another function to calcualte those smoothers from the data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.