Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http://comcat.cr.usgs.gov/fdsnws/event/1/ not working #3

Open
Hrishi1909 opened this issue Nov 1, 2022 · 4 comments
Open

http://comcat.cr.usgs.gov/fdsnws/event/1/ not working #3

Hrishi1909 opened this issue Nov 1, 2022 · 4 comments

Comments

@Hrishi1909
Copy link

Hey just trying to implement it but found out this :- http://comcat.cr.usgs.gov/fdsnws/event/1/ is not working ? any idea why?

@emartinez-usgs
Copy link
Member

Hi @Hrishi1909 -

Please try using this URL: https://earthquake.usgs.gov/fdsnws/event/1/

@Hrishi1909
Copy link
Author

Hrishi1909 commented Nov 2, 2022

this link works but the it gives this error . any idea why? Error in scan(datarequests[1], list(time = "", latitude = 0, longitude = 0,
scan() expected 'a real', got 'reviewed'

this is my code source("searchcomcat.R") #comcatdata <- comcathypocsv() comcatdata <- comcathypocsv(minmagnitude=3)

@emartinez-usgs
Copy link
Member

@mhearne-usgs any ideas?

@aglogowski
Copy link

aglogowski commented Jun 23, 2023

I simply make alternate for scan function in line 198
data <-read.csv(datarequests[1]) #data <- scan(datarequests[1],list(time="",latitude=0,longitude=0,depth=0,mag=0,magtype="",nst=0,gap=0,dmin=0,rms=0,net="",id="",updated="",place="",type=""),sep=",",quote="\"",skip=1,quiet=TRUE)
and line 202
data2 <-read.csv(datarequests[i]) #data2 <- scan(datarequests[i],list(time="",latitude=0,longitude=0,depth=0,mag=0,magtype="",nst=0,gap=0,dmin=0,rms=0,net="",id="",updated="",place="",type=""),sep=",",quote="\"",skip=1,quiet=TRUE)
Now the file works well on a first look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants