alex_bn_lee

导航

随笔分类 -  Python Study

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页

Study of Python.
【793】墨卡托坐标转WGS84
摘要:代码: #WebMercator-wgs84 def webMercator2wgs84(x,y): lon = x/20037508.34*180 lat = y/20037508.34*180 lat= 180/math.pi*(2*math.atan(math.exp(lat*math.pi/ 阅读全文

posted @ 2022-12-17 19:51 McDelfino 阅读(479) 评论(0) 推荐(0)

【791】读取 shapely MultiPolygon 数据
摘要:参考:How to extract Polygons from Multipolygons in Shapely? 代码: Polygons = list(Multipolygon.geoms) 直接用list的话会报错 阅读全文

posted @ 2022-12-16 18:38 McDelfino 阅读(80) 评论(0) 推荐(0)

【789】pandas 读取或者选择某几列
摘要:参考:pandas 读取或者选择某几列 示例 方法二总忘记双中括号,反而是方法三更好理解,也可以通过方法三来记住方法二 阅读全文

posted @ 2022-12-15 12:43 McDelfino 阅读(72) 评论(0) 推荐(0)

【786】folium修改marker显示图标
摘要:参考:Adding multiple Custom Icon in Folium 需要注意的是,如果多个点,每次都要创建一次,因此放在for循环内部! 代码: import folium m=folium.Map(location=[20, 0], zoom_start=2, #tiles='htt 阅读全文

posted @ 2022-12-10 19:00 McDelfino 阅读(1537) 评论(0) 推荐(0)

【783】关掉通过anaconda打开的jupyter notebook
摘要:参考:How to shutdown jupyter notebook app (server) without using ctrl-c? 下面是实际运行的两个版本的jupyter notebook 【1】http://localhost:8888/tree/Python_Task4/02_AOI 阅读全文

posted @ 2022-11-30 12:13 McDelfino 阅读(250) 评论(0) 推荐(0)

【781】shapely相关矢量元素的构建
摘要:参考:The Shapely User Manual Geometric Objects General Attributes and Methods Points LineStrings LinearRings Polygons Collections Collections of Points 阅读全文

posted @ 2022-11-29 09:17 McDelfino 阅读(28) 评论(0) 推荐(0)

【776】shapely通过文本字符串构建矢量(wkt)
摘要:参考:The Shapely User Manual wkt: well known text 矢量对象通过wkt可以生成文本 通过文本可以直接构建矢量对象 >>> from shapely import wkt >>> from shapely.geometry import Point >>> 阅读全文

posted @ 2022-11-26 13:16 McDelfino 阅读(150) 评论(0) 推荐(0)

【775】Python实现下载百分比,进度条
摘要:参考:Python:输出覆盖,输出进度百分比的实现 进度百分比的实现事实上是在无限循环中通过输出重复覆盖实现的,如上代码中 # 这里用"\r"使每次输出左对齐,覆盖上一次输出结果 print("\r完成%.2f %%" % (copy_ok *100 / old_file_num), end="") 阅读全文

posted @ 2022-11-26 07:57 McDelfino 阅读(311) 评论(0) 推荐(0)

【769】Python时间戳转换为北京时间
摘要:参考:Python时间戳转为北京时间 参考:Python 将时间戳转换为指定格式日期 阅读全文

posted @ 2022-11-16 21:02 McDelfino 阅读(191) 评论(0) 推荐(0)

【768】Python读取netCDF文件
摘要:参考:【179】IDL 读写 NetCDF 文件 参考:利用Python(netCDF4库)读取.nc文件(NetCDF气象数据文件)的基本操作 参考:Python | 把旧nc文件中的东西搬到新nc文件中 参考:气象数据处理——nc文件 用HDFView查看具体文件内容,然后通过netCDF4库进 阅读全文

posted @ 2022-11-14 09:35 McDelfino 阅读(133) 评论(0) 推荐(0)

【752】pandas相关问题
摘要:pandas中DataFrame重置设置索引 阅读全文

posted @ 2022-10-16 09:05 McDelfino 阅读(18) 评论(0) 推荐(0)

【751】GeoPandas相关材料
摘要:参考:GeoPandas官方快速入门文档(中文翻译版) 参考:geopandas,用python分析地理空间数据原来这么简单! 参考:GeoPandas 0.11.0 - 官方网站 阅读全文

posted @ 2022-10-15 20:19 McDelfino 阅读(41) 评论(0) 推荐(0)

【746】读取geopandas文件gpkg & 写入gpkg文件(python & R)
摘要:一、Python 参考:geopandas库的基础学习 参考:Reading and Writing Files 代码 - read: import pandas as pd import geopandas as gpd data=gpd.read_file('xxxxx.gpkg',layer= 阅读全文

posted @ 2022-10-03 19:31 McDelfino 阅读(1227) 评论(0) 推荐(0)

【738】latex实现bullet 及 文字加粗斜体
摘要:参考:latex文字加粗、斜体 参考:LaTeX中实心圆点列表的一点经验 bullets:黑色点 \begin{itemize} \item[$\bullet$] 文字内容 \end{itemize} circ:白色黑边点 \begin{itemize} \item[$\circ$] 文字内容 \e 阅读全文

posted @ 2022-08-26 10:02 McDelfino 阅读(1402) 评论(0) 推荐(0)

上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 31 下一页