Ficheiro:Airydisk sqrt.png

Fonte: testwiki
Saltar para a navegação Saltar para a pesquisa
Airydisk_sqrt.png (600 × 600 píxeis, tamanho: 25 kB, tipo MIME: image/png)

Este ficheiro vem da wiki na wiki Wikimedia Commons e pode ser usado por outros projetos. A descrição na página original de descrição do ficheiro é mostrada abaixo.

Descrição do ficheiro

Descrição
English: Airy disk. Diffraction pattern of a point light-source seen through a round aperture.
The brightness of the color shows the square-root of the intensity, since the patterns could hardly be seen at a linear scale.
Data
Origem Obra do próprio
Autor Geek3
Outras versões

Source Code

The image was generated by the following python script using scipy and PIL

#!/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 = 600
h = 600
image = scipy.zeros((h, w))

scalex = scipy.special.jn_zeros(1, 3)[-1]
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
		r = hypot(xx, yy)
		v = .5
		if r != 0.: v = (scipy.special.j1(r) / r) ** 2
		image[y, x] = color_func(v)

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('Airydisk_sqrt.png', 'PNG')

Licenciamento

Eu, titular dos direitos de autor desta obra, publico-a com as seguintes licenças:
GNU head É concedida permissão para copiar, distribuir e/ou modificar este documento nos termos da Licença de Documentação Livre GNU, versão 1.2 ou qualquer versão posterior publicada pela Free Software Foundation; sem Secções Invariantes, sem textos de Capa e sem textos de Contra-Capa. É incluída uma cópia da licença na secção intitulada GNU Free Documentation License.
w:pt:Creative Commons
atribuição partilha nos termos da mesma licença
A utilização deste ficheiro é regulada nos termos da licença Creative Commons - Atribuição-CompartilhaIgual 3.0 Não Adaptada.
Pode:
  • partilhar – copiar, distribuir e transmitir a obra
  • recombinar – criar obras derivadas
De acordo com as seguintes condições:
  • atribuição – Tem de fazer a devida atribuição da autoria, fornecer uma hiperligação para a licença e indicar se foram feitas alterações. Pode fazê-lo de qualquer forma razoável, mas não de forma a sugerir que o licenciador o apoia ou subscreve o seu uso da obra.
  • partilha nos termos da mesma licença – Se remisturar, transformar ou ampliar o conteúdo, tem de distribuir as suas contribuições com a mesma licença ou uma licença compatível com a original.
Pode escolher a licença que quiser.

Legendas

Adicione uma explicação de uma linha do que este ficheiro representa

Elementos retratados neste ficheiro

retrata

Airy disk inglês

3e3ada80e218457629ffd30c9bec925c40a2c149

25 895 byte

600 pixel

600 pixel

Histórico do ficheiro

Clique uma data e hora para ver o ficheiro tal como ele se encontrava nessa altura.

Data e horaMiniaturaDimensõesUtilizadorComentário
atual16h35min de 30 de maio de 2010Miniatura indisponível600 × 600 (25 kB)wikimediacommons>Geek3Airydisk

A seguinte página usa este ficheiro: