UMM-C of 40 NOAA_NCEI collections whose ISO 19115 records give no temporal extent fails the UMM-C schema

Aperta
#2,548 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
clojure, json, xml
Ambito
data

Direzione di ricerca

Start in umm-spec-lib, where ISO 19115 native records are transformed to UMM-C: find the code that builds TemporalExtents from gmd:temporalElement / gml:TimePeriod and see what it emits when both beginPosition and endPosition are indeterminatePosition="unknown" (and when the element itself is gco:nilReason="unknown"). Reproduce with the two curl commands in the issue, then trace that path in the existing ISO-to-UMM conversion tests under umm-spec-lib. Done means records like C2089374769-NOAA_NCEI no longer emit an empty TemporalExtents item and their UMM-C validates against the 1.18.7 schema, with a test covering both unknown variants.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

For 40 NOAA_NCEI collections whose native ISO 19115 records give no temporal extent, each collection's UMM-C has one TemporalExtents item, {"EndsAtPresentFlag": false}. The UMM-C 1.18.7 schema requires every TemporalExtents item to contain one of RangeDateTimes, SingleDateTimes, or PeriodicDateTimes, so the UMM-C of these collections fails the schema. The output below is from 2026-11-23.

In 25 of the native records, the extent's begin and end are both unknown:

$ curl -sS 'https://cmr.earthdata.nasa.gov/search/concepts/C2089374769-NOAA_NCEI.native' | sed -n '/<gmd:temporalElement>/,/<\/gmd:temporalElement>/p'
          <gmd:temporalElement>
            <gmd:EX_TemporalExtent id="boundingTemporalExtent">
              <gmd:extent>
                <gml:TimePeriod gml:id="boundingTemporalExtentPeriod">
                  <gml:beginPosition indeterminatePosition="unknown"/>
                  <gml:endPosition indeterminatePosition="unknown"/>
                </gml:TimePeriod>
              </gmd:extent>
            </gmd:EX_TemporalExtent>
          </gmd:temporalElement>
$ curl -sS 'https://cmr.earthdata.nasa.gov/search/concepts/C2089374769-NOAA_NCEI.umm_json_v1_18_7' | jq -c .TemporalExtents
[{"EndsAtPresentFlag":false}]

In the other 15, the temporal element itself is marked unknown:

$ curl -sS 'https://cmr.earthdata.nasa.gov/search/concepts/C2105705887-NOAA_NCEI.native' | grep -o '<gmd:temporalElement[^>]*>'
<gmd:temporalElement gco:nilReason="unknown"/>
$ curl -sS 'https://cmr.earthdata.nasa.gov/search/concepts/C2105705887-NOAA_NCEI.umm_json_v1_18_7' | jq -c .TemporalExtents
[{"EndsAtPresentFlag":false}]

Expected: the UMM-C of each of these collections validates against the UMM-C schema.

Issue #2547 shows the same TemporalExtents item for a native record that does give dates.

The 40 collections, as of 2026-11-23

Begin and end unknown (25):

  • C2089374769-NOAA_NCEI
  • C2089381485-NOAA_NCEI
  • C2089384786-NOAA_NCEI
  • C2089384868-NOAA_NCEI
  • C2089384925-NOAA_NCEI
  • C2089384933-NOAA_NCEI
  • C2089385646-NOAA_NCEI
  • C2089385827-NOAA_NCEI
  • C2089387194-NOAA_NCEI
  • C2089387713-NOAA_NCEI
  • C2089387774-NOAA_NCEI
  • C2089387815-NOAA_NCEI
  • C2089387886-NOAA_NCEI
  • C2089388136-NOAA_NCEI
  • C2089388360-NOAA_NCEI
  • C2089388363-NOAA_NCEI
  • C2089388448-NOAA_NCEI
  • C2089388478-NOAA_NCEI
  • C2089388645-NOAA_NCEI
  • C2089388747-NOAA_NCEI
  • C2089388754-NOAA_NCEI
  • C2089388762-NOAA_NCEI
  • C2089388768-NOAA_NCEI
  • C2089388937-NOAA_NCEI
  • C2089388938-NOAA_NCEI

Temporal element unknown (15):

  • C2105705788-NOAA_NCEI
  • C2105705790-NOAA_NCEI
  • C2105705799-NOAA_NCEI
  • C2105705800-NOAA_NCEI
  • C2105705808-NOAA_NCEI
  • C2105705810-NOAA_NCEI
  • C2105705827-NOAA_NCEI
  • C2105705828-NOAA_NCEI
  • C2105705829-NOAA_NCEI
  • C2105705844-NOAA_NCEI
  • C2105705845-NOAA_NCEI
  • C2105705847-NOAA_NCEI
  • C2105705864-NOAA_NCEI
  • C2105705883-NOAA_NCEI
  • C2105705887-NOAA_NCEI
Lingua principale
Clojure
Stelle
403
Fork
111
Merge medio
2g 4h
PR unite (30g)
13

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di nasa/Common-Metadata-Repository

Tutte le issue di nasa/Common-Metadata-Repository

Issue simili

Altre issue su Clojure

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.