WAVEWATCH III  beta 0.0.1
w3ounfmetamd.F90 File Reference

User configurable netCDF meta-data for ww3_ounf. More...

Go to the source code of this file.

Data Types

type  w3ounfmetamd::meta_t
 Type for storing WW3 netCDF metadata for a variable. More...
 
type  w3ounfmetamd::field_t
 Type for storage of meta data aggregated by component (NFIELD) More...
 
type  w3ounfmetamd::group_t
 Type for storage of meta data aggregated by field (IFI) More...
 
type  w3ounfmetamd::part_tmpl_t
 Type for storing partitioned parameter template strings. More...
 

Modules

module  w3ounfmetamd
 Manages user configurable netCDF meta-data for ww3_ounf program.
 

Functions/Subroutines

subroutine w3ounfmetamd::init_meta (VEC)
 Allocates space for the META_T arrays and sets some defaults. More...
 
subroutine w3ounfmetamd::teardown_meta ()
 De-allocates memory used for the META_T arrays. More...
 
subroutine w3ounfmetamd::next_line (NDMI, BUF, ILINE, EOF, NEW_SECTION)
 Reads the next valid line from the user meta input file. More...
 
subroutine w3ounfmetamd::notabs (STR)
 Replaces tab characters in a string with a space. More...
 
character(len(str)) function w3ounfmetamd::replace_char (STR, C, REP)
 Replaces single characters in a string. More...
 
subroutine w3ounfmetamd::read_meta ()
 Reads meta data entries from the ountmeta.inp file. More...
 
subroutine w3ounfmetamd::decode_header (BUF, ILINE, IFI, IFJ, IFC)
 Decode the META header line. More...
 
subroutine w3ounfmetamd::read_meta_pairs (NDMI, META, ILINE)
 Reads in attribute name/value pairs and updates the relevant values in the META type. More...
 
subroutine w3ounfmetamd::get_attval_type (BUF, ILINE, ATTV, ATT_TYPE)
 Gets the attribute value and optional variable type from the passed in string. More...
 
subroutine w3ounfmetamd::read_freeform_meta_list (NDMI, ILINE, METALIST)
 Reads in freeform attribute name/value pairs. More...
 
subroutine w3ounfmetamd::read_crs_meta (NDMI, ILINE)
 Reads in metadata for the coordinate reference system (CRS). More...
 
subroutine w3ounfmetamd::default_crs_meta ()
 Set up a default coordinate reference system for the grid. More...
 
type(meta_t) function w3ounfmetamd::getmeta (IFI, IFJ, ICOMP, IPART)
 Get the meta data for a particular field. More...
 
subroutine w3ounfmetamd::read_part_tmpl (NDMI, ILINE)
 Reads in a TEMPLATE section from file. More...
 
subroutine w3ounfmetamd::print_part_tmpl ()
 Prints the patition templates to screen (for debug use). More...
 
subroutine w3ounfmetamd::add_partno (META, IPART)
 Adds partition number to meta-data. More...
 
subroutine w3ounfmetamd::partno_string_sub (INSTR, IPART)
 Performs string substition of placeholder strings with partition number specfic values. More...
 
subroutine w3ounfmetamd::write_meta (NCID, VARID, META, ERR)
 Writes the meta-data entries for a variable. More...
 
subroutine w3ounfmetamd::write_global_meta (NCID, ERR)
 Writes the user meta-data entries for the global attributes. More...
 
subroutine w3ounfmetamd::write_freeform_meta_list (NCID, VARID, METALIST, ERR)
 Writes the freeform user meta-data entries for a NetCDF variable. More...
 
subroutine w3ounfmetamd::print_meta (META)
 Writes meta-data to the screen - for debugging purposes. More...
 
type(meta_t) function w3ounfmetamd::meta_deep_copy (META)
 Performs "deep" copy of a META_T type. More...
 
subroutine w3ounfmetamd::default_meta ()
 Populates the default meta data for ww3_ounf output fields. More...
 

Variables

character(len= *), parameter w3ounfmetamd::fn_meta = "ounfmeta.inp"
 Meta-data input filename. More...
 
character(len= *), parameter w3ounfmetamd::ipart_token = "<IPART>"
 String token for integer partition number. More...
 
character(len= *), parameter w3ounfmetamd::spart_token = "<SPART>"
 String token for partition descriptive string (space separated) More...
 
character(len= *), parameter w3ounfmetamd::spart_token_ = "<SPART_>"
 String token for partition descriptive string (underscore separated) More...
 
type(group_t), dimension(:), allocatable w3ounfmetamd::group
 Storage for meta data aggregated by group (IFJ) More...
 
type(meta_list_t) w3ounfmetamd::global_meta
 Storage for the Global meta data (free form) More...
 
logical w3ounfmetamd::fl_default_gbl_meta = .TRUE.
 Flag for using default (true) or user-defined (false) global meta data. More...
 
character(len=128) w3ounfmetamd::crs_name = ''
 Coordinate reference system (CRS) name. More...
 
type(meta_list_t) w3ounfmetamd::crs_meta
 Meta data list for CRS. More...
 
logical w3ounfmetamd::crs_is_default = .FALSE.
 True if CRS set by this module. More...
 
character(len=256) w3ounfmetamd::coords_attr = ''
 "coordinates" attribute - for defining auxiliary coordinates (for all variables) More...
 
type(part_tmpl_t), pointer w3ounfmetamd::part_tmpl
 User-defined partitionted paratmeters template strings. More...
 
integer w3ounfmetamd::ncvartype
 NetCDF variable type (2=int, 3=real, 4=depends) More...
 
character(len=30) w3ounfmetamd::dircom
 Directional convention comment. More...
 
character(len=128) w3ounfmetamd::partcom
 Partitioning method comment. More...
 
character(len=15), dimension(5) w3ounfmetamd::snamep
 Part. More...
 
logical w3ounfmetamd::flrtd = .FALSE.
 Flag for rototed pole grid. More...
 

Detailed Description

User configurable netCDF meta-data for ww3_ounf.

Author
Chris Bunney
Date
02-Nov-2020

Definition in file w3ounfmetamd.F90.