Custom Query (454 matches)
Results (37 - 39 of 454)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#42 | fixed | Vizualize Simulator output in SCEC-VDO | ||
Description |
E-Mail from Ned, 9/1/2010: The "Faults for Simulators" option in SCEC-VDO now uses the utility class: org.opensha.sha.simulators.eqsim_v04.General_EQSIM_Tools to get an ArrayList<RectangularElement> from the method getElementsList(). That utility classe (General_EQSIM_Tools) also has a method for getting events (getEventsList(), which returns ArrayList<EQSIM_Event>). Each EQSIM_Event object has the following methods for getting the element IDs and amounts of slip in the event: ArrayList<Integer> getAllElementIDs() ArrayList<Integer> getAllElementSlips() What I'd like SCEC VDO to be able to do is plot the slip in any one of the events. For example, the faults could all be gray, and then the element for a given event could be plotted in color that's proportional to the amount of slip. The user could either choose a specific ith event, or it could loop over them one by one (either by even temporal increments, or proportional to the actual time delay between events; the event time for each event is given by EQSIM_Event.getTimeInYears()). In fact, it would be cool to have some kind of slider bar so you could scroll through events. Lets try to talk about this today also. Thanks, Ned PS One thing to watch out for is that the ID in the various element and event objects is one plus the index in the arrays that hold those objects (the simulator group adopted the convention that their indices start from 1, not zero; I refer to their indices as "IDs" to avoid confusion). Again, I can explain more if this is not clear. |
|||
#43 | duplicate | Track user downloads on website | ||
#44 | fixed | create XY_DatasetAPI parent of DiscretizedFuncAPI that accepts scatter data | ||
Description |
E-mail from Ned, 09/02/2010: Kevin, I couldn't resist looking into this a bit. The jfreechart wrapper class we use is: org.opensha.commons.gui.plot.jfreechart.DiscretizedFunctionXYDataSet which takes a DiscretizedFuncList? (a list of DiscretizedFuncAPIs). The methods DiscretizedFunctionXYDataSet actually uses from DiscretizedFuncAPIs are: getX(int) getY(int) getDelta() (but with an if(obj instanceof EvenlyDiscretizedFunc?), so this should be OK; this is for histogram plotting) getName() getInfo() getNum() One thing DiscretizedFunctionXYDataSet assumes is that getX(0) is minimum value, but this can easily be swapped with getMinX(). I propose we define and XY_DatasetAPI that is a parent to DiscretizedFuncAPI. This would include all the current DiscretizedFuncAPI methods listed in blue below, but not those listed in red (as the latter ordering and non-duplicates on the x axis). Then we just need to change DiscretizedFunctionXYDataSet to take an XY_DatatsetList (which we'd have to define) rather than the DiscretizedFuncList?. We also need to change its getX(0) call to getMinX() as mentioned above. There are also all the classes used between org.opensha.sha.gui.infoTools.GraphiWindowAPI_Impl (the useful tool I mentioned below) and DiscretizedFunctionXYDataSet that would need to be changed (but I think just swapping DiscretizedFuncList? with XY_DatatsetList would do it. Of course I might be missing something here, so please check my math. Cheers, Ned DiscretizedFuncAPI
(to be included in XY_DatasetAPI)
|