Label | Explanation | Data Type |
Input Trajectory File
| The input trajectory file. | File; Trajectory Layer |
Output Trajectory Layer
| The output feature layer that contains the selected variables. | Trajectory Layer |
Dimension Name
(Optional) | The dimension name. The first dimension is used by default. | String |
Predefined Variables
(Optional) | Specifies the predefined variables that will be used for measurement for different sensor types.
| String |
Variables
(Optional) | The variables that will be included in the output layer. All variables are selected by default. | String |
Summary
Generates a feature layer from selected variables in a trajectory file.
Usage
This tool can use trajectory data from satellite altimetry sensors such as Jason, Sentinel-3, CryoSat, and ICESat.
Different sensors may use different variable names for the same type of measurement. The Predefined Variables parameter combines data from sensors by mapping variable names to a common measurement type. For example, to merge sea surface height data from sentinel 3 and sentinel 6, specify the Sea Surface Height option. The tool will map the corresponding variables to a common variable in the output trajectory layer. See Trajectory type properties for a list of predefined variables for each available sensor.
Parameters
arcpy.management.MakeTrajectoryLayer(in_trajectory_file, out_trajectory_layer, {dimension}, {predefined_variables}, {variables})
Name | Explanation | Data Type |
in_trajectory_file | The input trajectory file. | File; Trajectory Layer |
out_trajectory_layer | The output feature layer that contains the selected variables. | Trajectory Layer |
dimension (Optional) | The dimension name. The first dimension is used by default. | String |
predefined_variables [predefined_variables,...] (Optional) | Specifies the predefined variables that will be used for measurement for different sensor types.
| String |
variables [variables,...] (Optional) | The variables that will be included in the output layer. All variables are selected by default. | String |
Code sample
This example creates a trajectory layer from a Cryosat trajectory file.
# Import system modules
import arcpy
from arcpy import *
# Set local variables
in_trajectory_file = r"C:\data\Cryosat\CS_OFFL_SIR_LRM_2__20210301T000738_20210301T001611_D001.nc"
out_trajectory_layer = r"C:\data\Cryosat\trajectory_layer
dimension = "CS_OFFL_SIR_LRM_2__20210301T000738_20210301T001611_D001_time_20_ku"
predefined_variables = "SSH;H_SEA_ICE"
variables = "height_1_20_ku"
# Execute
trajectory_output = arcpy.management.MakeTrajectoryLayer(in_trajectory_file, out_trajectory_layer,
dimension, predefined_variables, variables)