Re: How to turn this Matlab code into python

2022-11-08 Thread Dioumacor FAYE
Merci beaucoup Christian pour le lien. Le mar. 8 nov. 2022 à 17:08, Christian Gollwitzer a écrit : > Am 08.11.22 um 09:01 schrieb Dioumacor FAYE: > >>From datenum to data_mjja=precp(:,ind_mjja); > > I think the code filters data based on calendar dates. I'd guess that > you can do that most easi

Re: How to turn this Matlab code into python

2022-11-08 Thread Christian Gollwitzer
Am 08.11.22 um 09:01 schrieb Dioumacor FAYE: From datenum to data_mjja=precp(:,ind_mjja); I think the code filters data based on calendar dates. I'd guess that you can do that most easily with pandas. https://pandas.pydata.org/docs/user_guide/timeseries.html Christian Le lun. 7 no

Re: How to turn this Matlab code into python

2022-11-08 Thread Dioumacor FAYE
From datenum to data_mjja=precp(:,ind_mjja); Le lun. 7 nov. 2022 à 21:42, Christian Gollwitzer a écrit : > Am 07.11.22 um 18:12 schrieb Dioumacor FAYE: > > hi everyone > > I wanted to transform this matlab code into python. If anyone can help me > > please let me know. > > load /media/lpaosf/Dio

Re: How to turn this Matlab code into python

2022-11-07 Thread Christian Gollwitzer
Am 07.11.22 um 18:12 schrieb Dioumacor FAYE: hi everyone I wanted to transform this matlab code into python. If anyone can help me please let me know. load /media/lpaosf/Dioumss/maman/data/precip_chirps_SEN_1981-2018.mat prcp = reshape(precip,[140*100,13879]); dates = datenum(1981,1,1):datenum(20

How to turn this Matlab code into python

2022-11-07 Thread Dioumacor FAYE
hi everyone I wanted to transform this matlab code into python. If anyone can help me please let me know. load /media/lpaosf/Dioumss/maman/data/precip_chirps_SEN_1981-2018.mat prcp = reshape(precip,[140*100,13879]); dates = datenum(1981,1,1):datenum(2018,12,31); date = datevec(dates); ind_mjja=find