Renaming dimensions in NCML handler fails

Description

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

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

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:

http://measures.gsfc.nasa.gov/opendap/TEST_OPENDAP/DeepBlue-SeaWiFS-1.0_L3_20061015_v002-20110515T181540Z.hdf.ncml.html

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.

Environment

None

Activity

Show:
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="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" 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"/>
</netcdf>

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.

James Gallagher
August 15, 2017, 11:16 PM
Edited

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.

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.

Nathan Potter
August 15, 2017, 11:24 PM

So I reopened it.

James Gallagher
August 15, 2017, 11:34 PM

OK. NASA asked that we look at this and

Done

Assignee

Slav Korolev

Reporter

Nathan Potter

Labels

Fix versions

None

Time remaining

0m

Story Points

None

Epic Link

Priority

Highest
Configure