![]() On every computer platform (in any language), there are floating-point numbers which are not exactly representable. I think you are running into issues with floating-point precision. In this case I get the following numbers:Ī=where(mass gt 0.04 and mass le 0.05,count) Mmod=Ī=where(mass gt massi and mass le mmod(j),count) However, when I use the where function, I get some "holes". ![]() I.e., the value 0.01 appears 79 times, the value 0.02, 57 times, etc. When I use the histogram function I get a certain number of counts for all intervals: I have a similar problem but I'm comparing intervals to avoid the float-precision problem. The value is there, It is the last value in the array. Ncom_table.pro: desired or most recent time not found Print, 'ncom_table.pro: desired or most recent time not found'Īnd it says the requested value is not there everytime.ĭncom.dt.julian is: 95528.427 95528.438 95528.448 I = where(dncom.dt.julian eq dt.julian, count) Find index of requested date & time Print, 'dncom.dt.julian is: ', dncom.dt.julian ![]() ![]() I have a problem with a particular call to the 'where' function that I don't understand. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |