-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from pyobs/performance
Performance enhancement and day pipeline
- Loading branch information
Showing
84 changed files
with
1,544 additions
and
571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Git LFS file not shown
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
class: pyobs.modules.MultiModule | ||
|
||
shared: | ||
world: | ||
class: pyobs.utils.simulation.SimWorld | ||
time: "2020-10-21 12:00:00" | ||
|
||
|
||
modules: | ||
cloudcover: | ||
class: pyobs_cloudcover.application.Application | ||
|
||
image_sender: "tester" | ||
|
||
server: | ||
url: "localhost" | ||
port: 8080 | ||
|
||
# This is overridden by the test module | ||
measurement_log: | ||
url: "" | ||
bucket: "" | ||
org: "" | ||
token: "" | ||
|
||
pipelines: | ||
day: | ||
alt_interval: | ||
start: 18 | ||
end: | ||
|
||
options: | ||
world_model: | ||
class: pyobs_cloudcover.world_model.SimpleModel | ||
a0: 4.81426598e-03 | ||
F: 2.00000000e+00 | ||
R: 1.06352627e+03 | ||
c_x: 7.57115607e+02 | ||
c_y: 5.11194838e+02 | ||
|
||
mask_filepath: "data/mask.npy" | ||
|
||
cloud_map: | ||
threshold: 3.5 | ||
|
||
coverage_info: | ||
zenith_altitude: 80 | ||
|
||
comm: | ||
class: pyobs.comm.local.LocalComm | ||
name: "cloudcover" | ||
|
||
tester: | ||
class: pyobs_cloudcover.testing.TestModule | ||
image_path: "data/test_day_image.fits" | ||
total_fraction: 0.7 | ||
zenith_fraction: 0.02 | ||
zenith_value: False | ||
zenith_average: 2.3 | ||
|
||
comm: | ||
class: pyobs.comm.local.LocalComm | ||
name: "tester" | ||
|
||
vfs: | ||
class: pyobs.vfs.VirtualFileSystem | ||
roots: | ||
cache: | ||
class: pyobs.vfs.MemoryFile | ||
#root: . | ||
|
||
comm: | ||
class: pyobs.comm.local.LocalComm | ||
name: multi | ||
|
||
timezone: Europe/Berlin | ||
location: | ||
longitude: 9.944333 | ||
latitude: 51.560583 | ||
elevation: 201.0000000008158 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
import datetime | ||
from typing import Optional | ||
|
||
import numpy as np | ||
import numpy.typing as npt | ||
from cloudmap_rs import SkyPixelQuery | ||
|
||
|
||
class CloudCoverageInfo(object): | ||
def __init__(self, cloud_cover_map: npt.NDArray[np.float_], | ||
total_cover: float, average: float, std: float, zenith_cover: float, zenith_average: float, zenith_std: float, change: Optional[float], obs_time: datetime.datetime) -> None: | ||
self.cloud_cover_map = cloud_cover_map | ||
def __init__(self, cloud_cover_query: SkyPixelQuery, | ||
total_cover: float, zenith_cover: Optional[float], change: Optional[float], obs_time: datetime.datetime) -> None: | ||
self.cloud_cover_query = cloud_cover_query | ||
self.total_cover = total_cover | ||
self.average = average | ||
self.std = std | ||
self.zenith_cover = zenith_cover | ||
self.zenith_average = zenith_average | ||
self.zenith_std = zenith_std | ||
self.change = change | ||
self.obs_time = obs_time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from pyobs_cloudcover.cloud_info_calculator.coverage_info_calculator import CoverageInfoCalculator | ||
from pyobs_cloudcover.cloud_info_calculator.zenith_cloud_coverage_calculator import ZenithCloudCoverageCalculator | ||
from pyobs_cloudcover.cloud_info_calculator.cloud_info_calculator_factory import CloudInfoCalculatorFactory | ||
from pyobs_cloudcover.cloud_info_calculator.cloud_info_calculator_options import CloudInfoCalculatorOptions | ||
|
||
__all__ = ["CoverageInfoCalculator", "ZenithCloudCoverageCalculator", "CloudInfoCalculatorFactory", "CloudInfoCalculatorOptions"] |
Oops, something went wrong.