该文被密码保护。 阅读全文
posted @ 2021-09-01 21:35
skypanxh
阅读(2)
评论(0)
推荐(0)
摘要:
# 插件安装 链接:<https://mp.weixin.qq.com/s/H0sPScKoB8USlT6SeMytAA> ``` conda install xeus-python=0.8.0 -c conda-forge jupyter labextension install @jupyter 阅读全文
posted @ 2021-09-01 14:44
skypanxh
阅读(145)
评论(0)
推荐(0)
摘要:
一.Anconda的环境配置 1. 使用清华镜像 conda config --add channels http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels http://mirror 阅读全文
posted @ 2021-09-01 14:43
skypanxh
阅读(89)
评论(0)
推荐(0)
摘要:
os常用 1.创建路径 if not os.path.exists(路径): os.makedirs(路径) 或者 def mkdir(path): # 引入模块 import os # 去除首位空格 path=path.strip() # 去除尾部 \ 符号 path=path.rstrip("\ 阅读全文
posted @ 2021-09-01 14:42
skypanxh
阅读(100)
评论(0)
推荐(0)
摘要:
pandas常用代码 1. 表格按照某相同列连接 import pandas as pd # df1的"PFAF_ID"列和df2的"ID"列连接,以df1为准 df = pd.merge(df1,df2,left_on='PFAF_ID',right_on='ID',how = "left") 2 阅读全文
posted @ 2021-09-01 14:41
skypanxh
阅读(194)
评论(0)
推荐(0)
摘要:
numpy常用代码 1.使用xarray导入数据并切片 import xarray as xr ar1r = xr.open_rasterio(r"路径").data[0,:,:] data[0,:,:],两个逗号的三个部分表示对三个维度进行切片 2.使用numpy按数字选择并赋值 outdata_ 阅读全文
posted @ 2021-09-01 14:40
skypanxh
阅读(154)
评论(0)
推荐(0)
摘要:
GDAL常用代码 1.导入数据 from osgeo import gdal import numpy as np def LoadData(filename): file = gdal.Open(filename) if file == None: print(filename + " can't 阅读全文
posted @ 2021-09-01 14:39
skypanxh
阅读(701)
评论(0)
推荐(0)

浙公网安备 33010602011771号