Julia Language Learning preliminary notes

Julia language is a relatively new programming language, and pyhton somewhat similar, but there are different, specific related blog can be found, like Jane book tells about Julia's.

Julia language for installation configuration recommended JulianPro win7 of https://juliacomputing.com/products/juliapro.html

        Install an older version, did not find the new version, just download the installation to test the water, one-click installation, the best default; installation of third-party libraries, when in trouble, the installation of seismic data Pkg.add ( "Seismic") always throw an error handling package  finally is Pkg.clone ( "git: //github.com/msacchi/Seismic.jl")    # Note https => git installed successfully last executed successfully jupyter notebook Julia's, and python jupyter notebook operating in substantially the same

 

 1 using PyPlot, Seismic
 2 
 3 # Convert a Ricker wavelet to its mininum phase equivalent
 4 
 5 dt = 0.002
 6 w = Ricker(dt=dt)
 7 wmin = SeisKolmogoroff(w)
 8 
 9 nw = length(w)
10 t = dt*collect(0:1:nw-1)
11 
12 figure(figsize=(6, 6))
13 subplots_adjust(hspace = 0.4)
14 subplot(211)
15 plot(t, w)
16 axis("tight")
17 
18 title("Ricker wavelet")
19 
20 subplot(212)
21 plot(t,wmin)
22 xlabel("Time (s)")
23 title("Minimum phase equivalent")

在jupyter notebook里面云运行后产生的简单的Riker 子波(雷克子波)

 

Guess you like

Origin www.cnblogs.com/nyh001/p/11268111.html