envi classic 将tif转换为dat详细操作
时间: 2024-05-20 14:18:18 浏览: 60
1. 打开Envi Classic软件,在主界面上选择“File”菜单,然后选择“Open Image File”选项。
2. 在打开的对话框中,浏览到要转换的.tif文件所在的文件夹,并选择该文件。点击“Open”按钮。
3. Envi将加载.tif文件,并在主界面上显示。
4. 选择“File”菜单,然后选择“Export”选项。
5. 在打开的对话框中,选择“ENVI DAT”格式,并指定输出文件的路径和名称。点击“Save”按钮。
6. Envi将开始转换.tif文件为.dat格式,并将结果输出到指定的文件路径中。
7. 转换完成后,可以在文件路径中找到新生成的.dat文件。
相关问题
使用envi具体怎么操作将tif格式转换为envi分类图像格式
要将tif格式转换为ENVI分类图像格式,可以按照以下步骤进行操作:
1.打开ENVI软件,在主界面上选择“File”菜单下的“Open Image File”选项,选择要转换的tif格式图像文件。
2.在弹出的“Open Image File”对话框中,选择要转换的tif格式图像文件,并点击“Open”按钮。
3.在ENVI中打开tif格式图像文件后,选择“Classification”菜单下的“Supervised Classification”选项。
4.在弹出的“Supervised Classification”对话框中,选择要进行分类的波段,并选择分类算法和统计方法。
5.在选择完分类算法和统计方法后,点击“Classify”按钮,开始进行分类操作。
6.分类完成后,选择“File”菜单下的“Save As”选项,选择保存的文件格式为ENVI分类图像格式,并设置保存路径和文件名。
7.最后点击“Save”按钮,将分类后的图像保存为ENVI分类图像格式。
以上是将tif格式转换为ENVI分类图像格式的基本步骤,具体操作可能会因为ENVI版本的不同而有所区别。
使用envi将tif中的nan转换成0
可以使用以下代码将tif中的nan转换成0:
```python
import rasterio
import numpy as np
with rasterio.open('input.tif') as src:
data = src.read()
data[np.isnan(data)] = 0
with rasterio.open('output.tif', 'w', **src.profile) as dst:
dst.write(data)
```
其中,`input.tif`是需要转换的tif文件,`output.tif`是转换后的tif文件。这段代码使用了rasterio库来读取和写入tif文件,使用numpy库来将nan转换成0。
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)