⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 albedo_lib.mdl

📁 大气模型计算
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  Position		  [165, 183, 195, 197]
	  BackgroundColor	  "yellow"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  SampleTime		  "Ts"
	  SignalType		  "real"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Albedo"
	  Ports			  [3, 1, 1]
	  Position		  [285, 130, 405, 200]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "Albedo"
	    Location		    [631, 127, 1116, 421]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "r_sat_ecef"
	      Position		      [70, 83, 100, 97]
	      BackgroundColor	      "yellow"
	      IconDisplay	      "Port number"
	      PortDimensions	      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "r_sun_ecef"
	      Position		      [125, 93, 155, 107]
	      BackgroundColor	      "yellow"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      PortDimensions	      "3"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "JD"
	      Position		      [175, 103, 205, 117]
	      BackgroundColor	      "yellow"
	      Port		      "3"
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [375, 30, 395, 50]
	      StatesWhenEnabling      "reset"
	    }
	    Block {
	      BlockType		      MATLABFcn
	      Name		      "AlbedoFcn"
	      Position		      [275, 85, 335, 115]
	      MATLABFcn		      "albedo_wrapper(u(1:3),u(4:6),u(7),redfa"
"c,pathstr)"
	      OutputDimensions	      "[sy sx]"
	      OutputSignalType	      "real"
	      Output1D		      off
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [240, 81, 245, 119]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "a"
	      Position		      [370, 93, 400, 107]
	      BackgroundColor	      "darkGreen"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      OutputWhenDisabled      "reset"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "AlbedoFcn"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "r_sat_ecef"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "AlbedoFcn"
	      SrcPort		      1
	      DstBlock		      "a"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "r_sun_ecef"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "JD"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "On"
	  Position		  [317, 90, 373, 105]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Value			  "enable"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold"
	  Position		  [225, 131, 245, 149]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold1"
	  Position		  [225, 156, 245, 174]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold2"
	  Position		  [225, 181, 245, 199]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  Outport
	  Name			  "a"
	  Position		  [440, 158, 470, 172]
	  BackgroundColor	  "darkGreen"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "r_sun_ecef"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Albedo"
	  SrcPort		  1
	  DstBlock		  "a"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "r_sat_ecef"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "On"
	  SrcPort		  1
	  DstBlock		  "Albedo"
	  DstPort		  enable
	}
	Line {
	  SrcBlock		  "JD"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  DstBlock		  "Albedo"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  DstBlock		  "Albedo"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold2"
	  SrcPort		  1
	  DstBlock		  "Albedo"
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Perpendicular\nEquivalent"
      Ports		      [3, 1]
      Position		      [45, 204, 135, 256]
      BackgroundColor	      "lightBlue"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "Perpendicular Equivalent"
      MaskDescription	      "Projects all incoming Earth albedo irradiances "
"onto a normal to the exposed surface. The scalar result is the norm of an equ"
"ivalent perpendicular incident irradiance."
      MaskHelp		      "<b>Input</b><br>\nNadir: Vector from satellite "
"position to Earth center in ECEF [m].<br>\nNss:: Normal vector of exposed sur"
"face in ECEF.<br>\nAlbedo: Earth albedo matrix.<p>\n<b>Parameters</b><br>\nSa"
"mple Time (-1 for inherited): Sample Time [s]. The block cannot inherit conti"
"nuous sample time.<br>\nEnable: Enable or disable albedo calculation<p>\n<b>O"
"utput</b><br>\nIRad: Norm of equivalent incident irradiance vector [W/m^2].<p"
">\n"
      MaskPromptString	      "Sample Time (-1 for inherited)|Enable:"
      MaskStyleString	      "edit,checkbox"
      MaskTunableValueString  "off,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "Ts=@1;enable=@2;"
      MaskDisplay	      "image(imread('private/projectionicon.png'));\np"
"ort_label('output', 1, 'IRad');\nport_label('input', 1, 'Nadir');\nport_label"
"('input', 2, 'Nss');\nport_label('input', 3, 'Albedo');"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "-1|on"
      MaskTabNameString	      ","
      System {
	Name			"Perpendicular\nEquivalent"
	Location		[546, 275, 930, 502]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "r_earth_ecef"
	  Position		  [25, 48, 55, 62]
	  BackgroundColor	  "yellow"
	  IconDisplay		  "Port number"
	  PortDimensions	  "3"
	  SampleTime		  "Ts"
	  SignalType		  "real"
	}
	Block {
	  BlockType		  Inport
	  Name			  "n_ecef"
	  Position		  [25, 83, 55, 97]
	  BackgroundColor	  "yellow"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  PortDimensions	  "3"
	  SampleTime		  "Ts"
	  SignalType		  "real"
	}
	Block {
	  BlockType		  Inport
	  Name			  "albedo"
	  Position		  [25, 118, 55, 132]
	  BackgroundColor	  "yellow"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  SampleTime		  "Ts"
	  SignalType		  "real"
	}
	Block {
	  BlockType		  Constant
	  Name			  "On"
	  Position		  [187, 20, 243, 35]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Value			  "enable"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Projection"
	  Ports			  [3, 1, 1]
	  Position		  [145, 59, 285, 121]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "Projection"
	    Location		    [686, 393, 1081, 639]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "r_earth_ecef"
	      Position		      [60, 63, 90, 77]
	      BackgroundColor	      "yellow"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "n_ecef"
	      Position		      [60, 98, 90, 112]
	      BackgroundColor	      "yellow"
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "albedo"
	      Position		      [65, 168, 95, 182]
	      BackgroundColor	      "yellow"
	      Port		      "3"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [235, 20, 255, 40]
	    }
	    Block {
	      BlockType		      Probe
	      Name		      "Dimension"
	      Ports		      [1, 1]
	      Position		      [130, 132, 175, 148]
	      ProbeWidth	      off
	      ProbeSampleTime	      off
	      ProbeComplexSignal      off
	      ProbeSignalDimensions   on
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [4, 1]
	      Position		      [200, 52, 205, 193]
	      ShowName		      off
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Reshape"
	      Ports		      [1, 1]
	      Position		      [135, 163, 165, 187]
	      SourceBlock	      "simulink/Math\nOperations/Reshape"
	      SourceType	      "Reshape"
	      OutputDimensionality    "1-D array"
	      OutputDimensions	      "[1,1]"
	    }
	    Block {
	      BlockType		      MATLABFcn
	      Name		      "ss_proj"
	      Position		      [225, 110, 285, 140]
	      MATLABFcn		      "ss_proj(u(1:3),u(4:6),reshape(u(9:u(7)*"
"u(8)+8),u(7),u(8)) );"
	      OutputDimensions	      "1"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "irradiance"
	      Position		      [310, 118, 340, 132]
	      BackgroundColor	      "darkGreen"
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Mux"
	      SrcPort		      1
	      DstBlock		      "ss_proj"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "r_earth_ecef"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "n_ecef"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "ss_proj"
	      SrcPort		      1
	      DstBlock		      "irradiance"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "albedo"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Reshape"
		DstPort			1
	      }
	      Branch {
		Points			[0, -35]
		DstBlock		"Dimension"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Dimension"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Reshape"
	      SrcPort		      1
	      DstBlock		      "Mux"
	      DstPort		      4
	    }
	  }
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold 1"
	  Position		  [85, 46, 105, 64]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold 2"
	  Position		  [85, 81, 105, 99]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold 3"
	  Position		  [85, 116, 105, 134]
	  ShowName		  off
	  SampleTime		  "Ts"
	}
	Block {
	  BlockType		  Outport
	  Name			  "irradiance"
	  Position		  [320, 83, 350, 97]
	  BackgroundColor	  "darkGreen"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  PortDimensions	  "1"
	  SampleTime		  "Ts"
	  SignalType		  "real"
	}
	Line {
	  SrcBlock		  "r_earth_ecef"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold 1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "n_ecef"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold 2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Projection"
	  SrcPort		  1
	  DstBlock		  "irradiance"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "albedo"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Zero-Order\nHold 3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold 1"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Projection"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold 2"
	  SrcPort		  1
	  DstBlock		  "Projection"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold 3"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Projection"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "On"
	  SrcPort		  1
	  DstBlock		  "Projection"
	  DstPort		  enable
	}
      }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -