Skip to content

Abstract Operations on Discrete Data #3211

Discussion options

You must be logged in to vote

Yes, except that you cannot perform AbstractOperations directly on FieldTimeSeries. Instead, you have to extract a Field at a particular time from the FieldTimeSeries and perform operations on that:

ut = FieldTimeSeries(filename, "u")
vt = FieldTimeSeries(filename, "v")

for n = 1:length(ut.times)
    un = ut[n]
    vn = vt[n]
    ζn = ∂x(vn) - ∂y(un)
end

Also note that you probably want to save your data using with_halo = true so that you have halo points (which will allow you to compute derivatives on the boundaries).

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@glwagner
Comment options

@s-aucoin
Comment options

@glwagner
Comment options

@s-aucoin
Comment options

@glwagner
Comment options

Answer selected by s-aucoin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants