Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

code_for_receptor_txt_files.mcode_for_receptor_txt_files.mcode_for_receptor_txt_files.mThis document describes a possible way of creating <receptor>.txt files for RISC-kit's Bayesian network based decision support system. The approach can be extended to represent buffers around receptors, see Tutorial: Creating a <receptor>.txt for a latent receptor.

...

All three files need to use the same coordinate system.

Creating a

...

FEWSgrid.txt

Before importing the grid to QGIS, a unique gridID needs to be associated to every single model grid point of the hazard.nc files. Note that this means that all the hazard.nc files must have the same format, i.e. all storms must be run either with or without FEWS. It is important to do that associate the gridID beforehand, because the ordering of grid points may change while importing to QGIS. To do so the first section (%% Add a unique gridID to your FEWS grid and save as csv file to be processed in QGIS) of the matlab script below can be used, which creates a FEWSGrid.txt. This is independent of the grid being structured or unstructured. 

Remark: The name "FEWSgrid" may be confusing when working outside of FEWS. In general the grid of a hazard.nc file created through FEWS is not identical to the grid of a hazard.nc file created outside FEWS. If working outside FEWS, FEWSgrid.txt does not contain the grid created through FEWS, but the grid that is directly obtained from the hazard transformation model (XBeach, TELEMAC, etc). In other words this file has nothing to do with FEWS, despite its name.

code_for_receptor_txt_files_v3.m (for testing purposes gridID_ordering_of_BNAdaptor.nc may be useful)

Step-by-step QGIS tutorial

...