跳至內容

File:SOI.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案 (SVG 檔案,表面大小:1,248 × 384 像素,檔案大小:138 KB)


摘要

Python code

from urllib.request import urlretrieve
if input('Refresh local copy of SOI data from ftp.bom.gov.au/..?\n'
         'Empty input for NO, anything else for YES '
        ) > '':
    print('Loading...')
    urlretrieve('ftp://ftp.bom.gov.au/anon/home/ncc/www/sco/soi/soiplaintext.html',
                'soiplaintext.html')
data = []
with open('soiplaintext.html', 'r') as f:
    for line in f: # until table header (the line after '"`UNIQ--pre-00000001-QINU`"'
data = [float(_) for _ in data]
import numpy as np
x = 1876. + 1/24. + np.linspace(0., len(data)/12, len(data), endpoint=False)
n = 7
n2 = n//2
kernel = np.sin(np.pi*np.linspace(1/(n+1), 1., n, endpoint=False))
kernel /= np.sum(kernel)
av = np.convolve(data, kernel, mode='valid')
import matplotlib.pyplot as plt
from matplotlib.ticker import MultipleLocator
plt.rcParams['svg.fonttype'] = 'none' # text as text, not curves
fig, ax = plt.subplots(1,1)
fig.set_size_inches(13, 4)
ax.fill_between(x[n2:-n2], av, 7., where= av > 7., facecolor='blue', interpolate=True)
ax.fill_between(x[n2:-n2], av,-7., where= av <-7., facecolor='red',  interpolate=True)
ax.plot(x[n2:-n2], av, 'k-', linewidth=0.4)
ax.plot(x, data, 'ko', markerfacecolor='#00000040', markeredgecolor='#00000000', markersize=3)
ax.set_xlim(x[0]-2., x[-1]+2.)
ax.set_ylim(-43., 40.)
ax.xaxis.set_major_locator(MultipleLocator(10.))
fig.tight_layout()
fig.text(.91,.88, 'La-Niña', color='blue', fontname='Verdana', fontsize=15)
fig.text(.91,.12, 'El-Niño', color='red',  fontname='Verdana', fontsize=15)
fig.savefig('SOI.svg', format='svg')
fig.show()
from re import sub
svg = open('SOI.svg', 'r').read() # In the file ...
svg = sub(r'[0-9]+\.[0-9]+', lambda x: str(round(float(x.group()), 1)), svg) # round to .1f,
STYLE = ' style="fill-opacity: 0.3; stroke: #000000; stroke-opacity: 0"'
rest = svg.split(STYLE)                                                   # draw the style info
rest[0] = sub('z\n" style="', 'z\n" style="fill-opacity: 0.3; ', rest[0]) # into the g element,
symbol = rest[1].split('"')[1][1:]    # identify the symbol name for the marker
svg = sub(symbol, 'o', ''.join(rest)) # and shorten it to "o",
svg = sub(' *<use x', '<use x', svg) # and finally unindent the most frequent lines.
open('SOI.svg', 'w').write(svg)

描述
English: Southern Oscillation Index monthly data 1876-2024, black line: smoothed with a 7-months cosine kernel, events colored with a threshold at |SOI| = 7 according to the Bureau of Meteorology description page. The red events are generally associated with El Niño and the blue events with La Niña.
Data Source:ftp://ftp.bom.gov.au/anon/home/ncc/www/sco/soi/soiplaintext.html
Description:http://www.bom.gov.au/climate/glossary/soi.shtml
日期
來源 自己的作品
作者 Rainald62
其他版本 File:Soi.svg outdated, disallowed to overwrite.

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 若要根據本素材進行再混合、轉換或創作,則必須以與原作相同或相容的授權來發布您的作品。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

image/svg+xml

141,130 位元組

384 像素

1,248 像素

1b8fb7394ceaaa727dc8ee132ecd36296b4ea755

斷定方法:​SHA-1 中文 (已轉換拼寫)

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2025年2月1日 (六) 16:57於 2025年2月1日 (六) 16:57 版本的縮圖1,248 × 384​(138 KB)Rainald62Update
2024年9月2日 (一) 21:19於 2024年9月2日 (一) 21:19 版本的縮圖1,248 × 384​(138 KB)Rainald62Update (latest el nino is definitely over), no hyphen
2024年5月9日 (四) 20:24於 2024年5月9日 (四) 20:24 版本的縮圖1,248 × 384​(138 KB)Rainald62Update and shorter smoothing kernel (7 yr instead of 25 yr) to show the latest El-Niño.
2024年3月31日 (日) 05:34於 2024年3月31日 (日) 05:34 版本的縮圖1,170 × 360​(118 KB)AspereFile uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ko.
2023年11月7日 (二) 19:43於 2023年11月7日 (二) 19:43 版本的縮圖1,170 × 360​(119 KB)Rainald62{{Information |Description={{en|1=Southern Oscillation Index monthly data 1876-Oct2023, black line: smoothed with a 25-months cosine kernel, events colored with a threshold at |SOI| = 7 according to the bom description page.<br>Data Source:ftp://ftp.bom.gov.au/anon/home/ncc/www/sco/soi/soiplaintext.html<br>Description:http://www.bom.gov.au/climate/glossary/soi.shtml}} |Source={{own}} |Date=2023-11-07 |Author=Rainald62 |Permission= |other_v...

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料