Skip to content

Commit

Permalink
Merge pull request #222 from GeoNet/test-url-update
Browse files Browse the repository at this point in the history
Update FDSN batch test urls.
  • Loading branch information
sue-h-gns authored May 17, 2023
2 parents 8eeb81c + 2dd41e7 commit ff2e950
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions fdsn-batch-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ sample_date="2018-05-15"
sample_tstart="23:45:00"
sample_tend="23:45:10"
# Note1 : this date/time string replacing won't work when start/end window is crossing midnight
# Note2 : For OSX replace `-d "20 minutes ago"` with `-v-20M`, and -v-15M for end time.
# Note3 : The time range (20 minutes ago) is for NRT service. If it's FDSN archive then 10080 minutes ~ 10075 minutes ago.
nrt_date=$(TZ="GMT0" date -d "20 minutes ago" +'%Y-%m-%d')
nrt_tstart=$(TZ="GMT0" date -d "20 minutes ago" +'%H:%M:%S') #start: 20 min age
nrt_tend=$(TZ="GMT0" date -d "15 minutes ago" +'%H:%M:%S') #end: 15 min ago
# Note2 : For OSX replace `-d "60 minutes ago"` with `-v-60M`, and -v-30M for end time.
# Note3 : The time range (60 minutes ago) is for NRT service. If it's FDSN archive then 10080 minutes ~ 10075 minutes ago.
nrt_date=$(TZ="GMT0" date -d "60 minutes ago" +'%Y-%m-%d')
nrt_tstart=$(TZ="GMT0" date -d "60 minutes ago" +'%H:%M:%S') #start: 60 min ago
nrt_tend=$(TZ="GMT0" date -d "30 minutes ago" +'%H:%M:%S') #end: 30 min ago
echo "NRT test date: $nrt_date $nrt_tstart to $nrt_tend"

linenum=0
Expand Down
4 changes: 2 additions & 2 deletions fdsn-test-urls.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=WEL&locat
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&location=3?,*&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10

# Would return part only (99 is non existing for instance )
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&location=30,99&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&location=40,99&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=PREZ,KHEZ&location=30,31,32,33,34,35,36,37,38,39&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10

##### Channel code queries
Expand All @@ -36,7 +36,7 @@ https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&chan
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=?T?&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=?TZ&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=BT*&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=??F&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=??Z&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10

# List Channel
https://service.geonet.org.nz/fdsnws/dataselect/1/query?network=NZ&sta=RBCT&channel=HDF,LTZ,HHZ&starttime=2018-05-15T23:45:00&endtime=2018-05-15T23:45:10
Expand Down

0 comments on commit ff2e950

Please sign in to comment.