<?xml version="1.0" encoding="UTF-8" ?>
<groops>
	<global>
		<loopType label="loopTemporal">
			<fileAsciiTable>
				<inputfile>010{satellite}_temporal.txt</inputfile>
				<startLine>0</startLine>
				<variableLoopString>timeStart</variableLoopString>
				<variableLoopString>timeEnd</variableLoopString>
				<variableLoopString>name</variableLoopString>
				<variableLoopString>serial</variableLoopString>
				<variableLoopString>x</variableLoopString>
				<variableLoopString>y</variableLoopString>
				<variableLoopString>z</variableLoopString>
			</fileAsciiTable>
		</loopType>
		<loopType label="loopAntennas">
			<fileAsciiTable>
				<inputfile>010{satellite}_antennas.txt</inputfile>
				<startLine>0</startLine>
				<variableLoopString>name</variableLoopString>
				<variableLoopString>serial</variableLoopString>
				<variableLoopString>L1x</variableLoopString>
				<variableLoopString>L1y</variableLoopString>
				<variableLoopString>L1z</variableLoopString>
				<variableLoopString>L2x</variableLoopString>
				<variableLoopString>L2y</variableLoopString>
				<variableLoopString>L2z</variableLoopString>
			</fileAsciiTable>
		</loopType>
	</global>
	<program comment="../01zero">
		<FileCreateDirectories>
			<directory>../01zero</directory>
		</FileCreateDirectories>
	</program>
	<program comment="manualTable">
		<LoopPrograms>
			<loop>
				<manualTable>
					<table>
						<rowWise>
							<row>
								<cell>gracefo1</cell>
								<cell>GRACEC</cell>
							</row>
							<row>
								<cell>gracefo2</cell>
								<cell>GRACED</cell>
							</row>
						</rowWise>
					</table>
					<variableLoopString>satellite</variableLoopString>
					<variableLoopString>SATELLITE</variableLoopString>
				</manualTable>
			</loop>
			<continueAfterError>0</continueAfterError>
			<parallelLog>1</parallelLog>
			<program comment="../{satellite}_satelliteInfo.xml">
				<GnssStationInfoCreate>
					<outputfileStationInfo>../{satellite}_satelliteInfo.xml</outputfileStationInfo>
					<markerName>{SATELLITE}</markerName>
					<approxPositionX>0</approxPositionX>
					<approxPositionY>0</approxPositionY>
					<approxPositionZ>0</approxPositionZ>
					<antenna loop="loopTemporal">
						<name>{name}</name>
						<serial>{serial}</serial>
						<comment>ARP is L1 center</comment>
						<timeStart>{timeStart}</timeStart>
						<timeEnd>{timeEnd}</timeEnd>
						<positionX>{x}</positionX>
						<positionY>{y}</positionY>
						<positionZ>{z}</positionZ>
						<rotationX>0</rotationX>
						<rotationY>0</rotationY>
						<rotationZ>0</rotationZ>
						<flipX>0</flipX>
						<flipY>0</flipY>
						<flipZ>1</flipZ>
					</antenna>
					<receiver>
						<name>{SATELLITE}</name>
					</receiver>
				</GnssStationInfoCreate>
			</program>
			<program comment="../{satellite}_receiverDefinition.xml">
				<GnssReceiverDefinitionCreate>
					<outputfileGnssReceiverDefinition>../{satellite}_receiverDefinition.xml</outputfileGnssReceiverDefinition>
					<receiverDefinition>
						<name>{SATELLITE}</name>
						<gnssType>C1CG</gnssType>
						<gnssType>C1WG</gnssType>
						<gnssType>C2WG</gnssType>
						<gnssType>L1CG</gnssType>
						<gnssType>L1WG</gnssType>
						<gnssType>L2WG</gnssType>
						<gnssType>S1CG</gnssType>
						<gnssType>S1WG</gnssType>
						<gnssType>S2WG</gnssType>
					</receiverDefinition>
				</GnssReceiverDefinitionCreate>
			</program>
			<program comment="../01zero/{satellite}_antennaDefinition.xml">
				<GnssAntennaDefinitionCreate>
					<outputfileAntennaDefinition>../01zero/{satellite}_antennaDefinition.xml</outputfileAntennaDefinition>
					<antenna loop="loopAntennas">
						<new>
							<name>{name}</name>
							<serial>{serial}</serial>
							<pattern>
								<type>*1*G</type>
								<offsetX>L1x</offsetX>
								<offsetY>L1y</offsetY>
								<offsetZ>L1z</offsetZ>
								<deltaAzimuth>5</deltaAzimuth>
								<deltaZenith>5</deltaZenith>
								<maxZenith>90</maxZenith>
								<values>0</values>
							</pattern>
							<pattern>
								<type>*2*G</type>
								<offsetX>L2x</offsetX>
								<offsetY>L2y</offsetY>
								<offsetZ>L2z</offsetZ>
								<deltaAzimuth>5</deltaAzimuth>
								<deltaZenith>5</deltaZenith>
								<maxZenith>90</maxZenith>
								<values>0</values>
							</pattern>
						</new>
					</antenna>
				</GnssAntennaDefinitionCreate>
			</program>
			<program comment="../01zero/{satellite}_accuracyDefinition.xml">
				<GnssAntennaDefinitionCreate>
					<outputfileAntennaDefinition>../01zero/{satellite}_accuracyDefinition.xml</outputfileAntennaDefinition>
					<antenna>
						<new>
							<pattern>
								<type>C**</type>
								<offsetX>0</offsetX>
								<offsetY>0</offsetY>
								<offsetZ>0</offsetZ>
								<deltaAzimuth>360</deltaAzimuth>
								<deltaZenith>5</deltaZenith>
								<maxZenith>90</maxZenith>
								<values>0.070/cos(0.96*zenith/rho)</values>
							</pattern>
							<pattern>
								<type>L**</type>
								<offsetX>0</offsetX>
								<offsetY>0</offsetY>
								<offsetZ>0</offsetZ>
								<deltaAzimuth>360</deltaAzimuth>
								<deltaZenith>5</deltaZenith>
								<maxZenith>90</maxZenith>
								<values>0.001/cos(0.96*zenith/rho)</values>
							</pattern>
						</new>
					</antenna>
				</GnssAntennaDefinitionCreate>
			</program>
		</LoopPrograms>
	</program>
</groops>
