Closed frankwang95 closed 7 years ago
@frankwang95 can you try updating to v0.13.1? The exception should be fixed in that version
Hi @drewbo, sorry I see that the parsing issue is fixed. Is there a fix to the limit issue as well? I've been making requests to your api directly so these changes are a bit slow to come to me - has the query conventions changed?
The endpoint should support both older (lucene based) and newer syntax but I'm a bit behind on docs and testing to ensure consistency on that. If you append &limit=n
to the end of your direct API request it should work; let me know if that isn't the case
I had the same issue and fixed updating to v0.13.1. Thanks @drewbo
Hi Drewbo, sorry for giving you so much trouble, but the limit argument to the search string is still giving me issues. Running the following string:
Returns only one result:
In fact, I could be wrong, but it seems that any query I construct returns this same result. The start_date
and end_date
arguments don't make any impact either on the returned result.
No problem @frankwang95, I'd actually hit https://api.developmentseed.org/satellites/landsat
and see if that improves things; the other endpoint is forwarding to this one and I think the query parameters may get dropped? cc: @scisco
We've been migrating more of our work to the Sat-Utils repos and actually just uploaded some documentation at http://docs.sat-utils.org/
You've been a huge help! Everything is working now and those docs will be handy in the future.
It appears the the scene database API is still behaving somewhat erratically. When requests are made, return strings look something like this:
{u'meta': {u'website': u'https://api.developmentseed.org/satellites/', u'name': u'sat-api', u'license': u'CC0-1.0', u'limit': 1, u'found': 903065, u'page': 1}, u'results': [{u'BPF_NAME_OLI': u'LO8BPF20170118013816_20170118022031.01', u'NADIR_OFFNADIR': u'NADIR', u'data_geometry': {u'crs': {u'type': u'name', u'properties': {u'name': u'urn:ogc:def:crs:EPSG:8.9:4326'}}, u'type': u'Polygon', u'coordinates': [[[81.37965, -78.07199], [75.26086, -76.90308], [69.35418, -78.09054], [75.52485, -79.38313], [81.37965, -78.07199]]]}, u'sunAzimuth': 77.06545633, u'cloudCover': 1, u'sceneCenterLatitude': -78.14117, u'cartURL': u'http://earthexplorer.usgs.gov/order/process?dataset_name=LANDSAT_8&ordered=LC81121162017018LGN00', u'GROUND_CONTROL_POINTS_VERSION': 4, u'cloud_coverage': 12.67, u'scene_id': u'LC81121162017018LGN00', u'GROUND_CONTROL_POINTS_MODEL': -1, u'row': 116, u'imageQuality1': 9, u'cloudCoverFull': 12.67, u'browseURL': u'http://earthexplorer.usgs.gov/browse/landsat_8/2017/112/116/LC81121162017018LGN00.jpg', u'browseAvailable': u'Y', u'BPF_NAME_TIRS': u'LT8BPF20170113003504_20170113025501.01', u'dayOrNight': u'DAY', u'TIRS_SSM_MODEL': u'PRELIMINARY', u'CPF_NAME': u'L8CPF20170101_20170331.02', u'FULL_PARTIAL_SCENE': u'FULL', u'DATA_TYPE_L1': u'L1GT', u'lowerLeftCornerLatitude': -78.09054, u'sceneStartTime': u'2017:018:02:18:55.6907450', u'dateUpdated': u'2017-01-17', u'sensor': u'OLI_TIRS', u'thumbnail': u'https://ad-thumbnails.s3.amazonaws.com/LC81121162017018LGN00.jpg', u'sunElevation': 23.65621635, u'satellite_name': u'landsat-8', u'acquisitionDate': u'2017-01-18', u'PROCESSING_SOFTWARE_VERSION': u'LPGS_2.6.2', u'lowerRightCornerLongitude': 75.52485, u'lowerRightCornerLatitude': -79.38313, u'sceneCenterLongitude': 75.38062, u'upperLeftCornerLongitude': 75.26086, u'date': u'2017-01-18', u'path': 112, u'lowerLeftCornerLongitude': 69.35418, u'GEOMETRIC_RMSE_MODEL_X': 0, u'GEOMETRIC_RMSE_MODEL_Y': 0, u'sceneStopTime': u'2017:018:02:19:27.4607420', u'upperLeftCornerLatitude': -76.90308, u'upperRightCornerLongitude': 81.37965, u'DATE_L1_GENERATED': u'2017-01-17 22:14:55', u'upperRightCornerLatitude': -78.07199, u'sceneID': u'LC81121162017018LGN00', u'RLUT_FILE_NAME': u'L8RLUT20150303_20431231v11.h5', u'ROLL_ANGLE': 0, u'receivingStation': u'LGN'}]}
This looks like valid json but the api does not respond to the limit argument (every query only returns one result) and moreover, the search source code in landsat-utils encounters an exception when trying to parse it: