Page 1 of 1
JPSS1 search pattern
Posted: Tue Jun 25, 2019 5:41 pm America/New_York
by khyde
Hello,
I was wondering what I should use as the sensor name for the VIIRS-JPSS files when using the file_search.cgi utility. I've tried a few different options, but so far I have not been able to find any of the JPSS files. Here is an example of the search pattern:
search=*L1A_JPSS1.nc&sensor=jpss1&sdate=2019-03-27&edate=2019-05-25&dtype=L1
Thanks,
Kim
JPSS1 search pattern
Posted: Tue Jun 25, 2019 6:13 pm America/New_York
by OB ODPS - jgwilding
Hi Kim.
Assuming you're using the command line for this, try this as your search string:
"results_as_file=1&sensor=viirsj1&sdate=2019-03-27&edate=2019-05-25&dtype=L1&std_only=1&addurl=1"
I added std_only to eliminate extracts, added addurl to provide download URLs, added results_as_file to make output more readable, and eliminated search keyword. The sensor should be viirsj1. This returns a list like this that includes the L1A and GEO counterpart.
https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2019145234800.GEO-M_JPSS1.nchttps://oceandata.sci.gsfc.nasa.gov/cgi/getfile/V2019145234800.L1A_JPSS1.ncRegards,
john
JPSS1 search pattern
Posted: Wed Jun 26, 2019 10:06 am America/New_York
by khyde
John,
Thank you for the quick reply. Yes, I am using the command line, but I am still not able to get results for the JPSS1 sensor. Below are some of the options I tried.
wget --post-data="results_as_file=1&sensor=viirsji&sdate=2019-03-25&edate=2019-03-27&dtype=L1&cksum=1&std_only=1" -O -
https://oceandata.sci.gsfc.nasa.gov/search/file_search.cgi > FILELIST.txt
Returns a list that includes MODISA and VIIRS files, but not JPSS1.
wget --post-data="search=*L1A_SNPP*&results_as_file=1&sdate=2019-03-25&edate=2019-03-27&dtype=L1&cksum=1&std_only=1" -O -
https://oceandata.sci.gsfc.nasa.gov/search/file_search.cgi > FILELIST.txt
Returns a list of VIIRS SNPP files so I know the "search" string option works.
However,
wget --post-data="search=*L1A_JPSS*&results_as_file=1&sdate=2019-03-25&edate=2019-03-27&dtype=L1&cksum=1&std_only=1" -O -
https://oceandata.sci.gsfc.nasa.gov/search/file_search.cgi > FILELIST.txt
Returns an error stating that no files matched my query.
Are the JPSS1 files searchable? I can get the files from the L1/L2 browser and now have a subscription for JPSS, but I do use the search option in my nightly downloads to get the checksums. Any thoughts on what I am doing wrong?
Thanks again,
Kim
JPSS1 search pattern
Posted: Wed Jun 26, 2019 11:24 am America/New_York
by bruce
In your first example, you have the sensor as viirsji, I'm pretty sure it should be viirsj1 (note the digit 1, not lower case I or L)
JPSS1 search pattern
Posted: Wed Jun 26, 2019 11:59 am America/New_York
by khyde
Hello Bruce,
Yes, I did have an error in the first example, but even after changing it to viirsj1, I still only get back Aqua, Terra and VIIRS-SNPP files, not JPSS.
Kim
JPSS1 search pattern
Posted: Wed Jun 26, 2019 1:21 pm America/New_York
by OB ODPS - jgwilding
Kim,
In the most-recent example you posted, the sensor argument isn't listed. When i use this post string, i get VIIRS-J1 files:
"sensor=viirsj1&search=*L1A_SNPP*&results_as_file=1&sdate=2019-03-25&edate=2019-03-27&dtype=L1&cksum=1&std_only=1"
Try that?
john
JPSS1 search pattern
Posted: Wed Jun 26, 2019 2:13 pm America/New_York
by khyde
John,
Yes, in one of the examples, I was trying to show that I could find the SNPP data using the "search" option without a sensor listed, however when I tried searching for JPSS1 or using the sensor viirsj1, I don't get any files. Right now I am looking for a valid search string that will return just JPSS1 files. Any suggestions? The example you gave returns SNPP and not JPSS1.
Thanks,
Kim
JPSS1 search pattern
Posted: Wed Jun 26, 2019 3:06 pm America/New_York
by OB ODPS - jgwilding
Kim,
I think the problem is that you're running the old file_search.cgi.
Try this URL instead:
https://oceandata.sci.gsfc.nasa.gov/api/file_searchalong with the search string i provided.
john
JPSS1 search pattern
Posted: Wed Jun 26, 2019 3:10 pm America/New_York
by khyde
I think I solved the problem by replacing "search" with "api" in the https:// address. The following works and returns exactly what I am looking for. wget -q --post-data="sensor=viirsj1&sdate=2019-01-01&edate=2019-01-02&dtype=L1&cksum=1&search=*L1A_JPSS1*&results_as_file=1" -O -
https://oceandata.sci.gsfc.nasa.gov (/api/file_search.cgi) > FILELIST.txt Thank you everyone for your suggestions.Kim