自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 资源 (4)
  • 收藏
  • 关注

转载 idl镶嵌

;镶嵌;-----------------------;-----------------------;选择镶嵌数据文件(多选),点击OK,然后选择输出路径,IDL将自动进行无缝镶嵌,功能如下有:;使用自动生成接边线;;羽化距离为20(接边线两侧各10个像元);;忽略值设置为0;;重采样算法为双线性内插(三次卷积法);;保存的接边线为“文件名+_Connectionline.shp...

2020-01-04 09:46:55 1005 3

转载 dd测试linux读写速度

测试环境:逻辑CPU:12内存:16GB磁盘:7200转文件系统:ext4测试写入速度:dd if=/dev/zero of=/fdfs1/daiyu/test1.dbf bs=8k count=400000 (默认"写缓存"启作用)dd if=/dev/zero of=/fdfs1/daiyu/test2.dbf bs=8k count=400000 conv=fsync...

2019-11-14 19:08:53 318

原创 makefile

makefile 编译动态库CC = g++ -Wl,-rpath,./libRM = rm -rfINCLUDE = -I./SrcLIBS = CFLAGS = -g -O2 -g3 -c -fPICCPPS = $(wildcard ./src/*.cpp) OBJS = $(patsubst %.cpp,%.o,$(CPPS))BIN = ../InOrbitPr...

2019-11-14 17:53:45 134

原创 gdalwarp.exe 实现镶嵌裁切

gdalwarp.exe -overwrite -t_srs "WGS84" -te 116.8852 39.48049 117.01000 39.70 F:\VMcentosShare\Factory_DemData\ImageMosaic\Beijing-2jing_OC\UTM-WGS84\TH01-01_R201202210000003_1A_SXZ_2_10_883_123\TH01-0...

2019-09-05 19:46:26 1259

原创 批量处理脚本

import os,sysimport shutilimport copyimport timeimport sysimport reimport platformimport threadingmax_threadnum = 4semaphore = threading.BoundedSemaphore(max_threadnum)def makedir(dst_file...

2019-08-20 10:56:29 392

原创 c++遍历文件+正则表达式筛选文件

// Walking.cpp : 定义控制台应用程序的入口点。//#include <string>#include <vector>#include <regex>#ifdef _MSC_VER#define DIR_CHAR "\\"#include<io.h>#else#define DIR_CHAR "/"#inclu...

2019-03-19 11:15:17 1527

转载 centOS7 修改yum

官方的yum源在国内访问效果不佳。需要改为国内比较好的阿里云或者网易的yum源修改方式:下载wgetyum install wget -yecho 备份当前的yum源mv /etc/yum.repos.d /etc/yum.repos.d.backup4comexecho 新建空的yum源设置目录mkdir /etc/yum.repos.decho 下载阿里云的yum源配置wg...

2018-11-27 20:51:47 359

原创 python批处理调可执行程序

import osimport shutilimport xml.dom.minidomimport sysimport timedef makedir(dst_filepath): folder = os.path.exists(dst_filepath) if not folder: os.makedirs(dst_filepath)def to...

2018-11-24 21:49:49 503

原创 rainbow彩虹颜色表(灰度转RGB彩色/伪彩色)

1.颜色表0-255灰度到彩色映射表,参考HDF5View中的rainbow。0 0 0 125 0 255 121 0 255 116 0 255 112 0 255 108 0 255 103 0 255 99 0 255 95 0 255 91 0 255 86 0 255 82 0 255 78 0 255...

2018-11-09 15:07:10 7898 5

转载 ulimit -c unlimited

ulimint -a 用来显示当前的各种用户进程限制Linux对于每个用户,系统限制其最大进程数,为提高性能,可以根据设备资源情况,设置个Linux用户的最大进程数,一些需要设置为无限制:数据段长度:ulimit -d unlimited最大内存大小:ulimit -m unlimited堆栈大小:ulimit -s unlimited我们在用这个命令的时候主要是为了产生core文件,...

2018-11-08 17:10:11 341

转载 PyCharm、Python3和PyQt5环境搭建和简单使用

1. PyQt5下载安装python3环境安装,笔者装的3.6.0,安装时,一定要选择pip,将其安装上。执行pip3 install sip,先安装先安装sip执行pip3 install PyQt5=5.10,因为python3.6对应的PyQt版本是5.10,安装时一定要保证版本一直,否则运行时候会报错。执行pip3 install pyqt5-tools,安装pyqt5-tool...

2018-10-21 22:28:55 450

原创 linux下MPI编译

1.下载安装首先进行解压文件openmpi-3.1.2.tar.gz。解压进入openmpi-3.1.2,./configure --help可以查看安装配置参数,这里直接./configure --prefix=/usr/local/openmpi-3.1.0,完成参数配置执行make完成编译执行make install 完成安装配置环境变量,执行vi /etc/profile打开配...

2018-10-19 16:42:41 3319 5

原创 多线程获取局域网IP并排序

#coding = utf-8import os,os.pathimport threadingimport refrom time import ctime, sleeplock = threading.RLock()iplist = []def action(ip): return1 = os.system('ping -n 2 -w 1 %s' % ip) # 每...

2018-10-19 10:39:29 201

原创 python多线程获取局域网内所有电脑IP

#coding = utf-8import os,os.pathimport threadingimport timelock = threading.RLock()def action(ip): result = "ip.txt" return1 = os.system('ping -n 2 -w 1 %s' % ip) # 每个ip ping2次,等待时间为1s...

2018-10-18 15:14:42 3540

原创 批量获取局域网IP[多线程]

批量获取局域网IPpython代码在这里插入代码片#coding = utf-8import os,os.pathimport threadingimport timelock = threading.RLock()def action(ip): result = &amp;quot;ip.txt&amp;quot; result2 = &amp;quot;ip_err.txt&amp;quot; return

2018-10-18 13:44:51 500

liinux编译好的openmpi库

centos7.2 下编译好的openmpi库,可以测试使用,configure 中没有添加参数

2018-10-19

输入日期,就算两个日期相差几天

输入起始时间和结束时间,可以计算相差多少天和星期几,一个挺不错的实用小程序

2011-06-28

用c++读取txt中的文件显示在电脑上

将txt中的文字读取到电脑屏幕上 #include #include #include #include using namespace std; int main() { fstream file; char name[1000000]; file.open("D:\\myhomework\\数据\\全国各省战斗力大排名.txt"); if(!file) { cout<<"打开文件失败!"<<endl; exit(0); } cout<<"打开文件成功!\n"<<endl; /*for(int i=0;i>name; cout<<name<>name; if(file.fail()) break; cout<<name<<" "; } file.close; cout<<"\n运行结束\n"; return 0; }

2011-03-13

c++读取写入txt文件

读取写入txt文件,一个小小的程序,用c++读取txt文件

2011-03-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除