parallel -kj1 'f="{}"; [[ -f "${f/data/A}" ]] || echo $f' ::: *_data.csv4 karma · joined February 23, 2014
parallel -kj1 'f="{}"; [[ -f "${f/data/A}" ]] || echo $f' ::: *_data.csvEverybody has there own style, but I would prefer to print the missing file pattern and avoid loops.
If you have GNU parallel installed (works in bash)
parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: $(jot -w %04d_A.csv - 1 501)
or if preferred parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: {0001..0500}_A.csv for k in $(seq -f %04.f 1 501); do
f="${k}_A.csv"
! [[ -f "$f" ]] && echo $f || :
done
or more succinctly, for k in {0001..0501}_A.csv; do
! [[ -f "$f" ]] && echo $f || :
done
and if you have GNU parallel installed: parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: {0001..0501}_A.csvThe bitcoin blockchain is also immutable.
If you don't have a nearly symmetric span of x values, you may need to do extrapolation to obtain one, which may be difficult.
I brought up Fourier analysis not as a means to replace the decomposition described in the blog, but to connect it. I think it's neat that Fourier transformations can be viewed as a parity decomposition.
[I think it's neat that] for sufficiently smooth and periodic data, a Fourier transform will do exactly this (decompose a function into its even and odd parts)!
KH Instabilities give rise to gravity waves.
From the first paragraph of the wiki-page:
In fluid dynamics, gravity waves are waves generated in a fluid medium or at the interface between two media when the force of gravity or buoyancy tries to restore equilibrium. An example of such an interface is that between the atmosphere and the ocean, which gives rise to wind waves.
Velocity is a vector quantity--it describes a directional rate of change. Speed is the magnitude of the velocity. When they use the term velocity, they mean speed. For example, even in the abstract:
"along trajectories determined by the direction and velocity of the wind"
Velocity has a direction! The use of direction in this sentence is redundant to anyone that has had a college level physics course. This trend of using "velocity" instead of "speed" continues through the entire paper. I find this very upsetting.
Of course, it may seem pedantic, but good science is pedantic.
I'm surprised that it made it through peer-review like this.