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 ( 

4 MatchedBaseTaskConnections, 

5 MatchedBaseConfig, 

6 MatchedBaseTask, 

7 MatchedTractBaseTask, 

8) 

9 

10__all__ = ( 

11 "PatchMatchedPreparationTaskConnections", 

12 "PatchMatchedPreparationConfig", 

13 "PatchMatchedPreparationTask", 

14 "TractMatchedPreparationTaskConnections", 

15 "TractMatchedPreparationConfig", 

16 "TractMatchedPreparationTask", 

17 "PatchMatchedMultiBandPreparationTaskConnections", 

18 "PatchMatchedMultiBandPreparationConfig", 

19 "PatchMatchedMultiBandPreparationTask", 

20) 

21 

22 

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

24# the inputs and outputs that our task requires 

25class PatchMatchedPreparationTaskConnections( 

26 MatchedBaseTaskConnections, 

27 dimensions=("tract", "patch", "band", "instrument", "skymap"), 

28): 

29 outputCatalog = pipeBase.connectionTypes.Output( 

30 doc="Resulting matched catalog.", 

31 dimensions=("tract", "patch", "instrument", "band"), 

32 storageClass="SimpleCatalog", 

33 name="matchedCatalogPatch", 

34 ) 

35 

36 

37class PatchMatchedPreparationConfig( 

38 MatchedBaseConfig, pipelineConnections=PatchMatchedPreparationTaskConnections 

39): 

40 pass 

41 

42 

43class PatchMatchedPreparationTask(MatchedBaseTask): 

44 

45 ConfigClass = PatchMatchedPreparationConfig 

46 _DefaultName = "patchMatchedPreparationTask" 

47 

48 

49class TractMatchedPreparationTaskConnections( 

50 MatchedBaseTaskConnections, dimensions=("tract", "band", "instrument", "skymap") 

51): 

52 outputCatalog = pipeBase.connectionTypes.Output( 

53 doc="Resulting matched catalog.", 

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

55 storageClass="SimpleCatalog", 

56 name="matchedCatalogTract", 

57 ) 

58 

59 

60class TractMatchedPreparationConfig( 

61 MatchedBaseConfig, pipelineConnections=TractMatchedPreparationTaskConnections 

62): 

63 pass 

64 

65 

66class TractMatchedPreparationTask(MatchedTractBaseTask): 

67 

68 ConfigClass = TractMatchedPreparationConfig 

69 _DefaultName = "tractMatchedPreparationTask" 

70 

71 

72class PatchMatchedMultiBandPreparationTaskConnections( 

73 MatchedBaseTaskConnections, dimensions=("tract", "patch", "instrument", "skymap") 

74): 

75 outputCatalog = pipeBase.connectionTypes.Output( 

76 doc="Resulting matched catalog.", 

77 dimensions=("tract", "patch", "instrument"), 

78 storageClass="SimpleCatalog", 

79 name="matchedCatalogPatchMultiBand", 

80 ) 

81 

82 

83class PatchMatchedMultiBandPreparationConfig( 

84 MatchedBaseConfig, 

85 pipelineConnections=PatchMatchedMultiBandPreparationTaskConnections, 

86): 

87 pass 

88 

89 

90class PatchMatchedMultiBandPreparationTask(MatchedBaseTask): 

91 

92 ConfigClass = PatchMatchedMultiBandPreparationConfig 

93 _DefaultName = "patchMatchedMultiBandPreparationTask"