zijiezhaommhw / m_mhw1.0 Goto Github PK
View Code? Open in Web Editor NEWA MATLAB toolbox to detect and analyze marine heatwaves (MHWs).
License: GNU General Public License v3.0
A MATLAB toolbox to detect and analyze marine heatwaves (MHWs).
License: GNU General Public License v3.0
Documentation on the functions’ API in the readme includes a description of their outputs but nothing on inputs. Inputs are described in code comments within the functions themselves, but it would be helpful to have this info in the readme too.
The event_line
function was incorrectly plotting my MHW events when the time series started in Feb. However when I removed the first year of data so that my time series started on Jan 1st it correctly identified the events. This seems to be a (possibly accidental) deliberate decision and one which should be mentioned in the documentation as I did not see mention of it in there.
Possible solution (??) has now been suggested (#17).
The noted differences in results between the different implementations (MATLAB, Python, R) are worrisome. It's said that this is caused by differences in how the different languages evaluate percentile thresholds, but surely the code could be adapted to enforce consistent calculations? If not, can you demonstrate that this is the only difference between the implementations, and thus prove that no other discrepancies are hiding behind it?
Undefined function 'datetime' for input arguments of type 'double'.
Error in detect (line 164)
fake_doy = day(datetime(date_false),'dayofyear');
I have found two issues in the new code
1_ In the mean_and_trend function, the 1982 should be changed to data_here as not all people used the data from 1982.
2- the output of MHW days is not the same as in the old version.
Thanks
Hello! I'm trying to run an_example.m on matlab 2014b
And there is an error:
Error using >=
Matrix dimensions must agree.
Error in detect (line 176)
data_thre=num2cell(temp_clim(:,:,any(ind_fake'>=(ind_fake(fake_doy == i)-vWindowHalfWidth) & ind_fake' <= (ind_fake(fake_doy
==i)+vWindowHalfWidth),2)),3);
Error in an_example (line 28)
[MHW,mclim,m90,mhw_ts]=detect(sst_full,datenum(1982,1,1):datenum(2016,12,31),datenum(1982,1,1),datenum(2005,12,31),datenum(1993,1,1),datenum(2016,12,31));;
%take about 30 seconds.
What it can be?
There are no DOIs for citations in the paper or its .bib file; these are required by JOSS.
The license file simply states a name and a year, and does not appear to refer to any from the OSI approved list as required by JOSS.
The use of quantile() function in MATLAB raises some errors. Under modifications.
The MATLAB code for the functions themselves contains many warning messages indicating inefficient or unnecessary constructs. I strongly suggest the authors work through and eliminate these, to improve code legibility, and in some cases, its performance.
I'm trying to focus on MHW in the coastal areas of Greenland. Loaded the "sst" data and saved them as .mat files in the appropriate folder. I get an error:
Error using eval
Undefined function or variable 'sst_2006'.
Here's my code:
`
sst_full=NaN(280,112,datenum(2018,12,31)-datenum(2006,1,1)+1);
for i=2006:2016;
file_here=['sst_' num2str(i)];
load(file_here);
eval(['data_here=sst_' num2str(i) ';'])
sst_full(:,:,(datenum(i,1,1):datenum(i,12,31))-datenum(2006,1,1)+1)=data_here;
end`
Would be grateful to receive some help in this. OR is there another easier code of combining the files?
Seems like calculating the climatologies is too advanced for the Matlab 2015a
_Error using <=
Matrix dimensions must agree.
Error in detect (line 179)
m90(:,:,i) = quantile(temp_clim(:,:,any(ind_fake'>=(ind_fake(fake_doy == i)-vWindowHalfWidth) & ind_fake' <=
(ind_fake(fake_doy ==i)+vWindowHalfWidth),2)),vThreshold,3);_
On a Matlab 2020a this error did not appear.
Hello
Can this program calculate compound heat waves?
Thank
The separate package m_map is required to run the example scripts but no information is provided on how to obtain and install this. Consequently I cannot fully test the functional claims of the software.
m_map is also not listed as a requirement in the documentation. If you consider the example scripts to be not part of the software under review then that could perhaps be justified; m_map is not needed to actually execute the main functions. But as the example scripts are the only straightforward way to test the functionality, I'm not sure that that applies in this case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.