Actions

GRIDCONVERT: Difference between revisions

From BAWiki

imported>Lang Guenther
(version July 2012 - plot subgrid)
mNo edit summary
 
(15 intermediate revisions by 5 users not shown)
Line 2: Line 2:
|name_de=GRIDCONVERT
|name_de=GRIDCONVERT
|name=GRIDCONVERT
|name=GRIDCONVERT
|version=July 2012
|version=April 2019
|version_descr=July 2012
|version_descr=September 2022
|catchwords=
|catchwords=
conversion of computational grids<br />
conversion of computational grids<br />
read and write computational grids in different file formats
read and write computational grids in different file formats<br />
 
Acknowledgment: ''This project took advantage of netCDF software developed by UCAR/Unidata ([http://www.unidata.ucar.edu/software/netcdf/ www.unidata.ucar.edu/software/netcdf/]).''


|shortdescription=
|shortdescription=
Program GRIRDCONVERT can be used to convert computational grids for different mathematical methods:
The program GRIDCONVERT can be used to convert computational grids for different mathematical methods:


* between different file formats but identical structure of the computational grid,
* between different file formats but identical structure of the computational grid,
* between different grid types and different file formats,
* between different grid types and different file formats,
* refinement (factor 4) of an UNTRIM grid, as well as
* refinement (factor 4) of an UNTRIM grid, as well as
* flattening of all sub grid scale bathymetry variations within all grid cells and along all edges.
* flattening of all sub grid scale bathymetry variations within all grid cells and along all edges and
* conversion of constructions in insel.dat files.
 
In addition to that also the following functionality is available:
* compute some statistical data for a grid,
* find some differences between two grids, and
* compare initial bathymetry used with [[UNTRIM]] between cases one-grid simulation versus two-grid simulation.


Due to some specific properties of computational grids for mathematical methods the number of possible conversions remains naturally very limited. The grid will not be optimized automatically with respect to the specific requirements of the different mathematical models.  
Due to some specific properties of computational grids for mathematical methods the number of possible conversions remains naturally very limited. The grid will not be optimized automatically with respect to the specific requirements of the different mathematical models.  
The program is '''also available for WINDOWS platform'''.
|inputfiles=
|inputfiles=
# '''computational grid (input formats)'''
# '''computational grid (input formats)'''
Line 27: Line 38:
::* [[UTRSUB_GRID.DAT|utrsub_grid.dat]],
::* [[UTRSUB_GRID.DAT|utrsub_grid.dat]],
::* [[PLTSUB_GRID.UPI|pltsub_grid.upi]],
::* [[PLTSUB_GRID.UPI|pltsub_grid.upi]],
::* [[LOCATION_GRID.DAT|location_grid.dat]], and
::* [[LOCATION_GRID.DAT|location_grid.dat]],
::* [[PROFIL05.BIN|profil05.bin]].
::* [[PROFIL05.BIN|profil05.bin]] and
::* [[INSEL.DAT|insel.dat]] (which does not contain a computational grid but structures as groynes or islands).
# '''(optional) global metadata'''
# '''(optional) global metadata'''
::* [[NC_META.DAT|nc_meta.dat]].
::* [[NC_META.DAT|nc_meta.dat]].
Line 38: Line 50:
::* [[UNTRIM_GRID.DAT|untrim_grid.dat]],
::* [[UNTRIM_GRID.DAT|untrim_grid.dat]],
::* [[UTRSUB_GRID.DAT|utrsub_grid.dat]],
::* [[UTRSUB_GRID.DAT|utrsub_grid.dat]],
::* [[PLTSUB_GRID.UPI|pltsub_grid.upi]], and
::* [[PLTSUB_GRID.UPI|pltsub_grid.upi]],  
::* [[CF-NETCDF.NC|cf-netcdf.nc]] (actual only [[GITTER05.DAT and GITTER05.BIN|gitter05.dat/bin]], [[UNTRIM_GRID.DAT|untrim_grid.dat]], [[UTRSUB_GRID.DAT|utrsub_grid.dat]], [[PLTSUB_GRID.UPI|pltsub_grid.upi]], [[LOCATION_GRID.DAT|location_grid.dat]] and [[PROFIL05.BIN|profil05.bin]]).   
::* [[INSEL.DAT|insel.dat]] and
::* [[CF-NETCDF.NC|cf-netcdf.nc]] (actual only [[GITTER05.DAT and GITTER05.BIN|gitter05.dat/bin]], [[INSEL.DAT|insel.dat]], [[UNTRIM_GRID.DAT|untrim_grid.dat]], [[UTRSUB_GRID.DAT|utrsub_grid.dat]], [[PLTSUB_GRID.UPI|pltsub_grid.upi]], [[LOCATION_GRID.DAT|location_grid.dat]] and [[PROFIL05.BIN|profil05.bin]]).   


Remark: In case the files [[UTRSUB_GRID.DAT|utrsub_grid.dat]] and [[PLTSUB_GRID.UPI|pltsub_grid.upi]] are both present in the working directory, all data related to the so called plot subgrid will be transferred to the NetCDF file. If the latter file is missing, no data related to the plot subgrid will be stored in the NetCDF file.
Remark: In case the files [[UTRSUB_GRID.DAT|utrsub_grid.dat]] and [[PLTSUB_GRID.UPI|pltsub_grid.upi]] are both present in the working directory, all data related to the so called plot subgrid will be transferred to the NetCDF file. If the latter file is missing, no data related to the plot subgrid will be stored in the NetCDF file.


|methodology=The computational grid informations are converted using various methods from the software package '''H_GRID''' as well as written to file in different formats.
|methodology=The computational grid informations are converted using various methods from the software package '''H_GRID''' as well as written to file in different formats.
Files with informations concerning locations are converted by the software package called '''L_GRID'''.
Files with information concerning locations are converted by the software package called '''L_GRID'''.
Software package '''P_GRID''' converts files with profile grid data.
The software package '''P_GRID''' converts files with profile grid data.:<br />
The software package '''IO_INSEL''' converts construction data of insel.dat files. GRIDCONVERT enables the user to select the construction types, e.g. "DAMM", which should be converted.  
<P>
<P>


Line 55: Line 69:
''$PROGHOME/examples/lib/h_grid/h_grid_test_utr_plus_CF_Info_input.dat'' or<br />
''$PROGHOME/examples/lib/h_grid/h_grid_test_utr_plus_CF_Info_input.dat'' or<br />
''$PROGHOME/examples/lib/h_grid/h_grid_test_sub_plus_CF_Info_input.dat'' or<br />
''$PROGHOME/examples/lib/h_grid/h_grid_test_sub_plus_CF_Info_input.dat'' or<br />
''$PROGHOME/examples/lib/p_grid/profil05.CF_Test.dat''.
''$PROGHOME/examples/lib/p_grid/profil05.CF_Test.dat'' or <br />
''$PROGHOME/examples/gridconvert/data/ins/insel.all.dat''


|preprocessor=[[Mathematical_Model_DELFT3D|DELFT3D]], [[JANET]], [[TELEMAC-2D]], [[UNTRIM]]
|preprocessor=[[DAVIT]], [[Mathematical_Model_DELFT3D|DELFT3D]], [[JANET]], [[TELEMAC-2D]], [[UNTRIM]]
|postprocessor=[[DATACONVERT]], [[HVIEW2D]], [[JANET]], [[UNTRIM]], [[UTRPRE]]
|postprocessor=[[DATACONVERT]], [[DAVIT]], [[HVIEW2D]], [[JANET]], [[NCANALYSE]], [[NCAUTO]], [[NCCHUNKIE]], [[NCPLOT]], [[NC2TABLE]], [[UNTRIM]], [[UTRPRE]] and diverse NetCDF-Tools, e.g. NCPLOT, QUICKPLOT
|language=Fortran90  
|language=Fortran90  
|add_software=-  
|add_software=-  
|contact_original=[mailto:günther.lang@baw.de G. Lang]
|contact_original=G. Lang
|contact_maintenance=[mailto:günther.lang@baw.de G. Lang], [mailto:susanne.spohr@baw.de S. Spohr,]
|contact_maintenance=[mailto:pre.proghome@baw.de Working group PRE]
|documentation=example files:<br />
|documentation=example files:<br />
$PROGHOME/examples/gridconvert/<br />
$PROGHOME/examples/gridconvert/, <br />
$PROGHOME/examples/gridconvert/data/loc/<br />
$PROGHOME/examples/gridconvert/data/loc/, <br />
$PROGHOME/examples/gridconvert/data/ins/ ([[INSEL.DAT|insel.dat]]).<br />


Further informations:<br />
Further informations:<br />
All NetCDF conventions, which are relevant to store the typical BAW-specific data, are documented in the
All NetCDF conventions, which are relevant to store the typical BAW-specific data, are documented in the [[NetCDF|NetCDF-Pages of BAW-Wiki]].
[[NetCDF|NetCDF-Pages of BAW-Wiki]].
 
}}
}}

Latest revision as of 11:48, 29 May 2024

Basic Information

Name of Program

GRIDCONVERT

Version-Date

April 2019

Description-Date

September 2022

Catchwords

conversion of computational grids
read and write computational grids in different file formats

Acknowledgment: This project took advantage of netCDF software developed by UCAR/Unidata (www.unidata.ucar.edu/software/netcdf/).

Short Description of Functionality

The program GRIDCONVERT can be used to convert computational grids for different mathematical methods:

  • between different file formats but identical structure of the computational grid,
  • between different grid types and different file formats,
  • refinement (factor 4) of an UNTRIM grid, as well as
  • flattening of all sub grid scale bathymetry variations within all grid cells and along all edges and
  • conversion of constructions in insel.dat files.

In addition to that also the following functionality is available:

  • compute some statistical data for a grid,
  • find some differences between two grids, and
  • compare initial bathymetry used with UNTRIM between cases one-grid simulation versus two-grid simulation.

Due to some specific properties of computational grids for mathematical methods the number of possible conversions remains naturally very limited. The grid will not be optimized automatically with respect to the specific requirements of the different mathematical models.

The program is also available for WINDOWS platform.

Input-Files

  1. computational grid (input formats)
The following file formats are currently supported:
  1. (optional) global metadata

In case file nc_meta.dat is present in the current working directory, this file will be read by the application. Otherwise the respective file from $PROGHOME/cfg will be read.

Output-Files

  1. computational grid (output formats)
The following file formats are currently supported:

Remark: In case the files utrsub_grid.dat and pltsub_grid.upi are both present in the working directory, all data related to the so called plot subgrid will be transferred to the NetCDF file. If the latter file is missing, no data related to the plot subgrid will be stored in the NetCDF file.

Methodology

The computational grid informations are converted using various methods from the software package H_GRID as well as written to file in different formats. Files with information concerning locations are converted by the software package called L_GRID. The software package P_GRID converts files with profile grid data.:
The software package IO_INSEL converts construction data of insel.dat files. GRIDCONVERT enables the user to select the construction types, e.g. "DAMM", which should be converted.

Notice: You can add some optional information blocks to the input file (except: profil05.bin). This is the way to put additional meta data, e.g. of the CF-convention, into the CF-NetCDF file. To add CF informations to a file of type profil05.bin put the meta data in an ASCII-file with the same name and the extension '.dat'.
See example file:
$PROGHOME/examples/gridconvert/data/loc/lg.allCFinfo.dat or
$PROGHOME/examples/lib/h_grid/h_grid_test_g05_plus_CF_Info_input.dat or
$PROGHOME/examples/lib/h_grid/h_grid_test_utr_plus_CF_Info_input.dat or
$PROGHOME/examples/lib/h_grid/h_grid_test_sub_plus_CF_Info_input.dat or
$PROGHOME/examples/lib/p_grid/profil05.CF_Test.dat or
$PROGHOME/examples/gridconvert/data/ins/insel.all.dat

Program(s) to run before this Program

DAVIT, DELFT3D, JANET, TELEMAC-2D, UNTRIM

Program(s) to run after this Program

DATACONVERT, DAVIT, HVIEW2D, JANET, NCANALYSE, NCAUTO, NCCHUNKIE, NCPLOT, NC2TABLE, UNTRIM, UTRPRE and diverse NetCDF-Tools, e.g. NCPLOT, QUICKPLOT

Additional Information

Language

Fortran90

Additional software

-

Original Version

G. Lang

Maintenance

Working group PRE

Documentation/Literature

example files:
$PROGHOME/examples/gridconvert/,
$PROGHOME/examples/gridconvert/data/loc/,
$PROGHOME/examples/gridconvert/data/ins/ (insel.dat).

Further informations:
All NetCDF conventions, which are relevant to store the typical BAW-specific data, are documented in the NetCDF-Pages of BAW-Wiki.


back to Program Descriptions


Overview