Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Calculating consecutive days in a 3D array
Post: Calculating consecutive days in a 3D array

I am trying to calculate the duration of consecutive days for a multidimensional array (latitude, longitude and time). I have a piece of code that works for a single grid point (1D array) but would li...
chai0404 Data Science 0 1,904 Aug-27-2020, 10:28 PM
    Thread: Creating look up table/matrix from 3d data array
Post: RE: Creating look up table/matrix from 3d data arr...

The image I have attached shows the for loop I have written but there is something wrong with it as it doesn't give me what I expect to see.
chai0404 Data Science 3 2,897 Apr-08-2020, 11:28 PM
    Thread: Creating look up table/matrix from 3d data array
Post: Creating look up table/matrix from 3d data array

Hi, I have a data array of coastal grid cells and I need to find adjacent ocean cells from a different dataset. To begin with, I have a 3D data array with lat, lon and time dimensions. In this data a...
chai0404 Data Science 3 2,897 Apr-08-2020, 03:48 AM
    Thread: python equivalent to MATLAB xcov
Post: RE: python equivalent to MATLAB xcov

Yes I had Googled it but not found anything, thanks for your help!
chai0404 General Coding Help 2 3,880 Apr-02-2020, 10:29 PM
    Thread: python equivalent to MATLAB xcov
Post: python equivalent to MATLAB xcov

Hi, Is there a python equivalent to MATLAB's xcov? I am trying to do a cross-covariance. Cheers!
chai0404 General Coding Help 2 3,880 Mar-26-2020, 04:59 AM
    Thread: Identifying consecutive masked values in a 3D data array
Post: RE: Identifying consecutive masked values in a 3D ...

Many thanks for your help! I have a follow-up question - How can I identify the number of consecutive events, say for a particular month or season, for a 3d data array with longitude, latitude and t...
chai0404 Data Science 12 5,785 Jan-31-2020, 11:36 PM
    Thread: Identifying consecutive masked values in a 3D data array
Post: RE: Identifying consecutive masked values in a 3D ...

Sorry, you're right. It should be: input_array([[[1, 1, 0, 0, 0, 1, 1, 1, 1, 0], [1, 0, 1, 0, 0, 1, 0, 1, 1, 0], [1, 0, 1, 1, 0, 1, 0, 0, 1, 0]], [[0, 0, 0, 0, 0, 1, 0, 1, 0, 1], [0, 1, 1, 1, 0, 0, ...
chai0404 Data Science 12 5,785 Jan-19-2020, 10:05 PM
    Thread: Identifying consecutive masked values in a 3D data array
Post: RE: Identifying consecutive masked values in a 3D ...

How do I make this work for a 3D array such as the one given below? input_array([[[1, 1, 0, 0, 0, 1, 1, 1, 1, 0], [1, 0, 1, 0, 0, 1, 0, 1, 1, 0], [1, 0, 1, 1, 0, 1, 0, 0, 1, 0]], ...
chai0404 Data Science 12 5,785 Jan-16-2020, 10:35 PM
    Thread: Identifying consecutive masked values in a 3D data array
Post: RE: Identifying consecutive masked values in a 3D ...

Thanks for the explanations!
chai0404 Data Science 12 5,785 Jan-16-2020, 12:27 AM
    Thread: Identifying consecutive masked values in a 3D data array
Post: RE: Identifying consecutive masked values in a 3D ...

Thanks for your help! I created a function using the code you shared. However, I get the following error - TypeError: list indices must be integers or slices, not tuple def consecutive(masked_array)...
chai0404 Data Science 12 5,785 Jan-14-2020, 12:30 AM
    Thread: Identifying consecutive masked values in a 3D data array
Post: Identifying consecutive masked values in a 3D data...

I have a large 3 dimensional (time, longitude, latitude) input array of daily tmax values. I have masked the values which exceed a certain threshold. I need to find those entries where the mask is Tru...
chai0404 Data Science 12 5,785 Jan-13-2020, 03:38 AM
    Thread: Identifying consecutive masked values in a 3D data array
Post: Identifying consecutive masked values in a 3D data...

I have a large 3 dimensional (time, longitude, latitude) input array of daily tmax values. I have masked the values which exceed a certain threshold. I need to find those entries where the mask is Tru...
chai0404 Data Science 12 5,785 Jan-12-2020, 10:55 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020