File:SOI.svg
Page contents not supported in other languages.
Tools
Actions
In other projects
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. |
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 | |
Source | Own work |
Author | Rainald62 |
Other versions | File:Soi.svg outdated, disallowed to overwrite. |
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:57, 1 February 2025 | ![]() | 1,248 × 384(138 KB) | Rainald62 | Update |
21:19, 2 September 2024 | ![]() | 1,248 × 384(138 KB) | Rainald62 | Update (latest el nino is definitely over), no hyphen | |
20:24, 9 May 2024 | ![]() | 1,248 × 384(138 KB) | Rainald62 | Update and shorter smoothing kernel (7 yr instead of 25 yr) to show the latest El-Niño. | |
05:34, 31 March 2024 | ![]() | 1,170 × 360(118 KB) | Aspere | File uploaded using svgtranslate tool (https://svgtranslate.toolforge.org/). Added translation for ko. | |
19:43, 7 November 2023 | ![]() | 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... |
The following 2 pages use this file:
The following other wikis use this file:
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.
Width | 936pt |
---|---|
Height | 288pt |