简体   繁体   中英

How can I use cube (3) or square (2) by CDO to calculate values?

How can use cube (3) or square (2) by CDO to calculate values?

I do not understand how I can use cube (3) or square (2) by CDO to calculate wind density. Please see the following equation. We have data (m/s) in the NC file. --> infile.nc

Wind density (WD) = 0.6125*v^3 在此处输入图像描述

On a spoon:

cdo mulc,0.6125 -mul v.nc -mul v.nc v.nc windden.nc 

Apparently this was flagged as a low quality and not answering the question, so to spell it out,

-mul v.nc v.nc 

multiplies v by v,

and then

-mul v.nc 

(surprise surprise) multiplies that by v to give the cube...

Alternatively, and slightly more concisely, you can use the square function sqr :

cdo mulc,0.6125 -mul v.nc -sqr v.nc windden.nc 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM