NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Roland Schweitzer wrote:
<?xml version="1.0" encoding="UTF-8"?> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> <variable name="ntime"> <attribute name="units" value="days since 1990-01-01 00:00:00"/> <attribute name="_CoordinateAxisType" value="Time" /> <values>4602,4607</values> </variable> <aggregation dimName="ntime" type="joinNew"> <variableAgg name="sea_level"/><netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/></aggregation> </netcdf>
this should work: <?xml version="1.0" encoding="UTF-8"?> <netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2"> <variable name="ntime" type="int" shape="ntime"> <attribute name="units" value="days since 1990-01-01 00:00:00"/> <attribute name="_CoordinateAxisType" value="Time" /> <values>4602 4607</values> </variable> <aggregation dimName="ntime" type="joinNew"> <variableAgg name="sea_level"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020808.nc.gz"/> <netcdf location="http://dods.jpl.nasa.gov/dods-bin/nph-nc/pub/data_collections/woce_v3/topex/data/10_deg/ssh10d20020813.nc.gz"/> </aggregation></netcdf> your main problem was using a "," in <values>, which was silently failing. also you need to specify type="int". I also discovered 2(!) more bugs in the convention parser, which you probably wont see.
netcdf-java
archives: