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
inconsistent date argument in subscription search using command
-
- Posts: 337
- Joined: Wed Apr 06, 2005 12:11 pm America/New_York
- Has thanked: 10 times
- Been thanked: 3 times
-
- Posts: 71
- Joined: Mon Apr 20, 2020 8:04 am America/New_York
Re: inconsistent date argument in subscription search using command
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
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
-
- Posts: 337
- Joined: Wed Apr 06, 2005 12:11 pm America/New_York
- Has thanked: 10 times
- Been thanked: 3 times
Re: inconsistent date argument in subscription search using command
Thanks, I made the correction.
-Yuyuan
-Yuyuan