Skip to content

Instantly share code, notes, and snippets.

@drewbo
Last active August 29, 2015 14:21
Show Gist options
  • Save drewbo/ef8a7347d9e1eafb39d4 to your computer and use it in GitHub Desktop.
Save drewbo/ef8a7347d9e1eafb39d4 to your computer and use it in GitHub Desktop.

Let's make Landsat API have better search syntax

General Rules (replacing Lucene)

  • Instead of search?search=, let's just start adding params after search?
  • Instead of joining params with +AND+, let's use &
  • Instead of :, let's use =
  • Instead of using [X+TO+Y], let's use [X,Y] (and maybe sort them afterwards if they were flipped?)

Fields (many are empty, let's not document those)

New Field Name Old Name (if Different) Type Example Value Notes
acquisitionDate datestring 2013-12-12
sceneStart sceneStartTime datetime 2013:346:18:47:23.0605230
sceneStop sceneStopTime datetime 2013:346:18:47:54.8305190
sceneID string LC80440342013346LGN00
row integer 34
path integer 44
thumbnail browseURL string http://earthexplorer.usgs.gov/browse/landsat_8/2013/044/034/LC80440342013346LGN00.jpg
cloudCover cloudCoverFull float 0.76 replaces old cloudCover which is always(?) empty
sunAzimuth float 160.64830388
sunElevation float 27.06930431
lrLon lowerRightCornerLongitude float -121.36425 making shorter
lrLat lowerRightCornerLatitude float 36.40613
llLon lowerLeftCornerLongitude float -123.43972
llLat lowerLeftCornerLatitude float 36.80383
urLon upperRightCornerLongitude float -120.82587
urLat upperRightCornerLatitude float 38.12929
ulLon upperLeftCornerLongitude float -122.94957
ulLat upperLeftCornerLatitude float 38.52827
centerLon sceneCenterLongitude float -122.14336
centerLat sceneCenterLatitude float 37.47448
dayOrNight string DAY
receivingStation string LGN
browseAvailable boolean True Need to convert bool to string
dateUpdated dateString 2015-01-13
sensor string OLI_TIRS

Other Fields that have values that I don't think we should document

  • cartURL
  • imageQuality1
  • GEOMETRIC_RMSE_MODEL_X
  • GEOMETRIC_RMSE_MODEL_Y
  • DATA_TYPE_L1
  • NADIR_OFFNADIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment