MCPcopy Create free account

hub / github.com/ZhaJiMan/frykit / functions

Functions269 in github.com/ZhaJiMan/frykit

↓ 1 callersFunction_get_geoaxes_boundary
获取 data 坐标系里的 GeoAxes.patch 对应的多边形
src/frykit/plot/api.py:859
↓ 1 callersFunction_get_max_workers
(n_jobs: int)
src/frykit/plot/utils.py:151
↓ 1 callersFunction_images_to_array2d
(images: Any)
src/frykit/image.py:80
↓ 1 callersMethod_init
(self)
src/frykit/plot/artist.py:248
↓ 1 callersMethod_init
(self)
src/frykit/plot/artist.py:325
↓ 1 callersMethod_init
(self)
src/frykit/plot/artist.py:536
↓ 1 callersMethod_init
(self)
src/frykit/plot/artist.py:624
↓ 1 callersMethod_init
(self)
src/frykit/plot/artist.py:686
↓ 1 callersFunction_line_string_codes
(n: int)
src/frykit/plot/utils.py:43
↓ 1 callersFunction_resolve_strict_clip
(strict_clip: bool | None)
src/frykit/plot/api.py:851
↓ 1 callersFunction_set_axes_ticks
设置 PlateCarree 投影的普通 Axes 的刻度
src/frykit/plot/api.py:1279
↓ 1 callersFunction_set_complex_geoaxes_ticks
设置非 PlateCarree 和 Mercator 投影的 GeoAxes 的刻度
src/frykit/plot/api.py:1349
↓ 1 callersFunction_set_simple_geoaxes_ticks
设置 PlateCarree 和 Mercator 投影的 GeoAxes 的刻度
src/frykit/plot/api.py:1310
↓ 1 callersFunction_validate_bool
(name: str, value: Any)
src/frykit/conf.py:24
↓ 1 callersFunction_validate_data_source
(value: Any)
src/frykit/conf.py:17
↓ 1 callersFunctionadd_cn_line
在 Axes 上添加中国的修饰线段 Parameters ---------- ax : Axes 目标 Axes name : {'省界', '特别行政区界', '九段线', '未定国界'} or iterable object of str,
src/frykit/plot/api.py:423
↓ 1 callersFunctionadd_cn_province
在 Axes 上添加中国省界 Parameters ---------- ax : Axes 目标 Axes province : NameOrAdcode or iterable object of NameOrAdcode or None, d
src/frykit/plot/api.py:220
↓ 1 callersFunctionadd_texts
在 Axes 上添加一组文本 Parameters ---------- ax : Axes 目标Axes x, y : (n,) array_like of float 文本的横纵坐标 s : (n,) array_li
src/frykit/plot/api.py:591
↓ 1 callersFunctionarange2
尽可能包含 stop 的 np.arange
src/frykit/calc.py:496
↓ 1 callersMethodassert_field
断言名字是否属于配置字段
src/frykit/conf.py:59
↓ 1 callersFunctionbinning2d
对散点数据做二维分箱 内部通过 pd.cut 实现。当 bins 单调递减时,会先排成升序再调用 pd.cut,最后倒转结果顺序。 Parameters x, y : (n1, n2, ...) array_like 数据点的坐标 values
src/frykit/calc.py:540
↓ 1 callersFunctionchdir_context
临时切换工作目录的上下文管理器 See Also -------- contextlib.chdir
src/frykit/utils.py:63
↓ 1 callersFunctiondd_to_dm
十进制度数转为度分
src/frykit/calc.py:181
↓ 1 callersFunctiondel_dir
删除目录
src/frykit/utils.py:48
↓ 1 callersFunctiondeprecator
( deprecated: Callable[P, T], *, alternative: str | Callable[..., Any] | Iterable[str | Ca
src/frykit/utils.py:222
↓ 1 callersFunctionget_cn_line
(name: LineName = "九段线")
src/frykit/shp/data.py:708
↓ 1 callersFunctionget_countries
获取所有国界的多边形
src/frykit/shp/data.py:738
↓ 1 callersFunctionget_package_version
获取包的版本号
src/frykit/utils.py:79
↓ 1 callersFunctioninplace_transform
(coords: NDArray[np.float64])
src/frykit/plot/utils.py:219
↓ 1 callersFunctioninterp_nearest_2d
可以限制搜索半径的二维最近邻插值 相比 interp_nearest_dd,输入的形状更灵活,方便处理卫星的非规则网格数据。 Parameters ---------- x, y : (n1, n2, ...) array_like 数据点的坐标
src/frykit/calc.py:438
↓ 1 callersFunctionis_finite
判断数组是否不含 nan 或 inf
src/frykit/calc.py:665
↓ 1 callersFunctionlon_to_180
经度从 [0, 360] 范围换算到 (-180, 180],180 会映射到 180。默认使用角度。
src/frykit/calc.py:57
↓ 1 callersFunctionmain
()
script/measure_time.py:69
↓ 1 callersFunctionmake_ellipse
生成椭圆的 xy 坐标序列 Parameters ---------- x, y : float, default 0 中心的 xy 坐标。默认为 0。 a : float, default 1 半长轴长度。默认为 1。
src/frykit/calc.py:233
↓ 1 callersFunctionmake_transformer
创建 pyproj 的 Transformer 对象
src/frykit/plot/utils.py:146
↓ 1 callersFunctionorient_polygon
(polygon: shapely.Polygon, ccw: bool = True)
src/frykit/shp/utils.py:60
↓ 1 callersFunctionpath_to_polygon
将 Matplotlib 的 Path 对象转为多边形对象 - 空 Path 对应空多边形 - 如果 Path 对应 Polygon,要求内外环的绕行方向相反 - 如果 Path 对应 MultiPolygon,要求各成员的内外环绕行规则相同 - 坐标不满足要求时可
src/frykit/plot/utils.py:106
↓ 1 callersFunctionplot_centered_discrete_cbar
画出 CenteredBoundaryNorm 的效果
example/colorbar.py:34
↓ 1 callersFunctionplot_city_map
绘制市界地图
example/label_names.py:35
↓ 1 callersFunctionplot_district_map
绘制县界地图
example/label_names.py:48
↓ 1 callersFunctionplot_province_map
绘制省界地图
example/label_names.py:22
↓ 1 callersFunctionplot_qualitative_cbar
画出 make_qualitative_palette 的效果
example/colorbar.py:18
↓ 1 callersFunctionproject_geometry
(geometry: GeometryT, crs_from: CRS, crs_to: CRS)
src/frykit/plot/utils.py:166
↓ 1 callersFunctionset_map_ticks
设置地图的范围和刻度 当 ax 是普通 Axes 时,认为其投影是 PlateCarree。 当 ax 是 GeoAxes 时,如果 ax 的边框不是矩形或跨越了日界线,可能产生错误的结果。 此时建议换用 GeoAxes.gridlines。 Parameters
src/frykit/plot/api.py:1491
↓ 1 callersFunctiont_to_az
x 轴夹角转为方位角。方位角范围 [0, 360),90 会映射到 0。默认使用弧度。
src/frykit/calc.py:109
Method__call__
(self, value: Any, clip: bool | None = None)
src/frykit/plot/api.py:2166
Method__enter__
(self)
src/frykit/shp/binary.py:284
Method__eq__
(self, other: Any)
src/frykit/plot/artist.py:83
Method__exit__
(self, *exc: Any)
src/frykit/shp/binary.py:287
Method__getitem__
(self, key: str)
src/frykit/plot/api.py:2250
Method__hash__
(self)
src/frykit/plot/artist.py:89
Method__init__
( self, boundaries: ArrayLike, vcenter: float = 0, clip: bool = False )
src/frykit/plot/api.py:2156
Method__init__
(self, geometry: BaseGeometry)
src/frykit/plot/artist.py:80
Method__init__
( self, ax: Axes, geometries: Sequence[BaseGeometry] | NDArray[np.object_], cr
src/frykit/plot/artist.py:202
Method__init__
( self, x: ArrayLike, y: ArrayLike, s: ArrayLike, skip_outside: bool |
src/frykit/plot/artist.py:277
Method__init__
( self, Q: Quiver, U: float, units: str = "m/s", width: float = 0.15,
src/frykit/plot/artist.py:343
Method__init__
( self, x: float, y: float, angle: float | None = None, size: float =
src/frykit/plot/artist.py:454
Method__init__
( self, ax: Axes, x: float, y: float, length: float = 1000, un
src/frykit/plot/artist.py:581
Method__init__
(self, *args, **kwargs)
src/frykit/plot/artist.py:786
Method__init__
(self)
src/frykit/shp/binary.py:47
Method__init__
(self, filepath: StrOrBytesPath)
src/frykit/shp/binary.py:270
Method__post_init__
(self)
src/frykit/conf.py:54
Function_cached_geometries_to_paths
( geometries: Iterable[BaseGeometry] | NDArray[np.object_], )
src/frykit/plot/artist.py:121
Function_encode_geometry
(geometry: BaseGeometry)
src/frykit/shp/binary.py:172
Method_set_transform
(self)
src/frykit/plot/artist.py:436
Function_with_lock
(func: Callable[P, T])
src/frykit/plot/artist.py:67
Functionadd_box
在 Axes 上添加一个方框 Parameters ---------- ax : Axes 目标 Axes extents : (4,) tuple of float 方框范围 (x0, x1, y0, y1) step
src/frykit/plot/api.py:1836
Functionadd_cn_border
在 Axes 上添加中国国界 Parameters ---------- ax : Axes 目标 Axes fast_transform : bool or None, default None 是否直接用 pyproj 做坐标变
src/frykit/plot/api.py:379
Functionadd_cn_city
在 Axes 上添加中国市界 Parameters ---------- ax : Axes 目标 Axes city : NameOrAdcode or iterable object of NameOrAdcode or None, defau
src/frykit/plot/api.py:268
Functionadd_cn_district
在 Axes 上添加中国县界 Parameters ---------- ax : Axes 目标 Axes district : NameOrAdcode or iterable object of NameOrAdcode or None, d
src/frykit/plot/api.py:321
Functionadd_compass
在 Axes 上添加指北针 Parameters ---------- ax : Axes 目标 Axes x, y : float 指北针的横纵坐标。基于 Axes 坐标系。 angle : float or None,
src/frykit/plot/api.py:1705
Functionadd_countries
在 Axes 上添加所有国家的国界 Parameters ---------- ax : Axes 目标 Axes fast_transform : bool or None, default None 是否直接用 pyproj 做
src/frykit/plot/api.py:467
Functionadd_frame
在 Axes 上添加 GMT 风格的边框 需要先设置好 Axes 的刻度,再调用该函数。 Parameters ---------- ax : Axes 目标 Axes。仅支持 PlateCarree 和 Mercator 投影的 GeoAxes。
src/frykit/plot/api.py:1801
Functionadd_land
在 Axes 上添加陆地 注意全球数据可能在地图边界出现错误的结果 Parameters ---------- ax : Axes 目标 Axes fast_transform : bool or None, default None
src/frykit/plot/api.py:507
Functionadd_mini_axes
在 Axes 的角落添加一个新的 Axes 并返回 Parameters ---------- ax : Axes 原有的 Axes shrink : float, default 0.4 缩小倍数。默认为 0.4。shrink=1
src/frykit/plot/api.py:1879
Functionadd_ocean
在 Axes 上添加海洋 注意全球数据可能在地图边界出现错误的结果 Parameters ---------- ax : Axes 目标 Axes fast_transform : bool or None, default None
src/frykit/plot/api.py:549
Functionadd_quiver_legend
在 Axes 的角落添加 Quiver 的图例(带矩形背景的 QuiverKey) 箭头下方有形如 '{U} {units}' 的标签。 Parameters ---------- Q : Quiver Axes.quiver 返回的对象
src/frykit/plot/api.py:1642
Functionadd_scale_bar
在 Axes 上添加地图比例尺 当 ax 是普通 Axes 时,认为其投影是 PlateCarree。 会根据 ax 的投影计算比例尺大小。 Parameters ---------- ax : Axes 目标 Axes x, y
src/frykit/plot/api.py:1767
Functionadd_side_axes
在 Axes 旁边新添一个等高或等宽的 Axes 并返回该对象 Parameters ---------- ax : Axes or array_like of Axes 原有的 Axes。可以是一组 Axes 构成的数组。 width : flo
src/frykit/plot/api.py:1982
Functionaz_to_t
方位角转为 x 轴夹角。夹角范围 (-180, 180],270 会映射到 180。默认使用弧度。
src/frykit/calc.py:118
Functionclear_data_cache
清除数据缓存
src/frykit/shp/data.py:794
Functionclear_path_cache
清理几何对象到 Path 的缓存
src/frykit/plot/artist.py:101
Functionclip_by_cn_border
用中国国界裁剪 Artist Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。 ax : Axes or None, de
src/frykit/plot/api.py:1151
Functionclip_by_cn_city
用中国市界裁剪 Artist Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。 city : NameOrAdcode o
src/frykit/plot/api.py:1055
Functionclip_by_cn_district
用中国县界裁剪 Artist Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。 district : NameOrAdco
src/frykit/plot/api.py:1103
Functionclip_by_cn_province
用中国省界裁剪 Artist Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。 province : NameOrAdcod
src/frykit/plot/api.py:1008
Functionclip_by_land
用陆地边界裁剪 Artist 注意全球数据可能在地图边界出现错误的结果 Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。
src/frykit/plot/api.py:1195
Functionclip_by_ocean
用海洋边界裁剪 Artist 注意全球数据可能在地图边界出现错误的结果 Parameters ---------- artist: Artist or iterable of Artist 被裁剪的 Artist 对象。可以是多个 Artist。
src/frykit/plot/api.py:1237
Functioncompare_images
通过求两张图片的绝对差值比较前后差异 要求两张图片大小和模式相同。 Parameters ---------- image1 : ImageInput 第一张图片 image2 : ImageInput 第二张图片
src/frykit/image.py:200
Functioncompare_sets
将新旧两组值转换为集合,比较得到新增的元素和缺失的元素。
src/frykit/utils.py:107
Functioncount_consecutive_trues
统计布尔序列里真值连续出现的次数,返回相同长度的序列。
src/frykit/calc.py:348
Functioncprofiler
cProfile 的装饰器。保存结果到指定路径。
src/frykit/prof.py:14
Functiondd_to_dms
十进制度数转为度分秒
src/frykit/calc.py:194
Functiondecode_binary
将二进制解码成一组几何对象
src/frykit/shp/binary.py:262
Functiondecorator
(deprecated: Callable[P, T])
src/frykit/utils.py:277
Functiondecorator
(func: Callable[P, T])
src/frykit/prof.py:17
Functiondel_file
删除文件
src/frykit/utils.py:34
Functiondm_to_dd
度分转为十进制度数
src/frykit/calc.py:169
Functiondms_to_dd
度分秒转为十进制度数
src/frykit/calc.py:175
Methoddraw
(self, renderer: RendererBase)
src/frykit/plot/artist.py:268
← previousnext →101–200 of 269, ranked by callers