2022-07-23T16:25:33,092 Created temporary directory: /tmp/pip-ephem-wheel-cache-e4h8yg9x 2022-07-23T16:25:33,098 Created temporary directory: /tmp/pip-build-tracker-mdui8l32 2022-07-23T16:25:33,099 Initialized build tracking at /tmp/pip-build-tracker-mdui8l32 2022-07-23T16:25:33,099 Created build tracker: /tmp/pip-build-tracker-mdui8l32 2022-07-23T16:25:33,099 Entered build tracker: /tmp/pip-build-tracker-mdui8l32 2022-07-23T16:25:33,101 Created temporary directory: /tmp/pip-wheel-nywranuk 2022-07-23T16:25:33,166 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple 2022-07-23T16:25:33,174 2 location(s) to search for versions of sacpy: 2022-07-23T16:25:33,174 * https://pypi.org/simple/sacpy/ 2022-07-23T16:25:33,174 * https://www.piwheels.org/simple/sacpy/ 2022-07-23T16:25:33,175 Fetching project page and analyzing links: https://pypi.org/simple/sacpy/ 2022-07-23T16:25:33,176 Getting page https://pypi.org/simple/sacpy/ 2022-07-23T16:25:33,180 Found index url https://pypi.org/simple 2022-07-23T16:25:33,363 Found link https://files.pythonhosted.org/packages/e6/80/b3419514ff44e6edcbbc056d0da1270fc233a054ba01c96556b5c33ff76f/sacpy-0.0.2.tar.gz#sha256=facc0dfc762c9b8e2dce23873a6092bbfb560f9a3de4a7794328b08f4a5ff375 (from https://pypi.org/simple/sacpy/), version: 0.0.2 2022-07-23T16:25:33,364 Skipping link: No binaries permitted for sacpy: https://files.pythonhosted.org/packages/38/4e/6944e07dadb84e84af6e58ebdb7c4df885d910d9752ff1dc9dc0af9594d9/sacpy-0.0.5-py3-none-any.whl#sha256=cd80072d7d6b18e36e1839a4467260a953c8142665fa209f1ed259f2059b70da (from https://pypi.org/simple/sacpy/) 2022-07-23T16:25:33,365 Found link https://files.pythonhosted.org/packages/6f/04/db75afba226cdf46c92fb23fe9b78d4cad944ece0519c767587d282328b6/sacpy-0.0.5.tar.gz#sha256=3d08089b89757703673986efbae63620fc9d7586f4de44ee6889e997048204a0 (from https://pypi.org/simple/sacpy/), version: 0.0.5 2022-07-23T16:25:33,366 Skipping link: No binaries permitted for sacpy: https://files.pythonhosted.org/packages/b0/66/52275ba1adf1a6813f885372eddf2750d940fd50a14520c520c707ecb07d/sacpy-0.0.6-py3-none-any.whl#sha256=519b9819b41fdc5fb13ab1916c883846dc3ff42a0f13309ddc9696b407e04504 (from https://pypi.org/simple/sacpy/) 2022-07-23T16:25:33,366 Found link https://files.pythonhosted.org/packages/a0/03/629fa7e7e24c4a4435dc98d661bab374368aa683606b82dba624e907096d/sacpy-0.0.6.tar.gz#sha256=9edb427d7b476f5686741a54a1708c9d38ad687d4e09000bae2cf11fc6715f41 (from https://pypi.org/simple/sacpy/), version: 0.0.6 2022-07-23T16:25:33,367 Skipping link: No binaries permitted for sacpy: https://files.pythonhosted.org/packages/29/86/44499c09172fe3ea38f4e2413cfa5a7a6f29c75120b4456832f58c2791a1/sacpy-0.0.8-py3-none-any.whl#sha256=4defd63aecd32a8f0a0bf7102587e7a385cad02ed0ef8c923cfb0d44036251f9 (from https://pypi.org/simple/sacpy/) 2022-07-23T16:25:33,368 Found link https://files.pythonhosted.org/packages/ad/26/d109c160fe5f8b00ac2b3b59408fc17832265736cab418b3b5ecd89240e9/sacpy-0.0.8.tar.gz#sha256=cf96059d87e44b70d63f7a529d09c9d5008b6df7e0130768c1a5e0290cae8142 (from https://pypi.org/simple/sacpy/), version: 0.0.8 2022-07-23T16:25:33,369 Fetching project page and analyzing links: https://www.piwheels.org/simple/sacpy/ 2022-07-23T16:25:33,369 Getting page https://www.piwheels.org/simple/sacpy/ 2022-07-23T16:25:33,371 Found index url https://www.piwheels.org/simple 2022-07-23T16:25:33,592 Skipping link: not a file: https://www.piwheels.org/simple/sacpy/ 2022-07-23T16:25:33,593 Skipping link: not a file: https://pypi.org/simple/sacpy/ 2022-07-23T16:25:33,628 Given no hashes to check 1 links for project 'sacpy': discarding no candidates 2022-07-23T16:25:33,659 Collecting sacpy==0.0.5 2022-07-23T16:25:33,664 Created temporary directory: /tmp/pip-unpack-ugwbsoir 2022-07-23T16:25:34,522 Downloading sacpy-0.0.5.tar.gz (16.3 MB) 2022-07-23T16:25:41,263 Added sacpy==0.0.5 from https://files.pythonhosted.org/packages/6f/04/db75afba226cdf46c92fb23fe9b78d4cad944ece0519c767587d282328b6/sacpy-0.0.5.tar.gz#sha256=3d08089b89757703673986efbae63620fc9d7586f4de44ee6889e997048204a0 to build tracker '/tmp/pip-build-tracker-mdui8l32' 2022-07-23T16:25:41,266 Running setup.py (path:/tmp/pip-wheel-nywranuk/sacpy_fbd1df6ff8934a149cfafe9afcfe8817/setup.py) egg_info for package sacpy 2022-07-23T16:25:41,268 Created temporary directory: /tmp/pip-pip-egg-info-np2nkcxx 2022-07-23T16:25:41,268 Preparing metadata (setup.py): started 2022-07-23T16:25:41,270 Running command python setup.py egg_info 2022-07-23T16:25:47,894 # SACPY -- A Python Package for Statistical Analysis of Climate 2022-07-23T16:25:47,896 **Sacpy**, a repaid Statistical Analysis tool for Climate or Meteorology data. 2022-07-23T16:25:47,896 Author : Zilu Meng 2022-07-23T16:25:47,897 e-mail : mzll1202@163.com 2022-07-23T16:25:47,898 ## Why choose Sacpy? 2022-07-23T16:25:47,898 ### Quick! 2022-07-23T16:25:47,899 For example, Sacpy is more than 40 times faster than the traditional regression analysis with Python (see example 1). 2022-07-23T16:25:47,900 ### Turn to climate data customization! 2022-07-23T16:25:47,900 Compatible with commonly used meteorological calculation libraries such as numpy and xarray. 2022-07-23T16:25:47,901 ## Install 2022-07-23T16:25:47,902 pip install sacpy 2022-07-23T16:25:47,903 ## Example 2022-07-23T16:25:47,903 Calculate the correlation between SST and nino3.4 index 2022-07-23T16:25:47,904 ```Python 2022-07-23T16:25:47,904 import numpy as np 2022-07-23T16:25:47,905 import scapy as scp 2022-07-23T16:25:47,905 # load sst 2022-07-23T16:25:47,905 sst = scp.load_sst()['sst'] 2022-07-23T16:25:47,906 # get ssta (method=1, Remove linear trend;method=0, Minus multi-year average) 2022-07-23T16:25:47,906 ssta = scp.get_anom(sst,method=1) 2022-07-23T16:25:47,906 # calculate Nino3.4 2022-07-23T16:25:47,907 Nino34 = ssta.loc[:,-5:5,190:240].mean(axis=(1,2)) 2022-07-23T16:25:47,907 # regression 2022-07-23T16:25:47,907 linreg = scp.LinReg(np.array(Nino34),np.array(ssta)) 2022-07-23T16:25:47,907 # plot 2022-07-23T16:25:47,908 plt.contourf(linreg.corr) 2022-07-23T16:25:47,908 # Significance test 2022-07-23T16:25:47,908 plt.contourf(linreg.p_value,levels=[0, 0.05, 1],zorder=1, 2022-07-23T16:25:47,909 hatches=['..', None],colors="None",) 2022-07-23T16:25:47,909 # save 2022-07-23T16:25:47,909 plt.savefig("./nino34.png") 2022-07-23T16:25:47,910 ``` 2022-07-23T16:25:47,910 Result(For a detailed drawing process, see **example**): 2022-07-23T16:25:47,911 ![](./pic/nino34.png) 2022-07-23T16:25:47,911 ### Speed 2022-07-23T16:25:47,912 As example, if we use conventional for-loop to finish it, it will take 40 times more time (see **example**). 2022-07-23T16:25:47,912 ['scapy'] 2022-07-23T16:25:47,913 running egg_info 2022-07-23T16:25:47,913 creating /tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info 2022-07-23T16:25:48,547 writing /tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/PKG-INFO 2022-07-23T16:25:49,133 writing dependency_links to /tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/dependency_links.txt 2022-07-23T16:25:52,062 writing requirements to /tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/requires.txt 2022-07-23T16:25:52,652 writing top-level names to /tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/top_level.txt 2022-07-23T16:25:52,654 writing manifest file '/tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/SOURCES.txt' 2022-07-23T16:25:53,379 file sacpy.py (for module sacpy) not found 2022-07-23T16:25:53,448 reading manifest file '/tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/SOURCES.txt' 2022-07-23T16:25:53,455 writing manifest file '/tmp/pip-pip-egg-info-np2nkcxx/sacpy.egg-info/SOURCES.txt' 2022-07-23T16:25:53,670 Preparing metadata (setup.py): finished with status 'done' 2022-07-23T16:25:53,680 Source in /tmp/pip-wheel-nywranuk/sacpy_fbd1df6ff8934a149cfafe9afcfe8817 has version 0.0.5, which satisfies requirement sacpy==0.0.5 from https://files.pythonhosted.org/packages/6f/04/db75afba226cdf46c92fb23fe9b78d4cad944ece0519c767587d282328b6/sacpy-0.0.5.tar.gz#sha256=3d08089b89757703673986efbae63620fc9d7586f4de44ee6889e997048204a0 2022-07-23T16:25:53,682 Removed sacpy==0.0.5 from https://files.pythonhosted.org/packages/6f/04/db75afba226cdf46c92fb23fe9b78d4cad944ece0519c767587d282328b6/sacpy-0.0.5.tar.gz#sha256=3d08089b89757703673986efbae63620fc9d7586f4de44ee6889e997048204a0 from build tracker '/tmp/pip-build-tracker-mdui8l32' 2022-07-23T16:25:53,691 Created temporary directory: /tmp/pip-unpack-2q76sg4j 2022-07-23T16:25:53,692 Building wheels for collected packages: sacpy 2022-07-23T16:25:53,701 Created temporary directory: /tmp/pip-wheel-gezir2pa 2022-07-23T16:25:53,702 Building wheel for sacpy (setup.py): started 2022-07-23T16:25:53,704 Destination directory: /tmp/pip-wheel-gezir2pa 2022-07-23T16:25:53,705 Running command python setup.py bdist_wheel 2022-07-23T16:25:55,714 # SACPY -- A Python Package for Statistical Analysis of Climate 2022-07-23T16:25:55,715 **Sacpy**, a repaid Statistical Analysis tool for Climate or Meteorology data. 2022-07-23T16:25:55,716 Author : Zilu Meng 2022-07-23T16:25:55,717 e-mail : mzll1202@163.com 2022-07-23T16:25:55,717 ## Why choose Sacpy? 2022-07-23T16:25:55,718 ### Quick! 2022-07-23T16:25:55,719 For example, Sacpy is more than 40 times faster than the traditional regression analysis with Python (see example 1). 2022-07-23T16:25:55,719 ### Turn to climate data customization! 2022-07-23T16:25:55,720 Compatible with commonly used meteorological calculation libraries such as numpy and xarray. 2022-07-23T16:25:55,721 ## Install 2022-07-23T16:25:55,721 pip install sacpy 2022-07-23T16:25:55,722 ## Example 2022-07-23T16:25:55,723 Calculate the correlation between SST and nino3.4 index 2022-07-23T16:25:55,724 ```Python 2022-07-23T16:25:55,724 import numpy as np 2022-07-23T16:25:55,724 import scapy as scp 2022-07-23T16:25:55,725 # load sst 2022-07-23T16:25:55,725 sst = scp.load_sst()['sst'] 2022-07-23T16:25:55,725 # get ssta (method=1, Remove linear trend;method=0, Minus multi-year average) 2022-07-23T16:25:55,726 ssta = scp.get_anom(sst,method=1) 2022-07-23T16:25:55,726 # calculate Nino3.4 2022-07-23T16:25:55,726 Nino34 = ssta.loc[:,-5:5,190:240].mean(axis=(1,2)) 2022-07-23T16:25:55,726 # regression 2022-07-23T16:25:55,727 linreg = scp.LinReg(np.array(Nino34),np.array(ssta)) 2022-07-23T16:25:55,727 # plot 2022-07-23T16:25:55,727 plt.contourf(linreg.corr) 2022-07-23T16:25:55,728 # Significance test 2022-07-23T16:25:55,728 plt.contourf(linreg.p_value,levels=[0, 0.05, 1],zorder=1, 2022-07-23T16:25:55,728 hatches=['..', None],colors="None",) 2022-07-23T16:25:55,729 # save 2022-07-23T16:25:55,729 plt.savefig("./nino34.png") 2022-07-23T16:25:55,730 ``` 2022-07-23T16:25:55,730 Result(For a detailed drawing process, see **example**): 2022-07-23T16:25:55,730 ![](./pic/nino34.png) 2022-07-23T16:25:55,731 ### Speed 2022-07-23T16:25:55,732 As example, if we use conventional for-loop to finish it, it will take 40 times more time (see **example**). 2022-07-23T16:25:55,732 ['scapy'] 2022-07-23T16:25:59,720 running bdist_wheel 2022-07-23T16:25:59,909 running build 2022-07-23T16:25:59,910 running build_py 2022-07-23T16:26:00,557 file sacpy.py (for module sacpy) not found 2022-07-23T16:26:00,562 creating build 2022-07-23T16:26:00,563 creating build/lib 2022-07-23T16:26:00,565 creating build/lib/scapy 2022-07-23T16:26:00,568 copying scapy/version.py -> build/lib/scapy 2022-07-23T16:26:00,572 copying scapy/UT.py -> build/lib/scapy 2022-07-23T16:26:00,577 copying scapy/XrTools.py -> build/lib/scapy 2022-07-23T16:26:00,580 copying scapy/LinReg.py -> build/lib/scapy 2022-07-23T16:26:00,584 copying scapy/load_sst.py -> build/lib/scapy 2022-07-23T16:26:00,587 copying scapy/__init__.py -> build/lib/scapy 2022-07-23T16:26:00,590 copying scapy/linger_cal.py -> build/lib/scapy 2022-07-23T16:26:00,593 running egg_info 2022-07-23T16:26:01,914 writing sacpy.egg-info/PKG-INFO 2022-07-23T16:26:02,496 writing dependency_links to sacpy.egg-info/dependency_links.txt 2022-07-23T16:26:05,426 writing requirements to sacpy.egg-info/requires.txt 2022-07-23T16:26:06,010 writing top-level names to sacpy.egg-info/top_level.txt 2022-07-23T16:26:06,015 file sacpy.py (for module sacpy) not found 2022-07-23T16:26:06,079 reading manifest file 'sacpy.egg-info/SOURCES.txt' 2022-07-23T16:26:06,088 writing manifest file 'sacpy.egg-info/SOURCES.txt' 2022-07-23T16:26:06,093 /usr/local/lib/python3.7/dist-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: !! 2022-07-23T16:26:06,094 ############################ 2022-07-23T16:26:06,094 # Package would be ignored # 2022-07-23T16:26:06,094 ############################ 2022-07-23T16:26:06,095 Python recognizes 'scapy.example.data' as an importable package, however it is 2022-07-23T16:26:06,095 included in the distribution as "data". 2022-07-23T16:26:06,095 This behavior is likely to change in future versions of setuptools (and 2022-07-23T16:26:06,096 therefore is considered deprecated). 2022-07-23T16:26:06,096 Please make sure that 'scapy.example.data' is included as a package by using 2022-07-23T16:26:06,097 setuptools' `packages` configuration field or the proper discovery methods. 2022-07-23T16:26:06,097 You can read more about "package discovery" and "data files" on setuptools 2022-07-23T16:26:06,098 documentation page. 2022-07-23T16:26:06,099 !! 2022-07-23T16:26:06,099 check.warn(importable) 2022-07-23T16:26:06,100 creating build/lib/scapy/example 2022-07-23T16:26:06,100 creating build/lib/scapy/example/data 2022-07-23T16:26:06,100 copying scapy/example/data/HadISST_sst_2x2.nc -> build/lib/scapy/example/data 2022-07-23T16:26:07,301 file sacpy.py (for module sacpy) not found 2022-07-23T16:26:07,954 /usr/local/lib/python3.7/dist-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. 2022-07-23T16:26:07,955 setuptools.SetuptoolsDeprecationWarning, 2022-07-23T16:26:08,598 installing to build/bdist.linux-armv7l/wheel 2022-07-23T16:26:08,598 running install 2022-07-23T16:26:08,660 running install_lib 2022-07-23T16:26:09,310 creating build/bdist.linux-armv7l 2022-07-23T16:26:09,310 creating build/bdist.linux-armv7l/wheel 2022-07-23T16:26:09,313 creating build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:09,315 copying build/lib/scapy/version.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:09,319 copying build/lib/scapy/UT.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:09,322 copying build/lib/scapy/XrTools.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:09,325 copying build/lib/scapy/LinReg.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:09,329 creating build/bdist.linux-armv7l/wheel/scapy/example 2022-07-23T16:26:09,331 creating build/bdist.linux-armv7l/wheel/scapy/example/data 2022-07-23T16:26:09,333 copying build/lib/scapy/example/data/HadISST_sst_2x2.nc -> build/bdist.linux-armv7l/wheel/scapy/example/data 2022-07-23T16:26:10,685 copying build/lib/scapy/load_sst.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:10,689 copying build/lib/scapy/__init__.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:10,692 copying build/lib/scapy/linger_cal.py -> build/bdist.linux-armv7l/wheel/scapy 2022-07-23T16:26:10,695 running install_egg_info 2022-07-23T16:26:11,359 Copying sacpy.egg-info to build/bdist.linux-armv7l/wheel/sacpy-0.0.5-py3.7.egg-info 2022-07-23T16:26:11,381 running install_scripts 2022-07-23T16:26:11,536 creating build/bdist.linux-armv7l/wheel/sacpy-0.0.5.dist-info/WHEEL 2022-07-23T16:26:11,541 creating '/tmp/pip-wheel-gezir2pa/sacpy-0.0.5-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it 2022-07-23T16:26:11,547 adding 'scapy/LinReg.py' 2022-07-23T16:26:11,550 adding 'scapy/UT.py' 2022-07-23T16:26:11,552 adding 'scapy/XrTools.py' 2022-07-23T16:26:11,554 adding 'scapy/__init__.py' 2022-07-23T16:26:11,557 adding 'scapy/linger_cal.py' 2022-07-23T16:26:11,559 adding 'scapy/load_sst.py' 2022-07-23T16:26:11,561 adding 'scapy/version.py' 2022-07-23T16:26:19,007 adding 'scapy/example/data/HadISST_sst_2x2.nc' 2022-07-23T16:26:19,651 adding 'sacpy-0.0.5.dist-info/METADATA' 2022-07-23T16:26:19,652 adding 'sacpy-0.0.5.dist-info/WHEEL' 2022-07-23T16:26:19,654 adding 'sacpy-0.0.5.dist-info/top_level.txt' 2022-07-23T16:26:19,655 adding 'sacpy-0.0.5.dist-info/RECORD' 2022-07-23T16:26:20,053 removing build/bdist.linux-armv7l/wheel 2022-07-23T16:26:20,333 Building wheel for sacpy (setup.py): finished with status 'done' 2022-07-23T16:26:20,820 Created wheel for sacpy: filename=sacpy-0.0.5-py3-none-any.whl size=16391743 sha256=938dd5af7a060e1b151128a251cfea932c72115ff50daecdcf846001a1855f72 2022-07-23T16:26:20,822 Stored in directory: /tmp/pip-ephem-wheel-cache-e4h8yg9x/wheels/5f/78/62/51966c83d747725c68ab8a937a713a5259775af7fe350c26e6 2022-07-23T16:26:20,862 Successfully built sacpy 2022-07-23T16:26:22,087 Removed build tracker: '/tmp/pip-build-tracker-mdui8l32'