1
|
|
|
# -*- coding: utf-8 -*- |
2
|
|
|
# vim:fileencoding=utf-8 |
3
|
|
|
# |
4
|
|
|
# Copyright (c) 2018 Stefan Bender |
5
|
|
|
# |
6
|
|
|
# This module is part of sciapy. |
7
|
|
|
# sciapy is free software: you can redistribute it or modify |
8
|
|
|
# it under the terms of the GNU General Public License as published |
9
|
|
|
# by the Free Software Foundation, version 2. |
10
|
|
|
# See accompanying LICENSE file or http://www.gnu.org/licenses/gpl-2.0.html. |
11
|
|
|
"""SCIAMACHY level 1c tests |
12
|
|
|
""" |
13
|
|
|
|
14
|
|
|
import sciapy.level1c |
15
|
|
|
|
16
|
|
|
|
17
|
|
|
def test_module_object_structure(): |
18
|
|
|
assert sciapy.level1c |
19
|
|
|
assert sciapy.level1c.scia_limb |
20
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_point |
21
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_scan |
22
|
|
|
assert sciapy.level1c.scia_limb_point |
23
|
|
|
assert sciapy.level1c.scia_limb_scan |
24
|
|
|
assert sciapy.level1c.scia_solar |
25
|
|
|
|
26
|
|
|
|
27
|
|
|
def test_limbmodule_method_structure(): |
28
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_point.from_limb_scan |
29
|
|
|
assert sciapy.level1c.scia_limb_point.from_limb_scan |
30
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_scan.assemble_textheader |
31
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_scan.parse_textheader |
32
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_scan.read_from_file |
33
|
|
|
assert sciapy.level1c.scia_limb.scia_limb_scan.local_solar_time |
34
|
|
|
assert sciapy.level1c.scia_limb_scan.assemble_textheader |
35
|
|
|
assert sciapy.level1c.scia_limb_scan.parse_textheader |
36
|
|
|
assert sciapy.level1c.scia_limb_scan.read_from_file |
37
|
|
|
assert sciapy.level1c.scia_limb_scan.local_solar_time |
38
|
|
|
|
39
|
|
|
|
40
|
|
|
def test_solarmodule_method_structure(): |
41
|
|
|
assert sciapy.level1c.scia_solar.read_from_hdf5 |
42
|
|
|
assert sciapy.level1c.scia_solar.read_from_netcdf |
43
|
|
|
assert sciapy.level1c.scia_solar.read_from_textfile |
44
|
|
|
assert sciapy.level1c.scia_solar.read_from_file |
45
|
|
|
assert sciapy.level1c.scia_solar.write_to_netcdf |
46
|
|
|
assert sciapy.level1c.scia_solar.write_to_textfile |
47
|
|
|
|