Uploaded image for project: 'Hyrax Data Server'
  1. HYRAX-7

Modyfing attributes is broken for joinExisiting

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ncml_handler
    • Labels:
      None

      Description

      This aggregation using joinExisiting:

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- joinExisting test on netcdf granules using scan@ncoords extension--><netcdf title="joinExisting test on netcdf Grid granules using scan@ncoords">
        
        <attribute name="Description" type="string" value=" joinExisting test on netcdf Grid granules using scan@ncoords" />
        <aggregation type="joinExisting" dimName="time">
          <!-- Filenames imply lexicographic and chronological orderings match -->
          <scan location="/opendap/hyrax/coverage/mday" subdirs="false" suffix=".nc" ncoords="1" />
        </aggregation>
        
      </netcdf>
      

      Seems to work fine. However various existing attributes in the resulting dataset are wrong because the ncml_handler doesn't (and probably can't, lacking more explicit semantics) update their values. I tried to do this by adding to the NcML file like so:

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- joinExisting test on netcdf granules using scan@ncoords extension--><netcdf title="joinExisting test on netcdf Grid granules using scan@ncoords">
        
        <attribute name="Description" type="string" value=" joinExisting test on netcdf Grid granules using scan@ncoords" />
      
          <attribute name="NC_GLOBAL" type="structure">
              <attribute name="time_coverage_end" type="string">2006-02-01T00:00:00Z</attribute>
              <attribute name="time_coverage_start" type="string">2006-01-01T00:00:00Z</attribute>
          </attribute>
      
        <aggregation type="joinExisting" dimName="time">
          <!-- Filenames imply lexicographic and chronological orderings match -->
          <scan location="/opendap/hyrax/coverage/mday" subdirs="false" suffix=".nc" ncoords="1" />
        </aggregation>
        
      </netcdf>
      

      Only to discover that this produces the follow cryptic error when I try to access the dataset:

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <response xmlns="http://xml.opendap.org/ns/bes/1.0#" reqID="[http-8090-2:31:bes_request]">
          <getDDX>
              <BESError>
                  <Type>3</Type>
                  <Message>NCMLModule ParseError: at *.ncml line=9: Attempting to tokenize attribute value failed since we found an unknown internal DAP type=Structure for the current fully qualified attribute=</Message>
                  <Administrator>support@opendap.org</Administrator>
              </BESError>
          </getDDX>
      </response>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ndp Nathan Potter
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h