This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
On 8/2/2010 4:34 PM, Yuan Ho wrote:
<?xml version="1.0" encoding="UTF-8"?><netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="C:/Users/yuanho/Downloads/smallerpd.nc"><variable name="trajectory_id"> <attribute name="standard_name" value="trajectory_id"/> </variable> <variable name="depth" shape="trajectory obs" type="float"> <attribute name="axis" value="Z"/> </variable> <attribute name="CF\:featureType" value="trajectory"/></netcdf>
1) you do need 2D time time(traj,obs) 2) attribute is CF:featureType, not CF\:featureType, the \: is only for CDL this seems to work: <?xml version="1.0" encoding="UTF-8"?><netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="smallerpd-5.nc">
<variable name="trajectory_id"> <attribute name="standard_name" value="trajectory_id"/> </variable> <variable name="depth" shape="trajectory obs" type="float"> <attribute name="axis" value="Z"/> </variable> <attribute name="CF:featureType" value="trajectory"/> </netcdf>