Fichier:USS Nimitz UFO incident jets' initial location.png

Le contenu de la page n’est pas pris en charge dans d’autres langues.
Une page de Wikipédia, l'encyclopédie libre.

USS_Nimitz_UFO_incident_jets'_initial_location.png(681 × 405 pixels, taille du fichier : 350 kio, type MIME : image/png)

Ce fichier et sa description proviennent de Wikimedia Commons.

Description

Description
English: Ce fichier est dérivé de : Relief map of California.png

The initial location of the Super Hornets involved in the incident was described as "100 miles off the coast of San Diego."

 
100 miles from San Diego County coastline
 
100 miles from San Diego (city) coastline

How I generated this image:

  • Take File:Relief map of California.png, and calculate that 100 miles is represented by ~107.8px. Therefore any pixel that is 107 or 108px away from the San Diego coast is roughly 100 miles from the San Diego coast.
  • Color in the San Diego city coastline with (255, 0, 186) and the remaining San Diego County coastline with (192, 0, 255)
  • Run the following (very poorly optimized) Python script:
Extended content

import colorsys import math

from PIL import Image

img = Image.open('Relief_map_of_California.png') pixels = img.load()


def getHue(color):

   return colorsys.rgb_to_hsv(color[0] / 255., color[1] / 255., color[2] / 255.)[0] * 360


for i in range(img.size[0]): # for every col:

   for j in range(img.size[1]):    # For every row
       if(pixels[i, j] == (192, 0, 255)):  # San Diego County coastline pixel
           for a in range(img.size[0]):    # for every col:
               for b in range(img.size[1]):    # For every row
                   # if it's a water pixel and it's 107-108px away
                   if(pixels[a, b][2] > pixels[a, b][1] > pixels[a, b][0] and 208 > getHue(pixels[a, b]) > 198
                           and round(math.sqrt((a - i)**2 + (b - j)**2)) in {107, 108}):
                       pixels[a, b] = (255, 255, 0)  # color it yellow
       elif(pixels[i, j] == (255, 0, 186)):  # San Diego city coastline pixel
           for a in range(img.size[0]):    # for every col:
               for b in range(img.size[1]):    # For every row
                   # if it's a water pixel and it's 107-108px away
                   if((pixels[a, b] == (255, 255, 0)
                           or (pixels[a, b][2] > pixels[a, b][1] > pixels[a, b][0] and 208 > getHue(pixels[a, b]) > 198))
                           and round(math.sqrt((a - i)**2 + (b - j)**2)) in {107, 108}):
                       pixels[a, b] = (255, 128, 0)  # color it orange


img.save('modified.png')

  • Manually edit out the colored in coastline and the various lakes that also became colored in as a result of the script.
  • Crop, add dot for San Diego, and upload
Date
Source Travail personnel
Auteur Anne drew Andrew and Drew

Conditions d’utilisation

Moi, en tant que détenteur des droits d’auteur sur cette œuvre, je la publie sous la licence suivante :
w:fr:Creative Commons
paternité partage à l’identique
Ce fichier est disponible selon les termes de la licence Creative Commons Attribution – Partage dans les Mêmes Conditions 3.0 (non transposée).
Vous êtes libre :
  • de partager – de copier, distribuer et transmettre cette œuvre
  • d’adapter – de modifier cette œuvre
Sous les conditions suivantes :
  • paternité – Vous devez donner les informations appropriées concernant l'auteur, fournir un lien vers la licence et indiquer si des modifications ont été faites. Vous pouvez faire cela par tout moyen raisonnable, mais en aucune façon suggérant que l’auteur vous soutient ou approuve l’utilisation que vous en faites.
  • partage à l’identique – Si vous modifiez, transformez, ou vous basez sur cette œuvre, vous devez distribuer votre contribution sous la même licence ou une licence compatible avec celle de l’original.

Légendes

Ajoutez en une ligne la description de ce que représente ce fichier

Éléments décrits dans ce fichier

dépeint

Historique du fichier

Cliquer sur une date et heure pour voir le fichier tel qu'il était à ce moment-là.

Date et heureVignetteDimensionsUtilisateurCommentaire
actuel24 décembre 2017 à 23:18Vignette pour la version du 24 décembre 2017 à 23:18681 × 405 (350 kio)Anne drew Andrew and DrewAdd dot for San Diego
24 décembre 2017 à 00:34Vignette pour la version du 24 décembre 2017 à 00:34681 × 681 (646 kio)Anne drew Andrew and DrewYellow now represents areas in the ocean that are 100 mi away from San Diego county coast. Orange represents 100 mi from San Diego coast.
23 décembre 2017 à 22:45Vignette pour la version du 23 décembre 2017 à 22:45681 × 610 (511 kio)Anne drew Andrew and DrewUser created page with UploadWizard

La page suivante utilise ce fichier :

Usage global du fichier

Les autres wikis suivants utilisent ce fichier :

Métadonnées