NASA-PDS / pds-view

PDSView provides support for visualizing PDS3 and PDS4 data products.
https://github.com/NASA-PDS/pds-view/#pdsview
Other
20 stars 7 forks source link

Can't open Tianwen-1 NaTeCam PDS4 data #48

Closed BG9OXA closed 3 months ago

BG9OXA commented 3 months ago

Checked for duplicates

Yes - I've already checked

🐛 Describe the bug

Can't open Tianwen-1 NaTeCam PDS4 data Here is the example https://github.com/BG9OXA/pds4-example/raw/main/HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.2CL https://github.com/BG9OXA/pds4-example/raw/main/HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.2C I try to rename HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.2CL to HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.xml but rgb table is empty pds-view rgb table is empty

Thanks a lot!

🕵️ Expected behavior

I expected open it and save as a normal picture,such as jpg, png or tif

🖥 Environment Info

jordanpadams commented 3 months ago

@BG9OXA unfortunately, this data is not actually PDS4 data, but some sort of customization of the PDS4 standard.

Here are some examples of the issues encountered when validating the label with Validate Tool (after I renamed the XML file with .xml as the file suffix):

PDS Validate Tool Report

Configuration:
   Version                       3.4.1
   Date                          2024-03-12T22:04:04Z

Parameters:
   Targets                       [file:/path/HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.2CL.xml]
   Severity Level                WARNING
   Recurse Directories           true
   File Filters Used             [*.xml, *.XML]
   Data Content Validation       on
   Product Level Validation      on
   Max Errors                    100000
   Registered Contexts File      /path/validate-3.4.1/resources/registered_context_products.json

Product Level Validation Results

  FAIL: file:/path/HX1-Ro_GRAS_NaTeCamB-F-002_SCI_N_20220412171345_20220412171345_00325_A.2CL.xml
      ERROR  [error.label.schema]   line 18, 24: cvc-pattern-valid: Value 'None' is not facet-valid with respect to pattern '(-)?[0-9]{4}(Z?)|(-)?[0-9]{4}-((0[1-9])|(1[0-2]))(Z?)|(-)?[0-9]{4}-((0[1-9])|(1[0-2]))-((0[1-9])|([1-2][0-9])|(3[0-1]))(Z?)' for type 'modification_date'.
      ERROR  [error.label.schema]   line 18, 24: cvc-type.3.1.3: The value 'None' of element 'modification_date' is not valid.
      ERROR  [error.label.schema]   line 19, 17: cvc-pattern-valid: Value 'None' is not facet-valid with respect to pattern '([0-9]+)(\.){1}([0-9]+)' for type 'version_id'.
      ERROR  [error.label.schema]   line 19, 17: cvc-type.3.1.3: The value 'None' of element 'version_id' is not valid.
      ERROR  [error.label.schema]   line 24, 18: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://pds.nasa.gov/pds4/pds/v1":Reference_List}'. One of '{"http://pds.nasa.gov/pds4/pds/v1":Observation_Area}' is expected.
      ERROR  [error.label.schema]   line 28, 15: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'comment'.
      ERROR  [error.label.schema]   line 28, 15: cvc-type.3.1.3: The value '' of element 'comment' is not valid.
      ERROR  [error.label.schema]   line 37, 21: cvc-complex-type.4: Attribute 'unit' must appear on element 'solar_longitude'.
      ERROR  [error.label.schema]   line 42, 20: cvc-complex-type.2.4.b: The content of element 'Science_Facets' is not complete. One of '{"http://pds.nasa.gov/pds4/pds/v1":domain, "http://pds.nasa.gov/pds4/pds/v1":discipline_name}' is expected.
      ERROR  [error.label.schema]   line 47, 23: cvc-complex-type.2.4.b: The content of element 'Investigation_Area' is not complete. One of '{"http://pds.nasa.gov/pds4/pds/v1":Internal_Reference}' is expected.
      ERROR  [error.label.schema]   line 63, 16: cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://pds.nasa.gov/pds4/pds/v1":product_id}'. One of '{WC[##other:"http://pds.nasa.gov/pds4/pds/v1"]}' is expected.
      ERROR  [error.label.schematron]   line 6, 23: pds:logical_identifier must have the form "urn:agencyId:authorityId:bundleID:collectionID:productID"/>).
      ERROR  [error.label.schematron]   line 5, 23: The value of the attribute logical_identifier must only contain lower-case letters
      ERROR  [error.label.schematron]   line 5, 23: The value of the attribute logical_identifier must start with either: urn:nasa:pds: or urn:esa:psa: or urn:jaxa:darts: or urn:ros:rssa: or urn:isro:isda:
      ERROR  [error.label.schematron]   line 37, 21: The attribute @unit must be equal to one of the following values 'arcmin', 'arcsec', 'deg', 'hr', 'mrad', 'rad'.
        1 product validation(s) completed

Summary:

  15 error(s)
  0 warning(s)

  Product Validation Summary:
    0          product(s) passed
    1          product(s) failed
    0          product(s) skipped

  Referential Integrity Check Summary:
    0          check(s) passed
    0          check(s) failed
    0          check(s) skipped

  Message Types:
    11           error.label.schema
    4            error.label.schematron

End of Report
Completed execution in 5493 ms

It is also the Display_Settings class, which is required by most of our tools in order to understand how to read the data within the file. Apologies for the inconvenience. You may be able to update the label until it validates in order to visualize it using with PDS View, PDS4 Viewer, or Transform Tool. Good luck!