Renaming dimensions in NCML handler fails


re-entering this as a bug and not a subtask type - ndp

On 06/15/2011 12:33 PM, Fan Fang wrote:

I am having some trouble with the NcML handler and thought it could be a
bug. Attached is an NcML file I use to change some dimensions,
attributes, etc. in an HDF data. Check out the file in action:

As you can see attributes like "coordinates:..." are added correctly.
But the dimensions are not modified for any of the variables (from
fakeDim0, fakeDim1 to latitude, longitude, etc.). This causes problems
downstream, such as netcdf dump by fileout, or pointing tools like GrADS
to this URL, etc.




James Gallagher
August 15, 2017, 11:34 PM

OK. NASA asked that we look at this and

Nathan Potter
August 15, 2017, 11:24 PM

So I reopened it.

Nathan Potter
August 15, 2017, 11:23 PM

James Gallagher - It doesn't make sense to me that I closed it after bumping up the ranking 3 times in the previous 4 minutes. I suspect I must have closed it by mistake.

James Gallagher
August 15, 2017, 11:16 PM

Do you remember why this was marked as 'Done'? Kent thinks it should still be open.

You can see the history for the ticket under the 'History' tab just to the right of the Comments and Work Log tabs.

Kent Yang
August 1, 2017, 6:48 PM

This is from LP DAAC. They are trying to rename dimensions with NcML but get the failure message. There are two symptoms :

1) When removing dimensions with the following NcML:
<?xml version="1.0" encoding="UTF-8"?>
<netcdf xmlns="" location="LANDSAT_ARD_AGGREGATES/LANDSAT_ARD_SRB1/h005v002.ncml">
<remove type="dimension" name="northing"/>
<remove type="dimension" name="easting"/>
<dimension name="YDim" length="5000"/>
<dimension name="XDim" lenght="5000"/>
<variable name="SRB1" shape="XDim YDim"/>

The error message is as follows:

NCMLModule ParseError: at *.ncml line=4: Illegal type in remove element: type=dimension This version of the parser can only remove type="attribute" or type="variable".

2) When I just simply use:

<dimension name="YDim" length="5000"/>
<dimension name="XDim" lenght="5000"/>
<variable name="SRB1" shape="XDim YDim"/>

I don't get errors but the variable name SRB1's dimensions are not changed.



Slav Korolev


Nathan Potter


Fix versions


Time remaining


Story Points


Epic Link