两个Package 64bit地址,安装方法:CMD切换至Package下载目录,
1 | pip install scipy-0.17.0rc1-cp27-none-win_amd64.whl |
1 | pip install scipy-0.17.0rc1-cp27-none-win_amd64.whl |
1 2 3 4 5 6 | #!/usr/bin/env python import wx app = wx.App(False) frame = wx.Frame(None, wx.ID_ANY, "Hello World") frame.Show(True) app.MainLoop() |
1 | pyinstaller.exe --onefile --windowed app.py |
1 | pyinstaller.exe --onefile --windowed --icon=app.ico app.py |
1 2 3 4 | DEAZV-27TFM-BL52D-PVN9L-ADULD <2021-6-11到期> DEAZW-38TGM-HH52D-XG5WR-FX4QW <2021-6-11到期> DMAZW-48TGM-LQ52C-G82V6-2JJUC <2021-6-10到期> DMAZW-4ATGM-QL52D-M6XEM-TCFCS <2021-6-11到期> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | clear; clc; n=100; disp('parfor'); timebegin=tic; cur_data=date; cur_time=fix(clock); str1=sprintf('%s %.2d:%.2d:%.2d', cur_data, cur_time(4), cur_time(5), cur_time(6)); fprintf('Time Begin: '); fprintf(str1); fprintf('\n'); dirpath='./sub1'; parfor ii=1:n txtname=[num2str(ii), '.txt']; txtpath=[dirpath, '/', txtname]; fid=fopen(txtpath, 'wt'); fclose(fid); fclose('all'); disp(num2str(ii)); end cur_data=date; cur_time=fix(clock); str2=sprintf('%s %.2d:%.2d:%.2d', cur_data, cur_time(4), cur_time(5), cur_time(6)); fprintf('Time End: '); disp(str2); timespan=toc(timebegin); fprintf('Time Span: %.4f s\n', timespan); |
1 2 3 4 5 | XX=[]; parfor ii=1:n value=?? XX=AddData(XX, value); end |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | % Created by LI Xu % Version 1.0 % 12 April, 2015 % Improved by LI Xu % Version 1.1 % December 4, 2015 % Set the input/output directories % for processing clear; clc; clf; % Front Picture frontpath='legend.png'; front=imread(frontpath); % Scale Factor scale=0.18; front=imresize(front, scale); frontrow=size(front, 1); frontcol=size(front, 2); % Source Directory SouDir='./input'; % Destination Directory DesDir='./output'; % Set the start location of row and column hratio=0.57; vratio=0.8; % Background Picture files=dir([SouDir, '/*.png']); for ii=1:length(files) filename=files(ii).name; filepath=[SouDir, '/', filename]; back=imread(filepath); row=size(back, 1); col=size(back, 2); strow=round(row*vratio); stcol=round(col*hratio); resimg=back; resimg(strow:strow+frontrow-1, stcol:stcol+frontcol-1, :)=front; imshow(resimg); pause(2); otpath=[DesDir, '/', filename]; % Save imwrite(resimg, otpath); close all; disp([num2str(ii), '.', filename]); end disp('***********************************************'); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | % Created by LI Xu % Version 1.0 % December 2, 2015 % Description: % Recognize the valid range for the input image % If you have any question about this code, % please do not hesitate to contact me via E-mail: % jeremy456@163.com % Blog: % http://blog.sciencenet.cn/u/lixujeremy % http://lixuworld.blogspot.com/ clear; clc; % Values for Ingnoring igValues=[-99, 100]; % Source Directory SouDir='./input'; % All files files=dir([SouDir, '/*.tif']); % Loop for ii=1:length(files) filename=files(ii).name; filepath=[SouDir, '/', filename]; image=imread(filepath); data=image; imgsz=size(data); num=imgsz(1)*imgsz(2); data=reshape(data, 1, num); for jj=1:length(igValues) igV=igValues(jj); index=find(data==igV); if isempty(index) continue; end data(index)=[]; end % Max max_data=max(data); % Min min_data=min(data); % Display fprintf('%d-%s-%d: ', ii, filename, length(data)); fprintf('%.5f~%.5f\n', min_data, max_data); end disp('*********************************************'); |
Categories | SPEI values |
Extremely dryness | Less than - 2 |
Severe dryness | -1.99 to -1.5 |
Moderate dryness | -1.49 to -1.0 |
Near normal | -1.0 to 1.0 |
Moderate wetness | 1.0 to 1.49 |
Severe wetness | 1.50 to 1.99 |
Extremely wetness | More than -2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | % Created by LI Xu % Version 1.0 % 25 October, 2014 % Modified by LI Xu % Version 1.1 % November 24, 2015 % Add Source and destination directory % Mosaicing Images with the same % rows, columns and banks. % No blank edges. clear; clc; % Set the number of columns for Output M*N N=2; % Source Directory SouDir='./input'; % Destination Directory DesDir='./output'; % Images files=dir([SouDir, '/*.png']); num_files=length(files); M=ceil(num_files/N); % Image Info img=imread([SouDir, '/', files(1).name]); rows=size(img, 1); cols=size(img, 2); bands=size(img, 3); cellstack=cell(M, 1); N_flag=1; temp_img=zeros(rows, cols*N, bands)+255; temp_img=uint8(temp_img); for ii=1:num_files imgfile=files(ii).name; in_img=imread([SouDir, '/', imgfile]); % Position if N_flag > N N_flag=1; temp_img=zeros(rows, cols*N, bands)+255; temp_img=uint8(temp_img); end cellrow=ceil(ii./N); row_position=1:rows; col_position=1+cols*(N_flag-1):cols*N_flag; temp_img(row_position, col_position, :)=in_img; %imshow(temp_img); cellstack{cellrow, 1}=temp_img; N_flag=N_flag+1; end % Output Image otImage=zeros(rows*M, cols*N, bands); for row=1:M row_range=1+rows*(row-1):rows*row; otImage(row_range, :, :)=cellstack{row, 1}; end otImage=uint8(otImage); imshow(otImage); pause(2); otname=['NoEdge_R', num2str(M), 'C', num2str(N), '.png']; otpath=[DesDir, '/', otname]; imwrite(otImage, otpath); close all disp('END'); |