inconsistent date argument in subscription search using command

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
oo_processing
Posts: 301
Joined: Wed Apr 06, 2005 12:11 pm America/New_York
Answers: 0
Has thanked: 5 times

inconsistent date argument in subscription search using command

by oo_processing » Thu Dec 01, 2022 8:10 pm America/New_York

Dear Support,

I see the search now can be more accurate with hh:mm:ss provided.
But there is a trouble in command without hh:mm:ss provided. As follows, I guess different date formats 2022-12-1 and 2022-12-01 have different meanings in search, 2022-12-1 equals 2022-12-1 00:00:00, but 2022-12-01 equals 2022-12-01 23:59:59. I used the former, thus no today's subscriptions pushed to me.
########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-1&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
##########################################################
$ curl -d "results_as_file=1&sdate=2022-11-29&edate=2022-12-01&subID=1085&subType=1" https://oceandata.sci.gsfc.nasa.gov/api/file_search
S3A_OL_1_EFR____20221129T155928_20221129T160228_20221129T180450_0179_092_325_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221130T153317_20221130T153617_20221130T173647_0179_092_339_2520_MAR_O_NR_002.SEN3.zip
S3A_OL_1_EFR____20221201T150706_20221201T151006_20221201T171826_0179_092_353_2520_MAR_O_NR_002.SEN3.zip

-Yuyuan

Tags:

dana.r.wilson
Posts: 71
Joined: Mon Apr 20, 2020 8:04 am America/New_York
Answers: 0

Re: inconsistent date argument in subscription search using command

by dana.r.wilson » Fri Dec 02, 2022 11:05 am America/New_York

Yuyuan
You used the incorrect format please use yyyy-mm-dd or yyyy-mm-dd hh:mm:ss.
https://oceandata.sci.gsfc.nasa.gov/api/file_search_help

oo_processing
Posts: 301
Joined: Wed Apr 06, 2005 12:11 pm America/New_York
Answers: 0
Has thanked: 5 times

Re: inconsistent date argument in subscription search using command

by oo_processing » Fri Dec 02, 2022 5:00 pm America/New_York

Thanks, I made the correction.

-Yuyuan

Post Reply