thomas loubrieu created SDAP-218:
------------------------------------

             Summary: nexuscli.dataset_list() does return wrong start/time for 
datasets
                 Key: SDAP-218
                 URL: https://issues.apache.org/jira/browse/SDAP-218
             Project: Apache Science Data Analytics Platform
          Issue Type: Bug
            Reporter: thomas loubrieu


The function returns an object with start/end time of the dataset but the 
conversion assumes the nexus output is in millisecond whereas it is in seconds 
before doing the conversion in iso format.
 
Actually nexus also return the time in iso format, so we could use that without 
doing a conversion. I guess this comes from an older nexus version.
 
 
The output from nexus
{{data = response.json()}}{{data}}{{[\{'iso_start': '2015-11-01T00:00:00+0000', 
'end': 1581292800.0, 'title': 'AVHRR_OI_L4_GHRSST_NCEI', 'iso_end': 
'2020-02-10T00:00:00+0000', 'tileCount': 34749, 'start': 1446336000.0, 
'shortName': 'AVHRR_OI_L4_GHRSST_NCEI'}]}}
 
 
The output from nexuscli
{{nexuscli.dataset_list()}}{{[OrderedDict([('shortName', 
'AVHRR_OI_L4_GHRSST_NCEI'), ('start', '1970-01-17T17:45:36Z'), ('end', 
'1970-01-19T07:14:52Z')])]}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to