diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3773/CH19/EX19.1/Ex19_1.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3773/CH19/EX19.1/Ex19_1.sce')
-rw-r--r-- | 3773/CH19/EX19.1/Ex19_1.sce | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/3773/CH19/EX19.1/Ex19_1.sce b/3773/CH19/EX19.1/Ex19_1.sce new file mode 100644 index 000000000..f9a5562ef --- /dev/null +++ b/3773/CH19/EX19.1/Ex19_1.sce @@ -0,0 +1,32 @@ +//Chapter 19: The Fourier Transform Relation between Aperture Distribution and Far-field Pattern +//Example 19-8.1 +clc; + +//Variable Initialization +gal_ext = 400000 //Extent of galaxy (light-years) +alpha = 0.032 //Extent of galaxy (degrees) +f = 5e9 //Frequency (Hz) +a = 36e3 //Maximum VLA Spacing (m) +c = 3e8 //Speed of light (m/s) +wid = 0.03 //Width of image (degrees) +hei = 0.008 //Height of image (degrees) +flux_den = 2.5e-23 //Average flux density (W/m^2) +bw = 1e9 //Bandwidth (Hz) + +//Calculations +dist = gal_ext/sin(alpha*%pi/180) //Distance to the galaxy (light-years) +dist_m = dist*(365*24*3600*c) +wave_lt = c/f //Wavelength (m) +a_lambda = a/wave_lt //Spacing in wavelength (unitless) +pix_size = 51/a_lambda //Resolution or pixel size (degrees) +pix_size_arc = pix_size*3600 //Pixel size (arc seconds) +area = wid*hei //Area of image (square degrees) +area_arc = area*(3600**2) //Area of image (arc seconds) +num_pix = area_arc/pix_size_arc**2 //Number of pixels +rad_pow = flux_den*4*%pi*(dist_m**2)*bw + +//Result +disp(dist,"The distance to the galaxy in light years:") +disp(pix_size_arc,"The resolution or pixel size in arc seconds") +disp(num_pix,"The number of pixels is") +disp( rad_pow,"The radio power of the galaxy in W") |