[Thread Prev][Thread Next][Index]

Re: [ferret_users] INT showing strange values



Hi,
there might be better way that what I am suggesting. But you can list to one text (dat) file with format f9.0 or f5.0 or something. So there would no be any thing beyond decimal. Later you can read that file and save it to nc file if you want. This method may be used till better method is found !  (otherwise INT(var) should work as mentioned in manual) 

G Satyesh,
India

On Thu, Apr 8, 2021 at 3:41 AM Sulagna <sulagna.ray@xxxxxxxxx> wrote:
Hello Ferreters,
 
Does INT (X) (link) not work on user-defined variables? For example, the variable NB_DEG_LIB has the following values, of which I want to take the integer values, which is supposed to be the part before decimal. However you would see on using int(NB_DEG_LIB) it returns varied values. Am I missing something here? Or should I use something else?

list/y=40n:50n/z=200 NB_DEG_LIB

             VARIABLE : GDN * ( 1 - R1 * R2 ) / (1 + R1 * R2 )

             SUBSET   : 10 points (LATITUDE)

             Z (m)    : 200 (interpolated)

             T        : 2

 49.5N / 140:  20.48

 48.5N / 139:  22.48

 47.5N / 138:  26.17

 46.5N / 137:  29.68

 45.5N / 136:  32.43

 44.5N / 135:  30.92

 43.5N / 134:  32.55

 42.5N / 133:  32.13

 41.5N / 132:  33.28

 40.5N / 131:  32.28



list/y=40n:50n/z=200 int(NB_DEG_LIB)

             VARIABLE : INT(NB_DEG_LIB)

             SUBSET   : 10 points (LATITUDE)

             Z (m)    : 200 (interpolated)

             T        : 2

 49.5N / 140:   3.00

 48.5N / 139:   3.00

 47.5N / 138:   4.00

 46.5N / 137:   7.00

 45.5N / 136:   7.00

 44.5N / 135:  12.00

 43.5N / 134:  19.00

 42.5N / 133:  10.00

 41.5N / 132:   9.00

 40.5N / 131:  11.50


Thanks for your responses.


Best,

Sulagna



--
G Satyesh


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

Privacy Policy | Disclaimer | Accessibility Statement