数据可视化应用绘制气象地图(附Python代码)
Posted 文宇肃然
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了数据可视化应用绘制气象地图(附Python代码)相关的知识,希望对你有一定的参考价值。
1.绘制兰勃脱投影的中国区域(包含南海子图):
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from copy import copy
from cartopy.mpl.gridliner import LATITUDE_FORMATTER, LONGITUDE_FORMATTER
import shapely.geometry as sgeom
def find_side(ls, side):
"""
Given a shapely LineString which is assumed to be rectangular, return the
line corresponding to a given side of the rectangle.
"""
minx, miny, maxx, maxy = ls.bounds
points = \'left\': [(minx, miny), (minx, maxy)],
\'right\': [(maxx, miny), (maxx, maxy)],
\'bottom\': [(minx, miny), (maxx, miny)],
\'top\': [(minx, max
以上是关于数据可视化应用绘制气象地图(附Python代码)的主要内容,如果未能解决你的问题,请参考以下文章