File:Tlp locations by ai 1.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(811 × 800 pixels, file size: 756 KB, MIME type: image/png)

Captions

Captions

Most frequent TLP locations in Moon

Summary

[edit]
Description
English: Most frequent TLP locations in Moon
Date
Source Own work
Author ChatGPT: created Python code to draw this

ChatGPT generated , i corrected this python3 source code


    1. tlp areas on moon
    2. python3 source code
    3. data of tlps from chatgpt


import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap from PIL import Image import numpy as np from matplotlib.colors import LinearSegmentedColormap

  1. Lataa taustakuva

moon_map = Image.open("moon_map.jpg") # Lataa ja tallenna kuva nimellä 'moon_map.jpg'

  1. Rajataan kuva kattamaan vain Maahan näkyvä puoli

width, height = moon_map.size left = width // 4 right = 3 * width // 4 moon_map_visible = moon_map.crop((left, 0, right, height))

  1. moon_map_visible=moon_map


  1. Muunna kuva harmaasävyiseksi (grayscale)

moon_map_gray = moon_map_visible.convert('L')

  1. Muunna kuva numpy arrayksi

moon_map_gray = np.array(moon_map_gray)

  1. Luo viridis-väripaletti

viridis_colors = plt.cm.YlOrBr_r(np.linspace(0, 1, 256)) cmap = LinearSegmentedColormap.from_list('Viridis', viridis_colors)

  1. Luo kartta

fig, ax = plt.subplots(figsize=(10, 5))

  1. Asetetaan Basemap käyttämään cylindrical equidistant -projektiota

m = Basemap(projection='cyl', llcrnrlon=-90, urcrnrlon=90, llcrnrlat=-90, urcrnrlat=90, resolution='l')

  1. m = Basemap(projection='cyl', llcrnrlon=-180, urcrnrlon=180, llcrnrlat=-90, urcrnrlat=90, resolution='l')
  1. m = Basemap(projection='ortho', lat_0=0, lon_0=0, resolution='l')
  2. m = Basemap(projection='moll',llcrnrlon=-180, urcrnrlon=180, llcrnrlat=-90, urcrnrlat=90, lat_0=0, lon_0=0, resolution='l')


  1. Näytä kuvan tausta

m.imshow(moon_map_gray, origin='upper', extent=[-90, 90, -90, 90], cmap=cmap)

  1. m.imshow(moon_map_gray, origin='upper', extent=[-180, 180, -90, 90], cmap=cmap)
  1. TLP-alueiden koordinaatit ja tapahtumien määrät

tlp_areas = {

   'name': [
       'Aristarchus', 'Plato', 'Kepler', 'Tycho', 'Alphonsus', 'Grimaldi', 'Copernicus',
       'Gassendi', 'Eratosthenes', 'Posidonius', 'Theophilus', 'Langrenus', 'Proclus',
       'Atlas', 'Aristoteles', 'Eudoxus', 'Hyginus N', 'Römer', 'Messier', 'Pico'
   ],
   'latitude': [
       23.7, 51.6, 8.1, -43.3, -13.6, -5.2, 9.7, -17.5, 14.5, 31.8, -11.4, -8.9, 16.1,
       46.7, 50.2, 44.3, 7.8, 25.3, -2.3, 45.6
   ],
   'longitude': [
       -47.4, -9.3, -38.0, -11.2, -3.2, -68.3, -20.0, -40.0, -11.3, 29.9, 26.4, 60.9,
       46.8, 44.4, 17.4, 16.3, 6.3, 36.4, 47.7, -8.8
   ],
   'events': [
       63, 55, 37, 34, 33, 27, 23, 20, 16, 14, 14, 13, 12, 12, 11, 11, 10, 10, 9, 9
   ]

}

  1. Koko lasketaan neliöjuuri(TLP-tapahtumia) * kerroin
  2. sizes = [np.sqrt(events) * 10 for events in tlp_areas['events']]

sizes = [events*6 for events in tlp_areas['events']]


  1. Piirretään TLP-alueet kartalle

x, y = m(tlp_areas['longitude'], tlp_areas['latitude']) m.scatter(x, y, color='blue', s=sizes, edgecolor='black', alpha=0.5, zorder=5)

  1. Lisätään nimet TLP-alueiden viereen läpinäkyvinä

for label, xpt, ypt in zip(tlp_areas['name'], x, y):

   plt.text(xpt, ypt, label, fontsize=16, ha='right', style="italic", color='black', alpha=1.0)
  1. Näytetään kartta

plt.title('Most active TLP areas') plt.show()


Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 4.0 International 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.


Public domain
This file is in the public domain because it is the work of a computer algorithm or artificial intelligence and does not contain sufficient human authorship to support a copyright claim.

The United Kingdom and Hong Kong provide a limited term of copyright protection for computer-generated works of 50 years from creation. [1] [2]
AI derivative works Legal disclaimer
Most image-generating AI models were trained using works that are protected by copyright. In some cases, such assets and models can produce images that contain major copyrightable elements of those copyrighted training images, making these outputs derivative works. Accordingly, there is a risk that AI-generated art uploaded on Commons may violate the rights of the authors of the original works. See Commons:AI-generated media for additional details.

azərbaycanca  Deutsch  English  español  français  galego  हिन्दी  日本語  português do Brasil  русский  slovenščina  Türkçe  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

File history

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

Date/TimeThumbnailDimensionsUserComment
current18:44, 9 June 2024Thumbnail for version as of 18:44, 9 June 2024811 × 800 (756 KB)Merikanto (talk | contribs)Update
15:58, 7 June 2024Thumbnail for version as of 15:58, 7 June 2024765 × 754 (660 KB)Merikanto (talk | contribs)Cropped image
15:57, 7 June 2024Thumbnail for version as of 15:57, 7 June 20241,310 × 891 (688 KB)Merikanto (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.