[Thread Prev][Thread Next][Index]

Re: [ferret_users] Size of a variable



Hi Olivier,


Thanks so much for your help. I have already tried your way, and it works perfectly fine.


Kind regards,


Estanislao



From: Olivier Marti <olivier.marti@xxxxxxxxxxxx>
Sent: 18 January 2017 15:12:44
To: Estanislao Gavilan Pascual-Ahuir (PGR)
Cc: Ferret pmel
Subject: Re: [ferret_users] Size of a variable
 

Le 18 janv. 2017 à 15:27, Estanislao Gavilan Pascual-Ahuir (PGR) <E.Gavilan-Pascual-Ahuir1@xxxxxxxxxxxxxxx> a écrit :

Dear Community,

Do you know if there is a command which tells the size of a matrix?

Kind regards,

Estanislao

Several solutions : 

SET MODE/LAST VERIFY
yes? let AA=I[I=1:10]*J[J=1:20]
yes? stat aa

             I[I=1:10]*J[J=1:20]
             X: 0.5 to 10.5
             Y: 0.5 to 20.5
             Z:  N/A
             T:  N/A
             E:  N/A
             F:  N/A
             DATA SET: N/A

 Total # of data points: 200 (10*20*1*1*1*1)
 # flagged as bad  data: 0
 Minimum value: 1
 Maximum value: 200
 Mean    value: 57.75 (unweighted average)
 Standard deviation: 46.912

yes? say `aa,return=isize`, `aa,return=jsize`
10, 20
yes?


And probably a few others

Olivier

-- 
Dr. Olivier Marti  - mailto:olivier.marti@xxxxxxxxxxxx
Laboratoire des Sciences du Climat et de l'Environnement
Institut Pierre Simon Laplace
Laboratoire CEA-CNRS-UVSQ  -  UMR 8212
Tel : +33 1 69 08 77 27 - Mob : +33 6 45 36 43 74
Fax : +33 1 69 08 30 73














[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement