CelsoReyes / zmap7

ZMAP Seismology Software. V 7.x has been updated to MATLAB R2018a.
79 stars 40 forks source link

EMR method does't work #60

Open nnn991 opened 3 years ago

nnn991 commented 3 years ago

Describe the bug

Hello. i have some question to use zmap7.

i want to use emr method. but there is no way to how use emr method. so i set up grid define and sample radius, but emr method doesn't work.

sample radius also didn't work properly.

And like same way above, plus set decluster. but, emr does not work.

is there any way how can use emr method detail?

or

emr method did not working yet?

VvanderHeiden commented 2 years ago

Dear @CelsoReyes,

Currently, I am running the ZMAP 7.1 software package on a Linux machine in order to determine the Mc through the EMR method. When loading in my earthquake catalog I can see that my data is read in correctly because of hypocenter, magnitudes, and date times being correct. Moreover, the Mc determined by the MaxCurvature methods seems to work as well. However, when wanting to run the EMR method through f(x,y) > Mc, a- and b- value map > Choose the calculation: "McEMR" the following error in the MatLab console is thrown:

Error using calc_Mc (line 71)
this only works with full catalogs

Error in XYfun.bvalgrid/Calculate (line 88)
            [~, mcCalculator] = calc_Mc([], obj.mc_choice, obj.fBinning, obj.fMccorr);

Error in ZmapFunction/doIt (line 192)
            obj.Calculate();

Error in XYfun.bvalgrid>@(varargin)obj.doIt(varargin{:}) (line 76)
            zdlg.Create('Name', 'b-Value Grid Parameters', 'WriteToObj', obj, 'OkFcn', @obj.doIt);

Error in ZmapDialog/okDlg (line 980)
            obj.OkFcn(); % call the function provided by the user upon dialog creation

Error in ZmapDialog>@(src,~)obj.okDlg() (line 898)
                        'Callback',@(src,~)obj.okDlg());

Error while evaluating DestroyedObject Callback.

Is this an issue related to the reworking of ZMAP 6 to 7.1? or does this have to do with ZMAP not being fully compatible with Linux systems?

Looking forward to any updates on this bug.

yeayzs123 commented 7 months ago

i have the same issue