clipping reagional figures

極投影座標などで,ある領域だけを描画したいということはよくあるのに,basemapやcartopyの地図投影を使うだけではそれができない.より正確には,データはデータがある領域だけ描画されるけれど,地形が四角枠の中に納まるまで描かれてしまう.なんとかならないかと調べると,cartopyを使えば https://github.com/SciTools/cartopy/issues/697 に書かれている方法で緯度経度範囲でクリッピングできる.簡単な例を作って(NPac_Clipping_simple).また,いろいろな地図投影でやってみた(NPac_Clipping).論文で使いそうなのは極投影だけだな.

We often want to draw regional figures on stereographic projection, etc., but it seems that standard projections of basemap and cartopy do not support. If we use data in limited area, then data are shown but coastlines are drawn outside of area where data exist until filling rectangle figure area. I searched methods and found one using cartopy at https://github.com/SciTools/cartopy/issues/697 for clipping longitude-latitude range. I made a simple example ( (NPac_Clipping_simple). Also, I checked the clipping with various map projections (NPac_Clipping). Only polar stereographic will be useful for figures suitable for journal papers.