correct syntax of remapnn in CDO ruby gem
Added by jay qiu over 9 years ago
Hi,
I would like to ask the correct way to use "remapnn" operator in ruby.
Actually my purpose is to select a specific grid point from my nc file
Thanks.
Jay
ref:
https://code.zmaw.de/boards/2/topics/933
https://code.zmaw.de/boards/2/topics/1506
Replies (1)
RE: correct syntax of remapnn in CDO ruby gem - Added by Ralf Mueller over 9 years ago
Just an example from the first like page
Cdo.remapnn('lon=-68_lat=-18', :input => ifile, :output => ofile)
With this, you compute a single horizontal value per timestep. If you want to get it as a NArray, just add returnArray='t'
if the variable name is 't'
:
t_values = Cdo.remapnn('lon=-68_lat=-18', :input => ifile, :output => ofile, :returnArray => 't')
hth
ralf