File:Airydisks dawes sqrt.png
Airydisks_dawes_sqrt.png (400 × 400 像素,檔案大小:16 KB,MIME 類型:image/png)
摘要
描述Airydisks dawes sqrt.png |
English: Airy disks of two point light-sources seen through a round aperture. The distance of the two sources matches the dawes-criterion (also called Dawes' limit)
|
日期 | |
來源 | 自己的作品 |
作者 | Geek3 |
Source Code
The image was generated by the following python script using scipy and PIL
Python source code - click on the right to view |
---|
airydisks_rayleigh_sqrt.py: |
#!/usr/bin/env python
# -*- coding: utf8 -*-
'''
Copyright (C) 2010 Wikimedia Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
'''
from math import *
import scipy
import scipy.special
from PIL import Image
w = 400
h = 400
image = scipy.zeros((h, w))
# dawes criterion
r0 = pi
scalex = scipy.special.jn_zeros(1, 2)[-1] + scipy.special.jn_zeros(1, 1) / 2.
scaley = h * scalex / w
# make dark areas better visible
color_func = sqrt
for y in range(h):
for x in range(w):
xx = ((x + .5) / w - .5) * 2. * scalex
yy = ((y + .5) / h - .5) * 2. * scaley
r1 = hypot(xx + r0 / 2., yy)
r2 = hypot(xx - r0 / 2., yy)
v1 = v2 = .5
if r1 != 0.: v1 = (scipy.special.j1(r1) / r1) ** 2
if r2 != 0.: v2 = (scipy.special.j1(r2) / r2) ** 2
image[y, x] = color_func(v1 + v2)
max_val = image.max()
# write image to file
image_file = Image.new('L', (w, h))
for y in range(h):
for x in range(w):
c = int(2**8 * image[y, x] / max_val)
image_file.putpixel((x, y), c)
image_file.save('Airydisks_dawes_sqrt.png', 'PNG')
|
See also
授權條款
我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
已授權您依據自由軟體基金會發行的無固定段落、封面文字和封底文字GNU自由文件授權條款1.2版或任意後續版本,對本檔進行複製、傳播和/或修改。該協議的副本列在GNU自由文件授權條款中。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
此檔案採用共享創意 姓名標示-相同方式分享 3.0 未在地化版本授權條款。
- 您可以自由:
- 分享 – 複製、發佈和傳播本作品
- 重新修改 – 創作演繹作品
- 惟需遵照下列條件:
- 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
- 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。
您可以選擇您需要的授權條款。
在此檔案描寫的項目
描繪內容
GNU自由文檔許可證1.2或更高版本 繁體中文 (已轉換拼寫)
共享創意署名-相同方式共享3.0Unported Chinese (Hong Kong) (已轉換拼寫)
5月 2010
多媒體型式 繁體中文 (已轉換拼寫)
image/png
資料大小 Chinese (Hong Kong) (已轉換拼寫)
16,036 位元組
400 像素
400 像素
檔案歷史
點選日期/時間以檢視該時間的檔案版本。
日期/時間 | 縮圖 | 尺寸 | 用戶 | 備註 | |
---|---|---|---|---|---|
目前 | 2010年5月30日 (日) 17:17 | 400 × 400(16 KB) | Geek3 | Airydisks dawes |
檔案用途
下列頁面有用到此檔案:
全域檔案使用狀況
以下其他 wiki 使用了這個檔案:
- de.wikipedia.org 的使用狀況
- de.wikibooks.org 的使用狀況
- en.wikipedia.org 的使用狀況
- es.wikipedia.org 的使用狀況
- ru.wikipedia.org 的使用狀況