Skip to content

simulate tracks starts from 0, 0 - not start of observed data #1

Description

@mjw-marine

I'm using your vignette to try and create some random data with the mule data from your package

random_scen <- create_scenarios_crw(rho = 0)

set.seed(1)

sim_null <- simulate_tracks(scenarios = random_scen,
                       n_steps = nrow(mule),
                       n_tracks = 1,
                       start_loc = data.frame(x = mule$x[1], y = mule$y[1]),
                       sl_par = c(0.6, 330))

I've noticed that the first location of the track generated here does not start at mule$x[1], mule$y[1], rather at x = 0.000, y = 0.000. If you replace the exact start location you require e.g. x= 535031, y = 4792508, it still has the first location of the simulated track at x = 0.000, y = 0.000.

Is this a bug? I would assume the start location should be what you set it, rather than defaulting to x = 0.000, y = 0.000. Is that right? Or maybe I'm misunderstanding and this might be user error at my end.

Screenshot 2023-03-28 at 16 04 26

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions