Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

File:SOI.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia
File:SOI.svg
Size of this PNG preview of this SVG file:800 × 246 pixels.Other resolutions:320 × 98 pixels |640 × 197 pixels |1,024 × 315 pixels |1,280 × 394 pixels |2,560 × 788 pixels |1,248 × 384 pixels.

Original file(SVG file, nominally 1,248 × 384 pixels, file size: 138 KB)

This is a file from theWikimedia Commons. Information from itsdescription page there is shown below.
Commons is a freely licensed media file repository.You can help.

Summary

Python code

fromurllib.requestimporturlretrieveifinput('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=[]withopen('soiplaintext.html','r')asf:forlineinf:# until table header (the line after '"`UNIQ--pre-00000001-QINU`"'data=[float(_)for_indata]importnumpyasnpx=1876.+1/24.+np.linspace(0.,len(data)/12,len(data),endpoint=False)n=7n2=n//2kernel=np.sin(np.pi*np.linspace(1/(n+1),1.,n,endpoint=False))kernel/=np.sum(kernel)av=np.convolve(data,kernel,mode='valid')importmatplotlib.pyplotaspltfrommatplotlib.tickerimportMultipleLocatorplt.rcParams['svg.fonttype']='none'# text as text, not curvesfig,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()fromreimportsubsvg=open('SOI.svg','r').read()# In the file ...svg=sub(r'[0-9]+\.[0-9]+',lambdax:str(round(float(x.group()),1)),svg)# round to .1f,STYLE=''rest=svg.split(STYLE)# draw the style inforest[0]=sub('z\n"')[1][1:]# identify the symbol name for the markersvg=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)

DescriptionSOI.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
Date
SourceOwn work
AuthorRainald62
Other versionsFile:Soi.svg outdated, disallowed to overwrite.

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attributionshare alike
This file is licensed under theCreative CommonsAttribution-Share Alike 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.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under thesame or compatible license as the original.
https://creativecommons.org/licenses/by-sa/4.0CC BY-SA 4.0Creative Commons Attribution-Share Alike 4.0truetrue

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

7 November 2023

image/svg+xml

141,130byte

384pixel

1,248pixel

1b8fb7394ceaaa727dc8ee132ecd36296b4ea755

File history

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

Date/TimeThumbnailDimensionsUserComment
current16:57, 1 February 2025Thumbnail for version as of 16:57, 1 February 20251,248 × 384(138 KB)Rainald62Update
21:19, 2 September 2024Thumbnail for version as of 21:19, 2 September 20241,248 × 384(138 KB)Rainald62Update (latest el nino is definitely over), no hyphen
20:24, 9 May 2024Thumbnail for version as of 20:24, 9 May 20241,248 × 384(138 KB)Rainald62Update and shorter smoothing kernel (7 yr instead of 25 yr) to show the latest El-Niño.
05:34, 31 March 2024Thumbnail for version as of 05:34, 31 March 20241,170 × 360(118 KB)AspereFile uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ko.
19:43, 7 November 2023Thumbnail for version as of 19:43, 7 November 20231,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...

File usage

Global file usage

The following other wikis use this file:

Metadata

This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.

If the file has been modified from its original state, some details may not fully reflect the modified file.

Width936pt
Height288pt
Retrieved from "https://en.wikipedia.org/wiki/File:SOI.svg"

[8]ページ先頭

©2009-2025 Movatter.jp