File:Tlp locations by ai 1.png
Original file (811 × 800 pixels, file size: 756 KB, MIME type: image/png)
Captions
Summary
[edit]DescriptionTlp locations by ai 1.png |
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
- tlp areas on moon
- python3 source code
- 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
- Lataa taustakuva
moon_map = Image.open("moon_map.jpg") # Lataa ja tallenna kuva nimellä 'moon_map.jpg'
- 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))
- moon_map_visible=moon_map
- Muunna kuva harmaasävyiseksi (grayscale)
moon_map_gray = moon_map_visible.convert('L')
- Muunna kuva numpy arrayksi
moon_map_gray = np.array(moon_map_gray)
- Luo viridis-väripaletti
viridis_colors = plt.cm.YlOrBr_r(np.linspace(0, 1, 256))
cmap = LinearSegmentedColormap.from_list('Viridis', viridis_colors)
- Luo kartta
fig, ax = plt.subplots(figsize=(10, 5))
- Asetetaan Basemap käyttämään cylindrical equidistant -projektiota
m = Basemap(projection='cyl', llcrnrlon=-90, urcrnrlon=90, llcrnrlat=-90, urcrnrlat=90, resolution='l')
- m = Basemap(projection='cyl', llcrnrlon=-180, urcrnrlon=180, llcrnrlat=-90, urcrnrlat=90, resolution='l')
- m = Basemap(projection='ortho', lat_0=0, lon_0=0, resolution='l')
- m = Basemap(projection='moll',llcrnrlon=-180, urcrnrlon=180, llcrnrlat=-90, urcrnrlat=90, lat_0=0, lon_0=0, resolution='l')
- Näytä kuvan tausta
m.imshow(moon_map_gray, origin='upper', extent=[-90, 90, -90, 90], cmap=cmap)
- m.imshow(moon_map_gray, origin='upper', extent=[-180, 180, -90, 90], cmap=cmap)
- 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
]
}
- Koko lasketaan neliöjuuri(TLP-tapahtumia) * kerroin
- sizes = [np.sqrt(events) * 10 for events in tlp_areas['events']]
sizes = [events*6 for events in tlp_areas['events']]
- 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)
- 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)
- Näytetään kartta
plt.title('Most active TLP areas')
plt.show()
Licensing
[edit]- 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 domainPublic domainfalsefalse |
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]
|
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 18:44, 9 June 2024 | 811 × 800 (756 KB) | Merikanto (talk | contribs) | Update | |
15:58, 7 June 2024 | 765 × 754 (660 KB) | Merikanto (talk | contribs) | Cropped image | ||
15:57, 7 June 2024 | 1,310 × 891 (688 KB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.