|
Posted: 09/13/23
Due: 09/20/23, 11:59PM
Tracks 1 & 2: 1. Track 2: 2.
This homework marks your first foray into realistic scientific computation by applying concepts from linear algebra, specifically the singular value decomposition to the analysis of hurricane Lee, still active at this time.
Processing of image data through the tools of linear algebra is often encountered, and in this assignment you shall work with satellite images of hurricane Lee of 2023 Season. Open the following folds and execute the code to set up your environment.
The following commands within a BASH shell brings up an animation of hurricane Lee (ImageMagick package must be installed and in the system path.
The model will use various Julia packages to process image data, carry out linear algebra operations. The following commands build the appropriate Julia environment. The Julia packages are downloaded, compiled and stored in your local Julia library. Note: compiling the Images package takes a long time and it's best to do this within a terminal window. Compiling the packages need only be done once.
Once compiled, packages are imported into the current environment
With appropriate packages in place and available, the satellite imagery can be imported into the Julia environment and used to insert images such as the one in Fig.
∴ |
pre=homedir()*"/courses/MATH661/data/weather/"; |
∴ |
gif=load(pre*"HurricaneLee.gif"); |
∴ |
(mx,my,nf)=size(gif) |
(1)
∴ |
The following commands display the frame in the animation, and save it within a homework directory. Use this template to save interesting images
∴ |
n=20; frame = Gray.(gif[:,:,n]); |
∴ |
A = Float32.(frame); clf(); imshow(A,cmap="gray"); |
∴ |
hwdir=homedir()*"/courses/MATH661/homework/H03"; |
∴ |
savefig(hwdir*"/H03Fig01.png"); |
∴ |
![]() |
Approximate on the interval by the following series and study the convergence behavior of the solution. The pseudo-matrix arising in the approximation is shown in each case
Cosine series
Trigonometric series
Sine series
Triangle wave series
with
where is the fractional part of , e.g., .
Study the analytical theory underlying the above approximations by considering the following.
State the convergence theorem for Fourier series and the Fourier coefficient formulas (see, e.g., [1]). Analytically compute the Fourier coefficients for . Use of a symbolic computation package (e.g., Maxima, Mathematica) eliminates tedious hand computation.
Compare the analytically computed Fourier coefficients with the numerical results obtained in Problem 1, a)-c). Assess the analytically predicted Fourier series convergence by comparison to the numerical results.
Carry out series approximations as in Problem 1, a)-d) of
where is the Heaviside step function
Again, compare analytically evaluated Fourier coefficients with numerical results. How do the approximations of behave differently from those of ?