File:Airydisks rayleigh sqrt.png
Материал из Викисклада, хранилища свободных медиафайлов
Перейти к навигации
Перейти к поиску
Airydisks_rayleigh_sqrt.png (400 × 400 пкс, размер файла: 16 КБ, MIME-тип: image/png)
Сведения о файле
Структурированные данные
Краткие подписи
Краткие подписи
Добавьте однострочное описание того, что собой представляет этот файл
Краткое описание
[править]ОписаниеAirydisks rayleigh sqrt.png |
English: Airy disks of two point light-sources seen through a round aperture. The distance of the two sources matches the rayleigh-criterion
|
Дата | |
Источник | Собственная работа |
Автор | 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) 2008 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))
# rayleigh criterion
r0 = scipy.special.jn_zeros(1, 1)
scalex = scipy.special.jn_zeros(1, 2)[-1] + r0 / 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_rayleigh_sqrt.png', 'PNG')
|
See also
[править]Лицензирование
[править]Я, владелец авторских прав на это произведение, добровольно публикую его на условиях следующих лицензий:
![]() |
Разрешается копировать, распространять и/или изменять этот документ в соответствии с условиями GNU Free Documentation License версии 1.2 или более поздней, опубликованной Фондом свободного программного обеспечения, без неизменяемых разделов, без текстов, помещаемых на первой и последней обложке. Копия лицензии включена в раздел, озаглавленный GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
![w:ru:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![атрибуция](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![распространение на тех же условиях](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
Этот файл доступен по лицензии Creative Commons Attribution-Share Alike 3.0 Unported.
- Вы можете свободно:
- делиться произведением – копировать, распространять и передавать данное произведение
- создавать производные – переделывать данное произведение
- При соблюдении следующих условий:
- атрибуция – Вы должны указать авторство, предоставить ссылку на лицензию и указать, внёс ли автор какие-либо изменения. Это можно сделать любым разумным способом, но не создавая впечатление, что лицензиат поддерживает вас или использование вами данного произведения.
- распространение на тех же условиях – Если вы изменяете, преобразуете или создаёте иное произведение на основе данного, то обязаны использовать лицензию исходного произведения или лицензию, совместимую с исходной.
Вы можете выбрать любую из этих лицензий.
История файла
Нажмите на дату/время, чтобы увидеть версию файла от того времени.
Дата/время | Миниатюра | Размеры | Участник | Примечание | |
---|---|---|---|---|---|
текущий | 13:24, 30 мая 2010 | ![]() | 400 × 400 (16 КБ) | Geek3 (обсуждение | вклад) | {{Information |Description={{en|1=Airy disks of two point light-sources seen through a round aperture. The distance of the two sources matches the rayleigh-criterion :<math>d = \frac{1.22\,\lambda}{\sin\alpha}</math> The brightness of the color shows the |
Вы не можете перезаписать этот файл.
Использование файла
Следующие 3 страницы используют этот файл:
Глобальное использование файла
Данный файл используется в следующих вики:
- Использование в de.wikipedia.org
- Использование в pl.wikipedia.org
- Использование в ru.wikipedia.org