<form xmlns="http://echo.nasa.gov/v9/echoforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://echo.nasa.gov/v9/echoforms" xsi:schemaLocation="http://echo.nasa.gov/v9/echoforms http://api.echo.nasa.gov/echo/wsdl/EchoForms.xsd">

	<model>
		<instance>
			<ecs:options xmlns:ecs="http://ecs.nasa.gov/options" xmlns:lpdaac="http://lpdaac.usgs.gov/orderoptions.v1" xmlns:lpdaacSchemaLocation="/v1/AST_04.xsd">

				<!--Default distribution method is FTP Pull;  DVD is also available-->
				<ecs:distribution>
					<ecs:mediatype>
						<ecs:value>FtpPull</ecs:value>
					</ecs:mediatype>
					<ecs:mediaformat>
						<ecs:ftppull-format>
							<ecs:value>FILEFORMAT</ecs:value>
						</ecs:ftppull-format>
						<ecs:dvd-format>
							<ecs:value>RockRidge</ecs:value>
						</ecs:dvd-format>
					</ecs:mediaformat>
				</ecs:distribution>
				
				<ecs:processing>
					<ecs:endpoint>http://insert.pxg_endpoint.here</ecs:endpoint>
					<ecs:consider-processing-options-in-request-bundling>false</ecs:consider-processing-options-in-request-bundling>
				</ecs:processing>

				<lpdaac:subsetSpecification>
					<lpdaac:productName criteriaName="Product Name" criteriaType="FIXED">AST_04</lpdaac:productName>
					<lpdaac:longName criteriaName="Long Name" criteriaType="FIXED">ASTER On-Demand L2 Brightness Temperature at the Sensor</lpdaac:longName>
					<lpdaac:granuleSize criteriaName="Granule_size" criteriaType="FIXED">116.310000</lpdaac:granuleSize>
					<lpdaac:fileFormat criteriaName="File Format" criteriaType="FIXED">
						<lpdaac:fileFormatValue>HDF</lpdaac:fileFormatValue>
					</lpdaac:fileFormat>
				</lpdaac:subsetSpecification>

				<lpdaac:paymentSpecification>
					<lpdaac:paymentAmount type="FtpPull">80.00</lpdaac:paymentAmount>
					<lpdaac:paymentAmount type="DVD">91.00</lpdaac:paymentAmount>
				</lpdaac:paymentSpecification>
			</ecs:options>
		</instance>
		<extension xmlns:auto="http://echo.nasa.gov/v9/echoforms/autopopulate" name="auto:autopopulate">
			<auto:expressions>
				<auto:expression metadata="/results/provider/result/GranuleURMetaData/DataGranule/SizeMBDataGranule/text()" ref="/ecs:options/lpdaac:subsetSpecification/lpdaac:granuleSize"/>
			</auto:expressions>
		</extension>
	</model>
	<ui>
		<group xmlns:lpdaac="http://lpdaac.usgs.gov/orderoptions.v1" id="DistributionOptionsGroup" label="Distribution Options" ref="ecs:distribution">
			<select id="MediaTypeSelect" label="Media Type:" multiple="false" open="false" ref="ecs:mediatype" required="true" type="xsd:string" valueElementName="value">
				<item label="FTP Pull" value="FtpPull"/>
				<item label="DVD" value="DVD"/>
			</select>
			
			<select id="FtpPullMediaFormatSelect" label="FTP Pull Media Format:" multiple="false" open="false" ref="ecs:mediaformat/ecs:ftppull-format" relevant="ecs:mediatype/ecs:value= 'FtpPull'" required="ecs:mediatype/ecs:value= 'FtpPull'" type="xsd:string" valueElementName="value">
				<item label="File" value="FILEFORMAT"/>
			</select>
			
			<select id="DVDMediaFormatSelect" label="DVD Media Format:" multiple="false" open="false" ref="ecs:mediaformat/ecs:dvd-format" relevant="ecs:mediatype/ecs:value = 'DVD'" required="ecs:mediatype/ecs:value = 'DVD'" type="xsd:string" valueElementName="value">
				<item label="RockRidge" value="RockRidge"/>
			</select>
		</group>

		<group label="Processing Options" ref="lpdaac:subsetSpecification">
			<output label="Product Name:" ref="lpdaac:productName" type="xsd:string"/>
			<output label="Long Name:" ref="lpdaac:longName" type="xsd:string"/>
			<output label="Granule Size:" ref="lpdaac:granuleSize" type="xsd:string"/>
			<output id="FtpPullPriceOutput" label="Granule Price: $" ref="//lpdaac:paymentAmount[@type='FtpPull']" relevant="//ecs:mediatype/ecs:value = 'FtpPull'" type="xsd:string"/>
			<output id="DVDPriceOutput" label="Granule Price: $" ref="//lpdaac:paymentAmount[@type='DVD']" relevant="//ecs:mediatype/ecs:value = 'DVD'" type="xsd:string"/>

			<select id="OutputFileTypeSelect" label="Data Format:" multiple="false" open="false" ref="lpdaac:fileFormat" required="true()" type="xsd:string" valueElementName="fileFormatValue">
				<item label="HDF-EOS" value="HDF"/>
				<item label="GeoTIFF" value="GeoTIFF"/>
			</select>
		</group>
	</ui>
</form>