Contains program W3PRNC. More...
Go to the source code of this file.
Functions/Subroutines | |
| program | w3prnc |
| Pre-processing of input fields. More... | |
| subroutine | interp (MXM, MYM, XC, IX21, IX22, IY21, IY22, RD11, RD12, RD21, RD22, FILLVALUE, FA) |
| Interpolate from a field read from file to the wave grid. More... | |
| subroutine | check_error (IRET, ILINE) |
| Desc not available. More... | |
| subroutine check_error | ( | integer | IRET, |
| integer | ILINE | ||
| ) |
Desc not available.
| IRET | |
| ILINE |
Definition at line 2722 of file ww3_prnc.F90.
References w3servmd::extcde(), and w3odatmd::ndse.
| subroutine interp | ( | integer, intent(in) | MXM, |
| integer, intent(in) | MYM, | ||
| real, dimension(mxm,mym), intent(in) | XC, | ||
| integer, dimension(nx,ny), intent(in) | IX21, | ||
| integer, dimension(nx,ny), intent(in) | IX22, | ||
| integer, dimension(nx,ny), intent(in) | IY21, | ||
| integer, dimension(nx,ny), intent(in) | IY22, | ||
| real, dimension(nx,ny), intent(in) | RD11, | ||
| real, dimension(nx,ny), intent(in) | RD12, | ||
| real, dimension(nx,ny), intent(in) | RD21, | ||
| real, dimension(nx,ny), intent(in) | RD22, | ||
| real, intent(in) | FILLVALUE, | ||
| real, dimension(nx,ny), intent(out) | FA | ||
| ) |
Interpolate from a field read from file to the wave grid.
Invalid points are identified by the fill value read from the netcdf input, and interpolation does not take into account these points. The valid interpolation coefficients are scaled so that the sum is one, otherwise unphysical values can be generated.
When one point is on the boundary but is not an ocean grid point, the interpolation coefficients are zero, and in this case we provide a sensible value - the value as read, not interpolated
| [in] | MXM | Dimension X of XC variable |
| [in] | MYM | Dimension Y of XC variable |
| [in] | XC | Field to be interpolated, as read from the input netcdf |
| [in] | IX21 | List of x-index to convert from the original field to the model grid |
| [in] | IX22 | List of x-index to convert from the original field to the model grid |
| [in] | IY21 | List of y-index to convert from the original field to the model grid |
| [in] | IY22 | List of x-index to convert from the original field to the model grid |
| [in] | RD11 | Interpolation factor |
| [in] | RD12 | Interpolation factor |
| [in] | RD21 | Interpolation factor |
| [in] | RD22 | Interpolation factor |
| [in] | FILLVALUE | Fill value identifying non valid input |
| [out] | FA | Result of the interpolation |
Definition at line 2580 of file ww3_prnc.F90.
References w3gdatmd::nx, and w3gdatmd::ny.
| program w3prnc |
Pre-processing of input fields.
Pre-processing of the input water level, current, wind, ice fields, momentum and air density, as well as assimilation data ... from NetCDF input.
Definition at line 22 of file ww3_prnc.F90.
References check_err(), w3timemd::d2j(), w3servmd::extcde(), file(), constants::file_endian, w3odatmd::fnmpre, w3gdatmd::gname, w3odatmd::iaproc, w3arrymd::ina2i(), w3arrymd::ina2r(), include(), interp(), w3servmd::itrace(), w3odatmd::naperr, w3odatmd::napout, w3odatmd::naproc, w3odatmd::ndse, w3odatmd::ndso, w3odatmd::ndst, w3servmd::nextln(), w3gdatmd::nx, w3gdatmd::ny, w3arrymd::prtblk(), w3servmd::strace(), w3servmd::strsplit(), w3timemd::t2d(), w3fldsmd::w3fldd(), w3fldsmd::w3fldg(), w3fldsmd::w3fldo(), w3fldsmd::w3fldp(), w3fldsmd::w3fldtide1(), w3fldsmd::w3fldtide2(), w3iogrmd::w3iogr(), w3adatmd::w3naux(), w3nmlprncmd::w3nmlprnc(), w3gdatmd::w3nmod(), w3odatmd::w3nout(), w3adatmd::w3seta(), w3gdatmd::w3setg(), and w3odatmd::w3seto().