自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 资源 (6)
  • 收藏
  • 关注

原创 Python环境下安装GDAL

1.在https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal下载GDAL安装包,拷贝至相应的环境中,打开shell 输入以下代码安装GDALpip install GDAL‑2.3.2‑cp35‑cp35m‑win_amd64.whl2.在Anaconda Prompt中输入:activate tensorflowconda instal...

2018-11-28 14:26:18 2509 1

原创 气象数据Grib格式解析的Python代码和Matlab代码

       以.grb/.grb1/.grb2为扩展名的都是气象数据,气象数据中可以存储多个内容,如云量、雪深、气压、风速等内容,或者具有时间序列的云量等。这些文件不可以直接打开成图片,若想直观地查看grib数据,需要读取文件并将其解析出来,保存成tif或者png格式       这几天分别用matlab代码和python代码解析成tif/png格式的图片,并将其插值成任意需要的分辨率。ma...

2018-11-24 17:14:09 8690 8

原创 【GDAL学习】更多栅格数据处理函数——滑动窗口与过滤器

例如设计一个3 x 3的滑动窗口,写算法执行就有两种方式:1.pixel by piexl每个进行逐像素运算,效率太低,速度慢2.使用 slice切片形式循环,效率高,速度快 两个作业就是分别用pixel和slice方式完成高通滤波操作进行对比1.Assignment 6aUse a 3x3 high pass filter to detect edges in ban...

2018-11-21 12:44:57 1360

原创 【GDAL学习】地图代数与栅格数据的写入

1.Assignment 5a:Create an NDVI image Read in data from aster.img Create an NDVI image Write out NDVI to new file Can do entire image at once or block by block  Don't forget to calculate statist...

2018-11-20 22:40:46 694

原创 【GDAL学习】用GDAL读取栅格数据

1.根据坐标读取遥感影像的单个像素值# week 4: get pixel values at a set of coordinates by reading in one pixel at a timeimport os, sys, timefrom osgeo import gdalfrom gdalconst import *# start timingstartTime ...

2018-11-20 10:47:44 6841 1

原创 【GDAL学习】过滤器,简单的空间分析,函数和模块

1.属性过滤器>>>import ogr,os>>>os.chdir('E:/data/GDAL/ospy_data3')>>>driver=ogr.GetDriverByName('ESRI Shapefile')>>>ds=driver.Open('sites.shp',0)>>>l

2018-11-18 11:13:43 1899

原创 【GDAL学习】几何形状geometry与投影projection

1.创建点状要素:import ogrimport osos.chdir('E:/data/GDAL/ospy_data2')driver = ogr.GetDriverByName('ESRI Shapefile')if os.path.exists('out.shp'): driver.DeleteDataSource('out.shp')ds = driver.Cr...

2018-11-17 18:44:06 1304

原创 【GDAL学习】用OGR读写矢量数据

学习资料:犹他州立大学:https://www.gis.usu.edu/~chrisg/python/2009/lectures/ospy_slides1.pdf 开放地理空间实验室 http://www.osgeo.cn/python_gdal_utah_tutorial/ch02.html GDAL官方网站:https://www.gdal.org/ # Reading and...

2018-11-16 20:48:20 1907

原创 Python的RasterIO库的学习

源教程:https://rasterio.readthedocs.io/en/latest/quickstart.html1.使用RasterIO读取栅格数据# 使用RasterIO读取栅格数据import rasteriowith rasterio.open('E:/data/L8_BJ_NRG.tif') as ds: print('数据信息:') print(...

2018-11-15 16:36:29 4501

原创 使用Anaconda安装RasterIO库

RasterIO是基于GDAL的空间栅格数据库(Rasterio reads and writes geospatial raster data.)贴上RasterIO网址:https://rasterio.readthedocs.io/en/latest/ Anaconda安装教程:参考:https://github.com/conda-forge/rasterio-feed...

2018-11-15 15:59:05 3291

原创 win10环境下Python安装skimage模块

个人Python环境为Anaconda自带python3.6,使用Anaconda Prompt安装时出错,效果如下,不能安装skimage库:因此,安装skimage模块需要另一种方式。1.下载安装包在https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy网站上下载numpy、scipy和scikit-image库,个人python3....

2018-11-14 16:13:57 4629 2

GDAL学习 week6 作业数据

GDAL: More raster processing 关联博客资料:https://blog.csdn.net/qq_37935516/article/details/84317032

2018-11-21

GDAL学习 week5 作业数据

GDAL: Map algebra and writing raster data 关联博客资料:https://blog.csdn.net/qq_37935516/article/details/84311231

2018-11-20

GDAL学习 week4 作业数据

GDAL: Reading raster data with GDAL 关联博客资料:https://blog.csdn.net/qq_37935516/article/details/84233762

2018-11-20

GDAL学习 week3 作业数据

GDAL:Filters & analysis; Function & modules 关联博客资料:https://blog.csdn.net/qq_37935516/article/details/84192289

2018-11-18

GDAL学习 week2 作业数据

GDAL:Creating geometries and handling projections 关联博客资料:https://blog.csdn.net/qq_37935516/article/details/84190587

2018-11-17

GDAL学习 week1 作业数据

GDAL:Reading and writing vector data with OGR 关联博客资料:https://mp.csdn.net/postedit/84145603

2018-11-17

空空如也

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

TA关注的人

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