Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
412 views
in Technique[技术] by (71.8m points)

ubuntu - Division of climate variable from to nc files

I would like to divide a given variable prob from a file of future climate AK2100.nc with the same variable from the file of contemporary time AK.nc. I tried this

cdo div AK2100.nc AK.nc division-AK2100.nc

But it divided all the three variables, including the lat and lon. How can I specifically target the variable of interest prob and only divide these two similar variables but keep the spatial aspect?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try

cdo  -div -selname,prob AK2100.nc AK.nc division-AK2100.nc

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...