推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

Python与批处理在遥感影像存储中的应用

更新时间:2019-12-20 21:24:51 大小:2M 上传用户:songhuahua查看TA发布的资源 标签:python 下载积分:1分 评价赚积分 (如何评价?) 打赏 收藏 评论(0) 举报

资料介绍

目前,未经过压缩的航摄遥感影像资料的数量越来越多,其文件体积越来越大,造成备份分发时耗时也越来越多。针对部门级的影像资料存储备份需求,提出几种解决方法。利用Python语言优秀特性,结合操作系统批处理,采用冷数据存储方案,以期达到提高存储备份和分发的效率,节约硬件投入成本的目标。经实验结果讨论分析,得到几种各具特点的存储方法,实际应用中可根据管理需要选取。


部分文件列表

文件名 大小
Python与批处理在遥感影像存储中的应用.pdf 2M

【关注B站账户领20积分】

部分页面预览

(完整内容请下载后查看)
35  
6
Vol. 35 No. 6  
Jun. 2018  
卷第  
计算机应用与软件  
2018  
6
Computer Applications and Software  
Python  
遥感存储中的用  
1
1*  
2
3
廖小龙 施 昆  
云波  
1
(
650000)  
理工学国学院 云明  
2
(
650000)  
明  
3
(
650500)  
明  
, , ,  
目前 航摄遥影像的数量越来越文件越来越时  
。  
越来越部门影像需求 种解决方用  
Python  
结合系  
, , 。  
数据方案 以期和分发的成本的果  
, ,  
分析 特点应用需要取  
DOM  
TP301  
Python  
关键词  
数据 理  
缩  
DOI: 10. 3969 /j. issn. 1000-386x. 2018. 06. 018  
A
中图分类号  
文献标识码  
APPLICATION OF PYTHON AND BATCH IN REMOTE SENSING IMAGE STORAGE  
1
1*  
2
3
Liao Xiaolong Shi Kun  
Huang Yanfeng Chen Yunbo  
1
( Engineering Institute of Land and ResourcesKunming University of Science and TechnologyKunming 650000YunnanChina)  
2
( Yunnan Province Testing Station of Mapping and Surveying ProductsKunming 650000YunnanChina)  
3
( Kunming Urban Planning and Information CenterKunming 650500YunnanChina)  
Abstract  
At presentthe number of un-compressed aerial photography remote sensing image data is increasingand  
its file size is increasingwhich causes more and more time-consuming backup and distribution. For the department-level  
image data storage backup requirementsthe paper proposed several solutions. The solution used the excellent features of  
the Python languagecombined with operating system batch processingand adopted a cold data storage scheme in order  
to achieve the goal of improving the efficiency of storage backup and distribution and saving hardware input costs. In the  
light of the experimental resultsseveral storage methods with different characteristics are obtainedwhich can be  
selected on the basis of the management requirements in practical applications.  
Keywords  
DOM Cold data Batch Python Multiprocessing Compression  
管理部门重要  
0
引 言  
: 、 、  
常用存 储 方 式 存 储  
DOM ( Digital Orthophoto  
图  
建设发展的基根  
2 - 4  
Map)  
用  
采用存储方式 在  
Windows  
1]  
项的性特点密 明确保期限  
Python  
语言软件 灵活理  
增长的摄遥料势量的存  
5 - 7]  
8 - 9]  
法  
本  
存储数据  
,  
间 相对于数据的存储 数据的存储需大  
, , :  
量的成本包括盘  
1
 
这些数据的存储中显得  
数据存储是很少使访问的数据的  
,  
因为数据的使调用率并使  
, ,  
存储 数据便不需限期但出于业  
存储调用这些摄遥料  
: 2017 - 09 - 09。  
, ,  
主研领域  
: 3S  
,  
应用 施昆 高工 高工  
收稿日期  
6
: Python  
103  
廖小龙等  
遥感存储中的应用  
14 - 15]  
性目的 时  
os ;  
以使用 模以  
件遍历  
数据存储用于支持数据  
zipfle  
;
md5  
hashlib ;  
单  
使用  
程不计算机  
multiprocessing  
成  
有  
的高性存储体的标在本中  
CPU  
情况 以使用  
等  
主要考虑存储的体份的度  
10 - 13]  
221  
使用  
完整路径  
Python  
说  
Python  
遍历 径  
是一语言 对  
os. walk  
Python  
一个一个需压  
出现或许是一个  
zipfilepath,  
们存储到  
filelist  
:
的主要特点如下  
音  
, ,  
易学 不需精  
中  
222  
使用  
使名  
zipfilename zipfilepath replace  
; ; ,  
源 跨 支 持 包 括  
WindowsMac、  
压缩件  
zipfile ,  
块将文路径 块  
Linux  
; ,  
在内特点使得  
Python  
; Python  
性  
是一程  
10]  
在  
的基使用  
源  
语言  
, : . zip”  
路径路径 代  
DOS( Disk  
系统释  
bat,  
是一语言 它由  
: zipfilename = zipfilepath. replace ( rootpathdest-  
为  
Operating System)  
Windows  
者  
path) + '. zip';  
: zfile = zipfile. Zip-  
缩函为  
为  
以在不需  
File( zipfilename'w'zipfile. ZIP_DEFLATED) ,  
个  
forif  
, ,  
情况令  
模式  
2. 2. 3 md5  
使用  
常方便  
成  
hashlib  
件  
成  
update  
md5  
open  
用 方法  
2
数据存储备份  
, ,  
更新 最后开文本  
开文使用  
更新的数据可  
2. 2. 4  
使用  
21  
路  
(
)
述功能封装数的下  
1 , (  
示 首件进件  
map for  
, ,  
在使定  
省去  
) , , ,  
对应存储接  
pool. close( ) ,  
行  
pool. join( ) ,  
细  
行  
md5  
文  
对生计算应  
:
如下  
, ,  
最后理日便件  
pool = Pool( 2)  
理的管理  
#
CPU  
数量  
可设数量 为  
pool. map( zip_dirzipfilelist)  
pool. close( )  
#
现多进程  
pool. join( )  
225  
方式是到  
logging  
日志  
txt  
使起  
os. path. basename( __file__)  
件中 高的情况使用  
使用  
py  
(
了使路径和  
py  
别  
路  
日  
) ,  
使用  
logging. basicConfig  
使用  
logging. info( )  
记录通  
Python  
( )  
一个数  
常可以使用  
情况记录  
23  
数据存储备份中的用  
虽然导入 为  
Windows  
系统带的语言数据具  
1
图  
有的特点  
231  
在进成  
2. 2 Python  
数据存储备份中的用  
大量三方的命用  
md5  
调用  
Python  
的优量的导入  

全部评论(0)

暂无评论

上传资源 上传优质资源有赏金

  • 打赏
  • 30日榜单

推荐下载