Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1import lsst.pipe.base as pipeBase 

2 

3from lsst.faro.base.MatchedCatalogBase import (MatchedBaseTaskConnections, 

4 MatchedBaseTaskConfig, 

5 MatchedBaseTask, MatchedTractBaseTask) 

6 

7__all__ = ("PatchMatchedPreparationTaskConnections", "PatchMatchedPreparationTaskConfig", 

8 "PatchMatchedPreparationTask", 

9 "TractMatchedPreparationTaskConnections", "TractMatchedPreparationTaskConfig", 

10 "TractMatchedPreparationTask", 

11 "PatchMatchedMultiBandPreparationTaskConnections", "PatchMatchedMultiBandPreparationTaskConfig", 

12 "PatchMatchedMultiBandPreparationTask") 

13 

14 

15# The first thing to do is to define a Connections class. This will define all 

16# the inputs and outputs that our task requires 

17class PatchMatchedPreparationTaskConnections(MatchedBaseTaskConnections, 

18 dimensions=("tract", "patch", "band", 

19 "instrument", "skymap")): 

20 outputCatalog = pipeBase.connectionTypes.Output(doc="Resulting matched catalog.", 

21 dimensions=("tract", "patch", 

22 "instrument", "band"), 

23 storageClass="SimpleCatalog", 

24 name="matchedCatalogPatch") 

25 

26 

27class PatchMatchedPreparationTaskConfig(MatchedBaseTaskConfig, 

28 pipelineConnections=PatchMatchedPreparationTaskConnections): 

29 pass 

30 

31 

32class PatchMatchedPreparationTask(MatchedBaseTask): 

33 

34 ConfigClass = PatchMatchedPreparationTaskConfig 

35 _DefaultName = "patchMatchedPreparationTask" 

36 

37 

38class TractMatchedPreparationTaskConnections(MatchedBaseTaskConnections, 

39 dimensions=("tract", "band", 

40 "instrument", "skymap")): 

41 outputCatalog = pipeBase.connectionTypes.Output(doc="Resulting matched catalog.", 

42 dimensions=("tract", "instrument", "band"), 

43 storageClass="SimpleCatalog", 

44 name="matchedCatalogTract") 

45 

46 

47class TractMatchedPreparationTaskConfig(MatchedBaseTaskConfig, 

48 pipelineConnections=TractMatchedPreparationTaskConnections): 

49 pass 

50 

51 

52class TractMatchedPreparationTask(MatchedTractBaseTask): 

53 

54 ConfigClass = TractMatchedPreparationTaskConfig 

55 _DefaultName = "tractMatchedPreparationTask" 

56 

57 

58class PatchMatchedMultiBandPreparationTaskConnections(MatchedBaseTaskConnections, 

59 dimensions=("tract", "patch", "instrument", "skymap")): 

60 outputCatalog = pipeBase.connectionTypes.Output(doc="Resulting matched catalog.", 

61 dimensions=("tract", "patch", 

62 "instrument"), 

63 storageClass="SimpleCatalog", 

64 name="matchedCatalogPatchMultiBand") 

65 

66 

67class PatchMatchedMultiBandPreparationTaskConfig( 

68 MatchedBaseTaskConfig, 

69 pipelineConnections=PatchMatchedMultiBandPreparationTaskConnections): 

70 pass 

71 

72 

73class PatchMatchedMultiBandPreparationTask(MatchedBaseTask): 

74 

75 ConfigClass = PatchMatchedMultiBandPreparationTaskConfig 

76 _DefaultName = "patchMatchedMultiBandPreparationTask"