-
Notifications
You must be signed in to change notification settings - Fork 2
/
config_obsB.py
61 lines (53 loc) · 2.35 KB
/
config_obsB.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
"""This file is part of pyPDAF
Copyright (C) 2022 University of Reading and
National Centre for Earth Observation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This is a template file for PDAF configurations.
The module can be modified to be adjusted to read configparser/YAML/JSON etc. to initialise
options in PDAF and the DA system.
"""
import os
# name of the observation
obs_name = 'B'
# path to the observation files
# here a relative path is given
obs_path:str = os.path.join('inputs_online', 'obsB_step{i}.txt')
# time steps between observations / assimilation frequency
dtobs:int = 2
# Observation error standard deviation
rms_obs:float = 0.5
# Switch for assimilating observation type A
assim:bool = False
# Type of distance computation to use for localization
# It is mandatory for OMI even if we don't use localisation
# 0=Cartesian 1=Cartesian periodic
# details of this property can be seen at
# https://pdaf.awi.de/trac/wiki/OMI_observation_modules#thisobsdisttype
# currently, only PDAF V2.1 is supported
disttype:int = 0
# Number of coordinates use for distance computation
# Here, it is a 2-dimensional domain
# https://pdaf.awi.de/trac/wiki/OMI_observation_modules#thisobsncoord
ncoord:int = 2
# nrows depends on the necessity of interpolating
# observations onto model grid
# if nrows = 1, observations are on the model grid points
# when interpolation is required,
# this is the number of grid points required for interpolation.
# For example, nrows = 4 for bi-linear interpolation in 2D,
# and 8 for 3D linear interpolation.
# https://pdaf.awi.de/trac/wiki/OMI_observation_modules#thisobsid_obs_p
# More information about interpolation is available at
# https://pdaf.awi.de/trac/wiki/OMI_observation_operators#PDAFomi_get_interp_coeff_lin
nrows:int = 1
# missing value in the observation
missing_value:float = -999.