Package: candphy
CandphyLibrary from Python3.+ for development,  works, researches, and more other works and projects on the more points of physic  📈📊First timeInstallation:this lib is found on the site of packages for python thepypiand on the site that is a repository for the codes and softwares with licenses from majority business of the word, thegithub.Linux$pip3installcandphy-UWindowsC\:> python3 -m pip3 install candphy -UExamplesWavesSignal Radio(need the RTL-SDR driver)fromcandphy.wavesimportget_signal_radioasgrfromcandphy.wavesimportplot_signalaspsfromcandphy.logsimportshow_console#showing the logs from work libshow_console(False)#getting signals samples from#the around of the frequency 99.9Mhz#(raio from space get is of 3.1Mhz)s=gr(99.9)print('signal radio:\n',s)#plotting this signal radiops(s)'''output:Detachedkerneldriver
FoundRafaelMicroR820Ttuner[R82XX]PLLnotlocked!
Exactsamplerateis:3100000.092387Hz
Reattachedkerneldriver
signalradio:{'freq_center':99900000.0,'freq_rate':3100000.0,'bytes':1024,'order':1000000.0,'size_signal':262144,'samples':array([-0.00392157-0.00392157j,-0.00392157-0.00392157j,-0.00392157-0.00392157j,...,0.1372549-0.0745098j,-0.10588235+0.15294118j,-0.16078431+0.10588235j]),'type':'signal_radio'}Gravitational Wavesworking datagetting the data:fromcandphy.wavesimportgwavesgw=gwaves.Gwaves_Data()pd_gw=gw.data_gwshowing the DataFrame:#printing the DataFrame of Gravitational Wavesprint('type:',type(pd_gw))print(pd_gw)output:type:<class'pandas.core.frame.DataFrame'>NameVersionReleaseGPSMass1(M☉)...RedshiftFalseAlarmRate(yr-1)FinalMass(M☉)DateLink0GW200322_091133v1GWTC-3-confident1.268904e+0934.034+48-18...0.60.60+0.84-0.30140.014053.053+38-262020-03-22T09:12:10.300https://www.gw-openscience.org/eventapi/html/G...1GW200316_215756v1GWTC-3-confident1.268431e+0913.113.1+10.2-2.9...0.220.22+0.08-0.081e-05≤1.0e-0520.220.2+7.4-1.92020-03-16T21:58:33.100https://www.gw-openscience.org/eventapi/html/G...2GW200311_115853v1GWTC-3-confident1.267963e+0934.234.2+6.4-3.8...0.230.23+0.05-0.071e-05≤1.0e-0559.059.0+4.8-3.92020-03-11T11:59:30.300https://www.gw-openscience.org/eventapi/html/G...3GW200308_173609v1GWTC-3-confident1.267724e+0936.436.4+11.2-9.6...0.830.83+0.32-0.352.42.447.447.4+11.1-7.72020-03-08T17:36:46.700https://www.gw-openscience.org/eventapi/html/G...4GW200306_093714v1GWTC-3-confident1.267523e+0928.328.3+17.1-7.7...0.380.38+0.24-0.1824.02441.741.7+12.3-6.92020-03-06T09:37:51.100https://www.gw-openscience.org/eventapi/html/G...
...................................88GW170608v3GWTC-1-confident1.180922e+0911.011.0+5.5-1.7...0.070.07+0.02-0.021e-07≤1.0e-0717.817.8+3.4-0.72017-06-08T02:01:53.500https://www.gw-openscience.org/eventapi/html/G...89GW170104v2GWTC-1-confident1.167560e+0930.830.8+7.3-5.6...0.20.20+0.08-0.081e-07≤1.0e-0748.948.9+5.1-4.02017-01-04T10:12:35.600https://www.gw-openscience.org/eventapi/html/G...90GW151226v2GWTC-1-confident1.135136e+0913.713.7+8.8-3.2...0.090.09+0.04-0.041e-07≤1.0e-0720.520.5+6.4-1.52015-12-26T03:39:29.600https://www.gw-openscience.org/eventapi/html/G...91GW151012v3GWTC-1-confident1.128679e+0923.223.2+14.9-5.5...0.210.21+0.09-0.090.007927.9e-0335.635.6+10.8-3.82015-10-12T09:55:19.400https://www.gw-openscience.org/eventapi/html/G...92GW150914v3GWTC-1-confident1.126259e+0935.635.6+4.7-3.1...0.090.09+0.03-0.031e-07≤1.0e-0763.163.1+3.4-3.02015-09-14T09:51:21.400https://www.gw-openscience.org/eventapi/html/G...[93rowsx17columns]the columns in the data:print('columns:')print(pd_gw.columns)output:columns:
Index(['Name','Version','Release','GPS','Mass 1 (M☉)','Mass 2 (M☉)','Network SNR','Distance (Mpc)','χeff','Total Mass (M☉)','Chirp Mass (M☉)','Detector Frame Chirp Mass (M☉)','Redshift','False Alarm Rate (yr-1)','Final Mass (M☉)','Date','Link'],dtype='object')plotting signalfromcandphy.wavesimportgwaves#instanciamint the data of graviatitonal wavesgw=gwaves.Gwaves_Data()#getting the name of last gwave from datagw_name=gw.data_gw['Name'][0]#getting the gwave of this namegwave=gw.get_gwave(name_gwave=gw_name)#ploting the gwave signalplt_signal=gw.plot_gwave(gwave)plt_signal.savefig(f'signal_{gw_name}.png',dpi=900)plt_signal.show()output: