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

  • 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.

主站蜘蛛池模板: 五家渠市| 武山县| 手游| 洛阳市| 井冈山市| 贺州市| 宝清县| 平度市| 贺兰县| 隆尧县| 定州市| 英德市| 望都县| 北碚区| 龙里县| 德阳市| 蓬溪县| 临泉县| 垫江县| 丰台区| 德安县| 达日县| 北安市| 芜湖县| 久治县| 峨眉山市| 安康市| 察隅县| 阿克陶县| 宁波市| 金川县| 临泉县| 云林县| 沈阳市| 宣威市| 金阳县| 龙川县| 遂溪县| 社会| 十堰市| 年辖:市辖区|