Rank: 362 based on 295 downloads (last 30 days) and 11 files submitted
photo

M Sohrabinia

E-mail
Company/University
University of Canterbury
Lat/Long
-43.523716, 172.5843

Personal Profile:

 

Watch this Author's files

 

Files Posted by M Sohrabinia View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Sep 2014 Screenshot Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia outliers, thompson tau, matrix outliers, indexes of outliers 75 10
  • 3.33333
3.3 | 6 ratings
06 Jun 2013 Screenshot Find commontimes Finds common date-times from two or more date-time vectors with a given tolerance in seconds Author: M Sohrabinia find common times, common dates, common datetimes, similar times, similar dates, matching times 4 0
22 May 2013 Screenshot Read netCDF files Reads netCDF data for given fields from a list of given files Author: M Sohrabinia read netcdf files, read nc fields, timeseries from netcd..., read netcdf file attr..., extract netcdf fields 12 0
14 Feb 2013 Screenshot Build custom colormaps Buillds any sequence of colormaps based on wrgbcmyk colors Author: M Sohrabinia colormap, custom colormap, build colormap, color gradient, bw colormap, rgb colormap 41 3
  • 4.66667
4.7 | 3 ratings
10 Dec 2012 Screenshot Atmospheric pressure unit conversion A simple tool to be integrated in longer scripts which require pressure conversions Author: M Sohrabinia atmospheric pressure ..., pa to psi, pa to bar, pa to atm, pa to torr 5 0
Comments and Ratings by M Sohrabinia View all
Updated File Comments Rating
14 Sep 2014 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia

@Rob: did you try the updated code?

10 Sep 2014 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia

@John D'Errico: Thanks for your valuable feedback, it was very detailed and helpful, like those comments that sometimes I get from good reviewers. However, I do not agree with your point about Jered's comment (what you interpret from that comment is not what I read from it unless there is a magic meaning there that I dont get it). Anyway, I have put more notes in the code which clarifies that this code won't be able to find an outliers on a nicely fitted curve. I have another code submitted here named 'regoutleirs' which might be useful to find outliers in bivariate fitted data. It uses the residuals vector.Thanks again for your useful feedback

23 Aug 2014 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia

@Jered: I wonder why you are commenting and rating without understanding the code properly, just take a look at the examples given above, do they have zero mean? What were your errors using this code? You need to be specific if you really want to provide useful feedback.

01 Dec 2013 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia

@Ahmad: At this stage, my function can only handle a column/row vector or a matrix but you can call this function three times each time giving one matrix of your 3D matrix, it will remove outliers from that matrix according to Thompson Tau rule. If you need to remove the outliers from the 3D matrix considering all values in one go, you would need to concatenate the 3D matrix into a single matrix, call this function and then reconstruct the 3D matrix in the same order you had concatenated.

27 Sep 2013 Build custom colormaps Buillds any sequence of colormaps based on wrgbcmyk colors Author: M Sohrabinia

@Alfredo: thanks for your comment, you mean the range of the output? such a 0 to 1?

Comments and Ratings on M Sohrabinia's Files View all
Updated File Comment by Comments Rating
30 Oct 2014 Build custom colormaps Buillds any sequence of colormaps based on wrgbcmyk colors Author: M Sohrabinia Rafael Madrid

22 Oct 2014 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia Rob Campbell

Yes, I confirm it finds the zero in John's example.

14 Oct 2014 Find pixel indices in HDF-EOS files based on LatLon coordinates Finds x-y direct indexes of one or more LatLon coordinate pairs in certain HDF-EOS files Author: M Sohrabinia Shanshan

Line 202 and 203 do not work for MODIS tiles with sinusoidal projection in North America. An option is to change the two lines as:
x=abs(x*dist1degree-ULx0);
y=abs(y*dist1degree-ULy0);

Did not test for other places or projections.

14 Oct 2014 Find pixel indices in HDF-EOS files based on LatLon coordinates Finds x-y direct indexes of one or more LatLon coordinate pairs in certain HDF-EOS files Author: M Sohrabinia Shanshan

14 Sep 2014 Remove outliers Turns outliers from a vector or matrix to NaN based on modified Thompson Tau method Author: M Sohrabinia M Sohrabinia

@Rob: did you try the updated code?

Contact us