[Thread Prev][Thread Next][Index]

RE: [ferret_users] Number of cells



Hi Karl,

 

Thanks for this shortcut, hadn’t realised this was the case.

Unfortunately I’m still getting an unusual trend for my data – leaning towards the idea of the issue being in the data.

 

Cheers,

Josh

Sent from Mail for Windows 10

 


From: Karl Smith - NOAA Affiliate <karl.smith@xxxxxxxx>
Sent: Tuesday, March 19, 2019 7:59:41 PM
To: JoshAB1995@xxxxxxxxxxx
Cc: ferret_users@xxxxxxxx
Subject: Re: [ferret_users] Number of cells
 
Leave off the else in the first let.  The "implicit else value" is "undefined" (you have not specified what the value should be, so makes sense it should be "undefined").

LET mymask = IF myval LT mymax THEN 1

Karl


On Tue, Mar 19, 2019 at 11:28 AM JoshAB1995@xxxxxxxxxxx <JoshAB1995@xxxxxxxxxxx> wrote:

Dear Ferreters,

 

I’ve been stuck for a considerable length of time trying to calculate the number of grid cells that contain a desired value, which I could then multiply by some value to gain a volume.

 

For the values I’m after I’ve created the following mask:

 

Let X = if x LT x then 1 else 0 !This sets all of the values that are within the range I’m after as ‘1’

Set var/bad = 0 X !To remove the values from my dataset that fall outside of the desired range

Plot X[x=@ngd,y=@ngd,k=@ngd] !Hoping that this plots the total number of grid cells that are not ‘missing’ against time

 

From this plot I get an unexpected result (a decrease when it should be increasing!!!)... Have been beginning to think that there is an issue with the data.

So I was wondering if there was anything obvious that anyone can see I’m doing incorrectly in the masking? I’m not sure if my ‘plot’ is adding the values correctly – the best I could think to do was for in each axis (lat,lon,depth) to select the ‘good values’ or to ‘sum’ my values...

 

Any help is greatly appreciated,

 

J

 

 

Sent from Mail for Windows 10

 



--
Karl M. Smith, Ph.D.
JISAO Univ. Wash. and PMEL NOAA
"The contents of this message are mine personally and do
not necessarily reflect any position of the Government
or the National Oceanic and Atmospheric Administration."

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

Privacy Policy | Disclaimer | Accessibility Statement