current version 1.0 - 19th October 2017
version | date | comment |
---|---|---|
1.0 | 19/Oct/2017 | Original code |
license: GNU GPL http://www.gnu.org/licenses/
Module containing subroutines used by Meteo module
interpolate site data to space
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ObservationalNetwork), | intent(in) | :: | network | |||
integer(kind=short), | intent(in) | :: | method | |||
integer(kind=short), | intent(in) | :: | near | |||
real(kind=float), | intent(in) | :: | idw_power | |||
integer(kind=short), | intent(in) | :: | anisotropy | |||
integer(kind=short), | intent(in) | :: | varmodel | |||
integer(kind=short), | intent(in) | :: | lags | |||
real(kind=float), | intent(in) | :: | maxlag | |||
type(grid_real), | intent(inout) | :: | grid | |||
type(grid_real), | intent(inout) | :: | devst |
apply offset to a grid_real
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid_real), | intent(inout) | :: | grid | |||
real(kind=float), | intent(in) | :: | off |
read a time varying field from a netcdf file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | filename |
name of netcdf file |
||
type(DateTime), | intent(in) | :: | time |
time of the variable to read |
||
integer, | intent(in) | :: | dtAggr |
aggregation time interval |
||
integer, | intent(in) | :: | dtGrid |
time interval of grid in netcdf file |
||
character(len=*), | intent(in) | :: | aggrType |
aggregation type. 'M' = mean, 'C' = cumulated, 'X' = maximum, 'N' = minimum |
||
type(grid_real), | intent(inout) | :: | field | |||
character(len=*), | intent(in), | optional | :: | varName |
name of the variable to read |
|
character(len=*), | intent(in), | optional | :: | stdName |
name of the variable to read |
|
real, | intent(in), | optional | :: | cellsize | ||
type(grid_real), | intent(in), | optional | :: | dem | ||
type(grid_real), | intent(in), | optional | :: | demHiRes | ||
type(grid_real), | intent(in), | optional | :: | lapse |
apply scale factor to a grid_real
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid_real), | intent(inout) | :: | grid | |||
real(kind=float), | intent(in) | :: | sc |
Shift back interpolated field to terrain surface
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(grid_real), | intent(inout) | :: | grid | |||
type(grid_real), | intent(in) | :: | dem | |||
type(grid_real), | intent(in) | :: | lapse | |||
real(kind=float), | intent(in) | :: | refelev |
ereference elevation |
||
integer(kind=short), | intent(in), | optional | :: | dt |
shift meteo observations to reference elevation applying lapse rate
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ObservationalNetwork), | intent(in) | :: | input |
actual station network |
||
type(grid_real), | intent(in) | :: | lapse |
lapse rate grid |
||
real(kind=float), | intent(in) | :: | refelev |
reference elevation |
||
type(ObservationalNetwork), | intent(inout) | :: | output |
station network at reference elevation |
||
integer, | intent(in), | optional | :: | dt |
used when lapse rate is a flux |