Skip to content

Looping over a subset of times in the FieldSet #1317

@gmacgilchrist

Description

@gmacgilchrist

I wish to evolve particles in a velocity field that loops multiple times over a specific year (for example, a year with certain anomalous conditions). I thought I would be able to do this by setting time_periodic to timedelta(365) and setting the initialization time to be the start of the year that I wish to loop. However, this fails with:

ValueError: Time series provided is longer than the time_periodic parameter

The implication is that I can only loop when I wish to do so across the time boundaries of the FieldSet.

Is there a specific reason for this constraint? Would it be possible to remove it, and thus have the potential to loop over a subset of the FieldSet?

I am running with parcels version 2.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions