download_wastd_turtledata()
: drop logger encounters, which have been removed from the WAStD API and migrated to LoggerObservations.
- Improve
filter_wastd_turtledata
: add seasons
- Fix
map_fanangles
: add misorientation and factor outmean_bearing
- New:
map_fanangles
using https://github.com/dbca-wa/leaflet.circlesector/ (#46)
- add_dates: add new field
turtle_date_awst_text
- summarise wastd turtledata: summarise by turtle date, not calendar date
- Add scalebar to all maps
filter_odkc_turtledata
now accepts ausername
, which filters data by the ODK Collect Username of each submission. Some components, such as tagging data, have hand typed names in additional fields. These are also filtered by.
download_w2_data
improved to exclude duplicate attributes, added print fn.
- New:
duplicate_surveys
links to sites and dates with more than one survey. - Plots from summarize surveys now save to a given
local_dir
only onexport=TRUE
like plots from summarize tracks.
- Dependency versions updated
download_odkc_turtledata2020()
now includes Turtle Tagging data (4 tables),download_odkc_turtledata2019()
contains NULL as placeholder in these four tables, and will be sunset after season 2020-21.
odkc_data
contains Turtle Tagging data.
- New summary for
wastd_data
:summarise_wastd_data_per_day_site()
- WAStD API changes:
- Observation serializers now include the most detailed feasible
Encounter
class. Those Observations which only ever are recorded againstAnimalEncounter
,TurtleNestEncounter
, orLineTransectEncounter
, will show now their details in theencounter
group. This simply adds more fields.parse_encounterobservations()
now includes these details.- Mapping and summary helpers use the changed names (prefixed encounter_).
download_wastd_turtledata()
now doesn't have to merge AE/TNE/LTE details against Observation tables.- Some observations, namely
TurtleTagObservation
andTurtleNestDisturbanceObservation
, could also happen when not associated with an animal or turtle nest, and therefore only include theEncounter
details in the WAStD API.
- Observation serializers now include the most detailed feasible
TurtleNestObservation.nest_position
has been replaced and merged with the already existingTurtleNestEncounter.habitat
in WAStD. This simplifies the contents of the WAStD tableTurtleNestObservation
, which is aptly namedturtle-nest-excavation
in the API to include only excavation data (egg counts, HS/ES, nest depth, ambient temperatures). "Nest habitat-only" records have been deleted fromTurtleNestObservation
. The calculation of HS and ES is also rectified to now exclude a false0
for "Nest habitat-only" records (which are deleted and not coming back anyways).
- Join essential Encounter details to nested tables in
download_wastd_turtledata()
. This should restore behaviour of analysis functions to 0.5.5.
- Rebuild
wastd_data
.
- Bugfix:
download_wastd_turtledata()
now shows correct encounter details for nested observations like nest tags, nest loggers etc.
download_wastd_turtledata()
infers verbosity fromget_wastdr_verbose()
.
- Updated turtle tagging database extractor
download_w2_data()
. (#29)
wastdr_msg_*
has new parameterverbose = get_wastdr_verbose()
because we always want to make message verbosity conditional.
- Improved parsing of WAStD data
export_wastd_turtledata
now also exports all data to an RData file.
- WAStD API changes: Surveys now contain in addition to the surveyed
site
also the Locality (area
), e.g. "Ningaloo". This allows filtering to whole monitoring programs. - WAStD API changes: Users now include
is_active
to indicate whether they are a closed duplicate profile or an active one. This is useful to exclude duplicate profiles from user name mapping (e.g. inetlTurtleNesting
).
- All functions are now shown in Reference sorted by function family.
- Reference docs now support Markdown. Bullet point lists are easier to write now.
odkc_data
is not generated fromwastdr::download_odkc_turtledata2020()
. The first 100 records of each element are retained and sanitised of PII (names).download_wastd_turtledata()
was extended to include LoggerObservations asnest_loggers
in addition to the superseded LoggerEncounters. This prepares etlTurtleNesting to migrate the reports from using LoggerEnc to LoggerObs.
Status Oct 2020
download_odkc_turtledata_2020
now includes Site Visit Start (Map)
All ODK forms used to capture data for WAStD are included in inst/
as
ODK Build savefiles, XForm XML (form ID changed to drop build_
prefix and
version postfix to allow updating deployed forms on ODK Central 1.0), and
XlsForm XLSX.
- The WA Sea Turtles DB (WAStD) has been separated from the Threatened Species and Communities DB (TSC). This version begins the migration of TSC functionality to a dedicated R package (tscr).
- TSC can be used with this version of wastdr.
- Renaming and rebranding will be ongoing.
- Bugfix:
download_wastd_turtledata
calledparse_encounterobservations
which calledadd_dates
incorrectly. Dates are now preserved and value-added with season, calendar and turtle date and local datetime.
- Add
download_w2_data
to extract and parse WAMTRAM2. Early stages with improvements planned.
- Upgrade map_tracks_odkc and map_mwi_odkc to Bootstrap4 image carousels to work in the Shiny app turtleviewer.
- Adapted wastdr to new WAStD API (#3)
- include example data,
- use example data in code examples,
- use example data in tests,
- use example data in vignettes,
- automate example data refresh from WAStD,
- update docs, man, vignettes,
- propagate updates to turtleviewer.
- Increased test coverage to near 100% (#3)
- Set up CI on GitHub Actions for Windows and Ubuntu - TODO MacOS (#3)
- Improve WAStD summarize_* methods (#5).
- Improve map popups for ODKC tracks and mwi (#6).
-
Start work on ODKC to WAStD data ingest via
ruODK
,odkc_data
,wastd_post_one
andwastd_bulk_post
. The hard bits are:- Data mapping ODKC to WAStD.
- Guess users (re-implement PostGIS's trigram fuzzy search).
- Determine create / update / skip based on source/sourceID already present in WAStD.
- Test coverage 99.9%
filter_dead()
andfilter_alive()
work for WAStD and ODKC data, see examples.
- Test coverage increased.
- Test data included (WAStD, TSC, ODKC) and used in tests and examples.
- Refactor
wastd_GET
andwastd_POST
, add examples to man, tests, vignettes.
- Add opt-in timelines to maps.
- Refactor maps: humanize layer names (tracks: species, dist: causes), make map_mwi robust against null records.
- Add
map_sv_odkc
to map Site Visit Start/End over TSC Sites. Extremely helpful to QA TSC sites and survey methodology.
- Add disturbed nests and sites, both optional, to
map_dist
.
- Add ODK Central data wrangling.
- Bump to
R>=3.5
.
wastd_GET
dropsresponse
, keepsurl
,date
, andstatus_code
. Results now always expected from WAStD in keyfeatures
, notresults
.- Turtle parsing functions add now additional calendar date in AWST for clarity.
- Generic
wastd_parse
function parses any non-GeoJSON TSC API response, whilewastd_parse_gj
will parse a
- Add
parse_taxon-conservationlisting
andparse_community-conservationlisting
.
- Added
parse_area
for WAStD Areas.
map_tracks()
,map_nests()
,map_dist()
accept new parameters:wastd_url
(defaultget_wastd_url()
), and cluster (whether to cluster markers).parse_surveys()
now includes an HTML link to the adminchange_url
in the data curation portal.- Filters added:
- \code{exclude_training_surveys}
- \code{filter_surveys_requiring_qa}
- \code{filter_surveys_missing_end}
- \code{exclude_training_species}
- \code{filter_missing_survey}
- \code{filter_missing_site}
- Summaries added:
- \code{disturbance_by_season}
- \code{surveys_per_site_name_and_date}
- \code{survey_hours_per_site_name_and_date}
- \code{survey_hours_per_person}
- \code{list_survey_count}
- \code{list_survey_effort}
- Plots added:
- \code{plot_survey_count}
- \code{plot_survey_effort}
- \code{ggplot_track_success_by_date}
- \code{ggplot_track_successrate_by_date}
- Some refactoring of documentation templates.
- All
parse_
functions returniso_week
andseason_week
instead ofweek
.season_week
is a useful grouper in combination withseason
.
- Added
clutch_size_fresh
toparse_turtle_nest_encounters
as the number of eggs directly observed during a nesting/tagging event as opposed toclutch_size
, which is reconstructed from egg remnants after a hatched nest excavation.
-
Added
datetime_as_season
,datetime_as_isoweek
,datetime_as_turtledate
. This speeds up the parsers by re-using the costly string-to-date conversion fromdatetime
. -
Added
isoweek
to parsers. The parsers now provide for each record:- timezone-aware datetime (actual time of observation),
- "turtle date" (nesting night start date),
- season start year,
- week number.
- All
parse_
functions changed the columndate
to the more descriptiveturtle_date
, as in the date (ymd) of "the night before". Usingturtle_date
groups turtle tagging (nightfall to sunrise) and tracks (made same night but observed the next morning) under the same date. This change requires code depending on the columndate
to be updated toturtle_date
.
- All
parse_
functions now includeseason
, as in the earlier year of the fiscal year. This cleanly groups the (Australian) summer nesters (nesting Oct-Mar) under the same season number. E.g., any observations made between 01/07/2017 and 30/06/2018 (AWST for the sticklers) will come up as season2017
. Note, the season for (Australian) winter nesters can be grouped by the calendar year, which can itself be derived trivially from thedatetime
asdplyr::mutate(year = lubridate::year(datetime))
. The same goes for the calendar week,dplyr::mutate(week = lubridate::isoweek(datetime))
.
parse_surveys
can now handle surveys without asource_id
. These surveys are e.g. those which were reconstructed by WAStD.
- Add map_nests to create a map of tagged nests from WAStD "nesttag-observations".
- Added
map_dist
to map disturbance observations. - Added
parse_nesttag_observations
for WAStD "nesttag-observations".
- Survey helpers writing files accept an optional prefix for the filename they
save the outputs to"
plot_survey_effort
,plot_survey_count
. - Survey helpers: placename and prefix are optional.
- Usage of
paste
replaced byglue
.
parse_surveys
now includes WAStD survey ID and absolute admin URL. The latter can be used to construct a direct link to update a survey in WAStD.
map_tracks
popup formatted, including a link to record in WAStD.
- Change example plot theme from
theme_light()
totheme_classic()
.
- Bugfix: parse_animalencounter and parse_turtlenestencounter now correctly parse survey ID. Re-generated example data.
- Cut down on size of vignette "analysis"
- patch release: fix
parse_surveys
: hours/minutes were minutes/seconds.
parse_disturbance_observations
added.
upsert_geojson
added.
- AnimalEncounters and TurtleNestEncounters now include survey information.
- Surveys:
parse_survey
, plus some data viz for Surveys, see vignette "Analysis". - wastd_POST can be used to update users and taxomony in WAStD.
- Changed example dataset names to "tne" and "nests".
- Added
map_tracks
, a map of turtle tracks/nests. WIP: more data viz for tracks.
- AnimalEncounters: add
maturity