官术网_书友最值得收藏!

  • QGIS 2 Cookbook
  • Alex Mandel Víctor Olaya Ferrero Anita Graser Alexander Bruy
  • 291字
  • 2021-07-16 11:12:36

Opening a NetCDF file

The NetCDF data is a data format, which is designed to be used with array-oriented scientific data, and it is frequently used for climate or ocean data, among others. This recipe shows you how to open a NetCDF file in QGIS.

How to do it…

NetCDF files are raster files, and they can be opened using the Add raster layer menu. Select NGMT NetCDF Grid for CDF as the file format in the file selection dialog that you will see, and select the rx5dayETCCDI_yr_MIROC5_rcp45_r2i1p1_2006-2100.nc file from the example dataset. Click on OK.

How it works…

The proposed NetCDF file contains a single variable, which is opened as a regular raster layer.

There's more…

A NetCDF file can contain contain multiple layers. In this case, QGIS will prompt you to select the one that you want to add from the ones contained in the specified file.

When only one layer is available, it is opened directly, as in the previously described example.

The NetCDF Browser plugin

Another way of opening NetCDF files is using the NetCDF Browser plugin. Select the Manage and install plugins... menu to open the plugin manager. Go to the Not installed section and type netcdf in the search field to filter the list of available plugins. Select the NetCDF Browser plugin and click on Install plugin to install it. Close the plugin manager.

The plugin is now installed, and you can open it by selecting NetCDF Browser in the Plugins menu:

The NetCDF Browser plugin

Select the NetCDF file in the upper field. The other fields will be updated with the content of the selected file. Select a layer from the available ones and click on Add to add the layer to your QGIS project.

主站蜘蛛池模板: 华安县| 四会市| 特克斯县| 石狮市| 瑞丽市| 南昌市| 宜宾市| 望江县| 玉溪市| 朝阳区| 南靖县| 南涧| 万宁市| 图木舒克市| 赤峰市| 乐陵市| 双流县| 卓尼县| 肥西县| 沁水县| 呼图壁县| 靖远县| 区。| 呼图壁县| 兴宁市| 泰来县| 盐亭县| 焦作市| 浑源县| 搜索| 渝北区| 辽阳县| 改则县| 当涂县| 鄯善县| 万年县| 彝良县| 德惠市| 临泽县| 通化市| 资溪县|