For my movie to move through time consistently, I need to ‘fill in the gaps’, so I need all dates in between the ones I have in my spreadsheet.
What is the best way to do this?
I was looking at sample1d, but I’m not sure if it suits my need (https://docs.generic-mapping-tools.org/dev/sample1d.html). It seems to require a value that it extrapolates. Tried with a dummy value, but it should not be necessary.
I think it would be possible for me to update sample1d to output the trialing text of an input record if the output time matches it exactly, which it does in your case. Are the attn strings or numerical values?
The second issue would be that movie and batch may need some updates on what to do if MOVIE_WORD2 is empty, for instance. Not sure how you plan to use your attributes in a movie when they are not all there. Please explain.
Don’t really matter; they just have to come along. In my case, it’s a mix of both strings and numerical values, but they should not be changed or touched. I just need them for further processing.
And yes, as you say, what to do when MOVIE_WORD2 is empty. I don’t have an answer.
Having sample1d fill in missing dates would at least make it easy to import with spreadsheet software and do further column-stuff. Then I would at least have all dates that form the basis of my time file.
In a way, gmt math is more suitable for me, as I need to generate dates, e.g.
gmt math -o0 -T2020-03-01T/2020-03-07T/1d T =
2020-03-01T00:00:00
2020-03-02T00:00:00
2020-03-03T00:00:00
[...]
and then join the attributes from my csv on the dates (hence maybe use something like `sqlite`).