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

USS_Nimitz_UFO_incident_jets'_initial_location.png(681 × 405 pixels, file size: 350 KB, MIME type: image/png)

Summary

Description
English: This file was derived from: 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 Own work
Author Anne drew Andrew and Drew

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

23 December 2017

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:18, 24 December 2017Thumbnail for version as of 21:18, 24 December 2017681 × 405 (350 KB)Anne drew Andrew and DrewAdd dot for San Diego
22:34, 23 December 2017Thumbnail for version as of 22:34, 23 December 2017681 × 681 (646 KB)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.
20:45, 23 December 2017Thumbnail for version as of 20:45, 23 December 2017681 × 610 (511 KB)Anne drew Andrew and DrewUser created page with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file:

Metadata