WAVEWATCH III  beta 0.0.1
w3smcomd.F90 File Reference

SMC grid interpolation and regridding functionality. More...

Go to the source code of this file.

Modules

module  w3smcomd
 Service module for support of SMC regridding and interpolation.
 

Functions/Subroutines

subroutine w3smcomd::smc_interp ()
 Generate SMC interpolation/output information. More...
 
subroutine w3smcomd::w3s2xy_smcrg (S, XY)
 Regrid SMC data onto a regular grid. More...
 
subroutine w3smcomd::w3s2xy_smcrg_dir (S, XY)
 Regrid directional SMC data onto a regular grid. More...
 
subroutine w3smcomd::mapsta_smc ()
 Calculates a new MAPSTA using SMC grid cell averaging. More...
 
subroutine w3smcomd::read_smcint ()
 Read interpolation information from smcint.ww3. More...
 
subroutine w3smcomd::calc_interp ()
 Calculates weights for SMC to arbitrary grid intepolation. More...
 
subroutine w3smcomd::w3s2xy_smcnn (S, XY, DIRN)
 Fill regular grid using nearest SMC point data. More...
 
subroutine w3smcomd::w3s2xy_smcnn_int (S, XY, DIRN)
 Nearest neighbour interpolation. More...
 
subroutine w3smcomd::w3s2xy_smc (S, XY, DIR)
 Entry point for SMC version of W3S2XY. More...
 

Variables

double precision w3smcomd::sxo
 Output grid longitude origin. More...
 
double precision w3smcomd::syo
 Output grid latitude origin. More...
 
double precision w3smcomd::exo
 Output grid final longitude. More...
 
double precision w3smcomd::eyo
 Output grid final latitude. More...
 
double precision w3smcomd::dxo
 Output grid cell longitude size. More...
 
double precision w3smcomd::dyo
 Output grid cell latitude size. More...
 
integer w3smcomd::nxo
 Output grid number of longitude cells. More...
 
integer w3smcomd::nyo
 Output grid number of latitude cells. More...
 
integer w3smcomd::smcotype
 Type of SMC output: 1=seapoint grid of SMC cells; 2=regridding to regular grid; 3=interpolation to arbtrary grid; 4=nearest neighbour interpolation to arbitrary grid. More...
 
integer w3smcomd::celfac
 Output grid cell scaling factor; should be an integer power of 2. More...
 
integer, dimension(:), allocatable w3smcomd::xidx
 X-indices of SMC cells in regular grid. More...
 
integer, dimension(:), allocatable w3smcomd::yidx
 Y-Indices of SMC cells in regular grid. More...
 
integer, dimension(:), allocatable w3smcomd::xspan
 Number of longitude cells SMC cell spans. More...
 
integer, dimension(:), allocatable w3smcomd::yspan
 Number of longitude cells SMC cell spans. More...
 
real, dimension(:), allocatable w3smcomd::wts
 Regridding weights. More...
 
real, dimension(:,:), allocatable w3smcomd::cov
 Wet fraction (coverage) of cell. More...
 
integer, dimension(:,:), allocatable w3smcomd::mapsmc
 Regridded MAPSTA. More...
 
logical, dimension(:), allocatable w3smcomd::smcmask
 Mask for type 1 output (flat array) More...
 
integer, dimension(:), allocatable w3smcomd::smcidx
 Indices of SMC cells within output grid domain. More...
 
integer, dimension(:), allocatable w3smcomd::smccx
 SMC grid definition. More...
 
integer, dimension(:), allocatable w3smcomd::smccy
 Latitude cell size factors. More...
 
real w3smcomd::dlat
 Base longitude cell size. More...
 
real w3smcomd::dlon
 Base latitude cell size. More...
 
integer w3smcomd::cfac
 SMC scaling factor (number of levels) More...
 
real w3smcomd::noval
 Fill value for seapoints with no value. More...
 
integer, dimension(:,:), allocatable w3smcomd::nnidx
 Nearest neighbour SMC point to regular grid. More...
 
real, dimension(:,:), allocatable w3smcomd::xdist
 Lng. More...
 
real, dimension(:,:), allocatable w3smcomd::ydist
 Lat. More...
 
integer w3smcomd::ndsmc
 ww3_smcint file unit number More...
 
integer w3smcomd::smcnout
 Number of SMC output cells. More...
 
integer w3smcomd::nsmc
 Number of SMC cells used in regridding. More...
 

Detailed Description

SMC grid interpolation and regridding functionality.

Author
Chris Bunney
Date
21-Jul-2021

Definition in file w3smcomd.F90.