iris-edu / irisws-syngine

Project components for the IRIS Synthetics Engine (irisws-syngine) web service
GNU General Public License v2.0
2 stars 0 forks source link

Code 204 returned for invalid dt settings #30

Open krischer opened 8 years ago

krischer commented 8 years ago

Valid request:

http://service.iris.edu/irisws/syngine/1/query?model=prem_i_2s&sourcelatitude=26.039501154301607&sourcelongitude=-117.77516820835515&sourcedepthinmeters=376814.17904499&receiverlatitude=-34.483622476558644&receiverlongitude=152.0504668589753&components=ZNE&format=miniseed&dt=0.1

The following two should return with an error code and a descriptive message.

dt too high (returns 204):

http://service.iris.edu/irisws/syngine/1/query?model=prem_i_2s&sourcelatitude=26.039501154301607&sourcelongitude=-117.77516820835515&sourcedepthinmeters=376814.17904499&receiverlatitude=-34.483622476558644&receiverlongitude=152.0504668589753&components=ZNE&format=miniseed&dt=5.0

dt too low (returns 204):

http://service.iris.edu/irisws/syngine/1/query?model=prem_i_2s&sourcelatitude=26.039501154301607&sourcelongitude=-117.77516820835515&sourcedepthinmeters=376814.17904499&receiverlatitude=-34.483622476558644&receiverlongitude=152.0504668589753&components=ZNE&format=miniseed&dt=0.000001

You could just forward the errors from the Instaseis Server:

HTTP 400: Cannot downsample. The sampling interval of the database is 4.99736 seconds. Make sure to choose a smaller or equal one.

and

HTTP 400: The smallest possible dt is 0.01. Please choose a smaller value and resample locally if needed.