[ 
https://issues.apache.org/jira/browse/SDAP-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joseph C. Jacob updated SDAP-318:
---------------------------------
    Description: 
The attached single-granule dataset covers a spatial bounds with longitudes in 
_*[-118.9, -116.5]*_ and latitudes in _*[33.4, 34.8].*_ After ingest, SDAP's 
{color:#0747a6}+/timeSeriesSpark+{color} endpoint returns the expected time 
series if the job request specifies bounds within the western hemisphere.  For 
example, the following bounds works as expected: 
*minLon=-180&minLat=-90&maxLon=0&maxLat=90*. However, any larger bounding box 
results in an empty list being returned from 
{color:#0747a6}+/timeSeriesSpark+{color}. For example, 
*minLon=-180&minLat=-90&maxLon=1&maxLat=90* results in the empty list. Note 
that the only difference in the two bounding boxes is that the one that fails 
has *maxLon=1* and the one that works fine has *maxLon=0*. Both bounds should 
result in the same time series since they both encompass the entire domain of 
the dataset.

SDAP query to test (assumes indicated dataset name): 
{code:java}
/timeSeriesSpark?ds=REGIONAL_LABASIN_CH4_fluxes&minLon=-180&minLat=-90&maxLon=180&maxLat=90&startTime=2015-01-28T00:00:00Z&endTime=2016-12-24T23:59:59Z{code}
 

  was:
The attached single-granule dataset covers a spatial bounds with longitudes in 
_*[-118.9, -116.5]*_ and latitudes in _*[33.4, 34.8].*_ SDAP's 
{color:#0747a6}+/timeSeriesSpark+{color} endpoint returns the expected time 
series if the job request specifies bounds within the western hemisphere.  For 
example, the following bounds works as expected: 
*minLon=-180&minLat=-90&maxLon=0&maxLat=90*. However, any larger bounding box 
results in an empty list being returned from 
{color:#0747a6}+/timeSeriesSpark+{color}. For example, 
*minLon=-180&minLat=-90&maxLon=1&maxLat=90* results in the empty list. Note 
that the only difference in the two bounding boxes is that the one that fails 
has *maxLon=1* and the one that works fine has *maxLon=0*. Both bounds should 
result in the same time series since they both encompass the entire domain of 
the dataset.

SDAP query to test: 
{code:java}
/timeSeriesSpark?ds=REGIONAL_LABASIN_CH4_fluxes&minLon=-180&minLat=-90&maxLon=180&maxLat=90&startTime=2015-01-28T00:00:00Z&endTime=2016-12-24T23:59:59Z{code}
 


> TimeSeriesSpark returns empty list for bounding box larger than a hemisphere.
> -----------------------------------------------------------------------------
>
>                 Key: SDAP-318
>                 URL: https://issues.apache.org/jira/browse/SDAP-318
>             Project: Apache Science Data Analytics Platform
>          Issue Type: Bug
>            Reporter: Joseph C. Jacob
>            Priority: Major
>         Attachments: flux_vineet_sdap.nc
>
>
> The attached single-granule dataset covers a spatial bounds with longitudes 
> in _*[-118.9, -116.5]*_ and latitudes in _*[33.4, 34.8].*_ After ingest, 
> SDAP's {color:#0747a6}+/timeSeriesSpark+{color} endpoint returns the expected 
> time series if the job request specifies bounds within the western 
> hemisphere.  For example, the following bounds works as expected: 
> *minLon=-180&minLat=-90&maxLon=0&maxLat=90*. However, any larger bounding box 
> results in an empty list being returned from 
> {color:#0747a6}+/timeSeriesSpark+{color}. For example, 
> *minLon=-180&minLat=-90&maxLon=1&maxLat=90* results in the empty list. Note 
> that the only difference in the two bounding boxes is that the one that fails 
> has *maxLon=1* and the one that works fine has *maxLon=0*. Both bounds should 
> result in the same time series since they both encompass the entire domain of 
> the dataset.
> SDAP query to test (assumes indicated dataset name): 
> {code:java}
> /timeSeriesSpark?ds=REGIONAL_LABASIN_CH4_fluxes&minLon=-180&minLat=-90&maxLon=180&maxLat=90&startTime=2015-01-28T00:00:00Z&endTime=2016-12-24T23:59:59Z{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to