# image的后缀可以是.raw、.spe、.lan等 # 代码里img对象,类似于rasterio库的dataset对象,可以用它来读取高光谱数据 img = spectral.envi.read_envi(file='my_data.hdr', image='my_data') 1. 2. 3. 4. 5. 加载数据 # 通过load函数获取数据 data = img.load()
进去后点击你的文件 Spectral Subset:可以选择提取具体哪些波段的数据 可自行选择 设置好后,点击确定 点击刚才绘制好的ROI1 选择memory 点击确定 可以看到左侧出现【memory1】 代表已经成功提取了 六、将提取的ROI数据保存 导出来 File—save as 中又很多保存的格式 这里我选择save as ascll 点击要保存的【memory1】...
一、基本操作读取高光谱数据文件 import spectral # 读取ENVI格式的高光谱图像 # image的后缀可以是.raw、.spe、.lan等 # 代码里img对象,类似于rasterio库的dataset对象,可以用它来读取高光谱数据 img = spectra…
ENVI 文件格式支持建立光谱库 (seeENVI 头文件), SPy 可以将读取它们并生成 SPySpectralLibrary对象。 为了方便创建自定义光谱库,EcostressDatabase提供了能够生成易用 ENVI 格式保存的光谱库的create_envi_spectral_library()方法。由于 ECOSTRESS 光谱库中的光谱有不同的波谱范围和波段数,调用create_envi_spectral_libr...
...需要的环境:spectral,ipython,matplotlib import os import scipy.io as sio from spectral import * dataset_path...但是这里却到了一个问题,由于使用的高光谱数据集是mat格式,Envi是不支持这种格式的。无奈只能先将mat格式转成了tif格式。 使用MatLab将mat格式转为tif,废话不多说,直接上代码。....
ENVI supports three different types of interleaving in its native format: band sequential (BSQ), band-interleaved by pixel (BIP), and band-interleaved by line (BIL). HypPy supports all three ENVI formats: BSQ, BIP, and BIL. In addition, HypPy can map an ENVI spectral library onto an ...
HypPy supports all three ENVI formats: BSQ, BIP, and BIL. In addition, HypPy can map an ENVI spectral library onto an image. The spectral library is then represented as aybyxbyzimage, in whichyis the number of spectra stored in the spectral library,xis always 1 (the spectral library is...
Use the buttons in the interface to draw polygons, save polygons as geo shape files, and analyze data.Incorporating HyPyRameter for Spectral Parameter CalculationSCAT provides a GUI interface for using the HyPyRameter library for spectral parameter calculation. Go to the HyPyRameter page to ...
The y-axis of the spectral profile displays the spectral values. Parameter Description points Required list of Point objects. show_values Optional boolean. Default is False. Set this parameter to True to display the values at each point in the line graph. plot_properties Optional dictionary. This...
一文详解高光谱数据python处理包spectral(SPy) 一、基本操作 读取高光谱数据文件 import spectral # 读取ENVI格式的高光谱图像 # image的后缀可以是.raw、.spe、.lan等 # 代码里img对象,类似于rasterio库的dataset对象,可以用它来读取高光谱数据 img = spectral.envi.read_envi(file='my_data.hdr', image='my_...