Exemplo n.º 1
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'product', 'min_lat', 'max_lat',
          'min_lon', 'max_lon', 'min_pressure', 'max_pressure',
          'min_altitude', 'max_altitude', 'start_time', 'end_time',
          'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data in provided area"),
         description=(
             "Get data for a certain area\n"
             "\n"
             "Provide latitude and/or longitude limits to get data for a "
             "certain area of the earth.\n"
             "\n"
             "If no latitude or longitude limits are provided, data for "
             "the whole earth is returned.\n"
             "\n"
             "Choose between min/max altitude and min/max pressure."
             "\n"
             "Example url parameters:\n"
             "\n"
             "    product=p1&product=p2&min_pressure=100&max_pressure=100&"
             "start_time=2015-10-11&end_time=2016-02-20&min_lat=-80&"
             "max_lat=-70&min_lon=150&max_lon=200")
     )
Exemplo n.º 2
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'date', 'product',
          'min_pressure', 'max_pressure', 'min_altitude', 'max_altitude',
          'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data for provided day"),
         description=(
             "Get data for a certain day\n"
             "\n"
             "Choose between min/max altitude and min/max pressure.\n"
             "\n"
             "Example query:\n"
             "\n"
             "    product=p1&product=p2&min_pressure=1000&max_pressure=1000"
         )
     )
Exemplo n.º 3
0
 def _swagger_def(self, version):
     return SWAGGER.get_path_definition(
         ['level2'],
         ['project', 'product', 'location', 'radius',
          'min_pressure', 'max_pressure', 'min_altitude', 'max_altitude',
          'start_time', 'end_time', 'min_scanid', 'document_limit'],
         {
             "200": SWAGGER.get_type_response('L2', is_list=True),
             "400": SWAGGER.get_response('Level2BadQuery')
         },
         summary=(
             "Get data close to provided location"),
         description=(
             "Provide one or more locations and a radius to get "
             "data within the resulting circles on the earth surface.\n"
             "\n"
             "Choose between min/max altitude and min/max pressure.\n"
             "\n"
             "Example query:\n"
             "\n"
             "   product=p1&product=p2&min_pressure=100&max_pressure=1000&"
             "start_time=2015-10-11&end_time=2016-02-20&radius=100&"
             "location=-24.0,200.0&location=-30.0,210.0")
     )