#Python

Geojson provides several advantages compared to shapefiles:

  1. lightweight, text-based, and easily readable format that can be easily shared, transmitted and used on the web.

  2. It supports a wider range of data types compared to shapefile and can be used across multiple platforms and programming languages.

  3. Additionally, geojson files have smaller file sizes, making them easier to store and process. These benefits make geojson a popular choice for geographic information data storage and exchange.

Note: this post was arranged by ChatGPT

mehr

The National Oceanic and Atmospheric Administration (NOAA) Integrated Surface Database (ISD) provides one of the richest sources of historical weather data consisting of hourly and synpoptic observation. This blog will introuce the simple way to retrieve and process the raw data into Python dataframe.

mehr

在国外新购置了一台PC,性能比从国内带来的Mac笔记本要好,也可以继续玩Steam上的游戏。决定将个人学习工作环境迁移至Windows系统。在此记录相关配置步骤,以便未来之需。

mehr

Xarray provides pandas-level convenience for working with ultidimensional data. Xarray has two fundamental data structure: a DataArray, which holds a single multi-dimensional variable and its coordinates;
a Dataset, which holds multiple variables that potentially share the same coordinates.

Moreover, a DataArray has four attributes:

  • values: a numpy.ndarray holding the array’s values (矩阵数值,例如地表温度具体数值)
  • dims: dimension names for each axis (e.g., (‘x’, ‘y’, ‘z’)) (维度名称,如经度、纬度、垂直分层、时间等)
  • coords: a dict-like container of arrays (coordinates) that label each * point (e.g., 1-dimensional arrays of numbers, datetime objects or strings) (各维度坐标体系,如时间序列)
  • attrs: an OrderedDict to hold arbitrary metadata (attributes) (对各属性的描述)

mehr

提要:定义嵌套网格是运行WRF模型的重要工作。本文基于Python 3.7,在Salem工具包基础上加以改进,结合Cartopy对中国国界线进行替换,同时实现修改默认底图。

mehr

提要:Altair是强大的可视化库,其基于Vega-lite,可快速生成简洁、美观、可互动的统计图形。本文介绍个人相关学习经历,具体包括:(1)数据载入与基本图形绘制; (2)基于web端呈现

mehr

部分互联网资料仅提供在线预览,无法直接下载。若预览系统设计欠佳,或限于网速内容加载过慢,都会对阅读体验造成严重影响。在此分别以国家自然基金研究报告和学位论文为例,介绍两种不同的下载合成方法,供有需要的老师同学们参考。欢迎大家提出宝贵意见。

mehr

In this post, I address an common problem in geoscience research: how to arrange the original geodata into pre-defined grid system. Sometimes, we need to unify the resolution of various dataset or summary the scatter data to raster one.

Specifically, this brief tutorial will look at two different original data, and allow you to creat gridded data in python. For better illustration, two practial cases with detailed code are shown:

  • Creating an emission inventory based on the emissions from point sources (e.g., power plants, cement plants)
  • Remapping a population density map to a coarser resolution

mehr

When you’ve got the all the files from WRF simulations, you might want to merge them without the spin-up frames (to reach a balanced state with the boundary conditions, i.e., 12 hours for a 5-day simulation). Meanwhile, the variables/grids which are not focused on can be ignore. Therefore, a general workflow in pythonic way is presented. I will also rewritten this function as my first Python Package. Please note the updates on my website.

mehr

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×