Skip to content

Conversation

@MaelleTtrt
Copy link
Member

I modified the code to separate recording effort into two components:
1 - Effective recording effort – the periods during which the recorder is actually recording underwater. This is usefull to shade the background of the Figures when there is no effort at all
2-Partial recording effort – takes into account duty cycles or incomplete weeks of recording.

For now, the focus is on adding the effective recording effort, which is currently used only in the histogram plot type.

How it works

You need a CSV file (to be replaced soon by a JSON from Metadatax) containing four columns:
"start_recording", "end_recording", "start_deployment", "end_deployment"

Dates should be in this format:

"2022-08-03T12:37:00+0000"

Specify the path to this CSV in your YAML configuration:

# timestamp file
timestamp_file: 'L:\acoustock\Bioacoustique\DATASETS\CETIROISE\ANALYSE\Double_check\F\planning_recording_point_F.csv'

Create the RecordingPeriod object:

recording_data = RecordingPeriod.from_path(
    config=config,
    bin_size=bin_size,
)

Then, pass it to your plot call:

data.plot(
    ...,
    effort=recording_data,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant