stat157 / analyzers

1 stars 3 forks source link

MDA Analyzer Group and Error Plots #6

Closed aparker92 closed 10 years ago

aparker92 commented 10 years ago

Hi,

We are trying to rewrite Leun's code so that it can be used for all models. When your code outputs a time interval, could you also make it output a range/length that the alarm is on? The code we have that runs the ETAS model currently takes in that number.

Thank you!

kqdtran commented 10 years ago

Hey Alyssa, I think our code currently produce the alarm length as Python's timedelta object. What exact input would you like it to be in? Does a single floating point number representing the number of seconds the alarm was on work?

aparker92 commented 10 years ago

Sorry for the delay. We need the the length of the time the alarm is on (like you just said) and the magnitude of the earthquake. Floating point number will work. Since we are currently working in R, we can't use a Python object.

kqdtran commented 10 years ago

Ok we'll try to work on it during our meeting tonight! Will keep you posted D:

kqdtran commented 10 years ago

Hey Alyssa,

We've created a sample csv file from the 2013 catalog. The left number is the magnitude of the earthquake, and the right number is how long the earthquake was on. Could you take a look and see if that's what you need? https://github.com/stat157/analyzers/raw/master/mda_data/alarm_2013.csv

(Clicking on the link will download it to your local machine. If you don't want to do that, you can pull the Analyzer github repo, and the file should be under the mda_data directory.)