[Thread Prev][Thread Next][Index]

Re: [ferret_users] counting available data points



Hi,

You can create a mask for Quality_level >4 then use the mask over the temp data and finally count the number of good grids.

let mask= if quality_level ge 4 then 1
let temp_mask=temp*mask
list temp_mask[l=1,x=@ngd,y=@ngd]    ! number of good grid for 1st time step, you can visually check by plotting temp_mask as well

Jagadish



From: Prakya Shree Ram <srprakhya@xxxxxxxxx>
To: Ferret Usergroup <ferret_users@xxxxxxxx>
Sent: Wednesday, January 25, 2012 12:54 PM
Subject: [ferret_users] counting available data points

Hello,

I have a data file which shows in ferret as follows:

    1> ./avhrr_v5data.cdf  (default)
 name     title                             I         J         K         L
 TEMP     SEA_SURFACE_TEMPERATURE[D=1]-27  1:49      1:49      ...       1:729
 QUALITY_LEVEL
          SST measurement quality          1:49      1:49      ...       1:729

I want to calculate the number of data points available for variable TEMP (for l=1,2....) when QUALITY_LEVEL is above some value (say 4). Any idea how to do this in ferret.

Thanks in advance and Regards,
Sriram



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

Privacy Policy | Disclaimer | Accessibility Statement