Project

General

Profile

cdo outputtab

Added by Srivatsan Raghavan almost 7 years ago

Hi all,

Wondering how to correctly use the cdo outputtab command.

I need to extract the variable from one grid point and write it out as a txt file.

This is what I did and it writes all the grid points and not the one I need.

'cdo outputtab,date,lon=106.5,lat=-6,value infile > extract.txt'

Outputsnapshot:

1986-01-01 98.5753 -2.27832  3.47234 98.5753 
1986-01-01 98.783 -2.27832 3.49028 98.783
1986-01-01 98.9907 -2.27832 3.57569 98.9907
1986-01-01 99.1985 -2.27832 3.32214 99.1985
1986-01-01 99.4062 -2.27832 3.21319 99.4062
1986-01-01 99.6139 -2.27832 0.942482 99.6139
1986-01-01 99.8216 -2.27832 0.0399491 99.8216
1986-01-01 100.029 -2.27832 0.914198 100.029
1986-01-01 100.237 -2.27832 -0.674291 100.237
1986-01-01 100.445 -2.27832 -1.84833 100.445
1986-01-01 100.652 -2.27832 -1.79532 100.652
1986-01-01 100.86 -2.27832 -1.54827 100.86
1986-01-01 101.068 -2.27832 -2.32634 101.068
1986-01-01 101.276 -2.27832 -1.44548 101.276
1986-01-01 101.483 -2.27832 -1.80789 101.483
1986-01-01 101.691 -2.27832 -1.2251 101.691
1986-01-01 101.899 -2.27832 0.388842 101.899
1986-01-01 102.107 -2.27832 0.538716 102.107
1986-01-01 102.314 -2.27832 -0.0374788 102.314
1986-01-01 102.522 -2.27832 -0.803193 102.522
1986-01-01 102.73 -2.27832 -0.758563 102.73
1986-01-01 102.938 -2.27832 -0.216661 102.938
1986-01-01 103.145 -2.27832 0.10596 103.145
1986-01-01 103.353 -2.27832 0.190388 103.353
1986-01-01 103.561 -2.27832 0.242844 103.561
1986-01-01 103.768 -2.27832 0.330472 103.768
1986-01-01 103.976 -2.27832 0.344301 103.976
1986-01-01 104.184 -2.27832 0.374799 104.184
1986-01-01 104.392 -2.27832 0.472542 104.392
1986-01-01 104.599 -2.27832 0.366936 104.599
1986-01-01 104.807 -2.27832 0.0566601 104.807
1986-01-01 105.015 -2.27832 -0.465868 105.015
1986-01-01 105.222 -2.27832 -0.833429 105.222
1986-01-01 105.43 -2.27832 0.0342059 105.43
1986-01-01 105.638 -2.27832 0.789944 105.638
1986-01-01 105.846 -2.27832 0.413717 105.846
1986-01-01 106.053 -2.27832 0.910853 106.053
1986-01-01 106.261 -2.27832 1.92036 106.261
1986-01-01 106.469 -2.27832 2.08861 106.469
1986-01-01 106.676 -2.27832 1.71781 106.676
1986-01-01 106.884 -2.27832 1.47636 106.884
1986-01-01 107.092 -2.27832 1.50141 107.092
1986-01-01 107.3 -2.27832 1.4984 107.3
1986-01-01 107.507 -2.27832 1.56813 107.507
1986-01-01 107.715 -2.27832 1.4548 107.715
1986-01-01 107.923 -2.27832 1.5438 107.923
1986-01-01 108.131 -2.27832 1.59308 108.131
1986-01-01 108.338 -2.27832 1.26322 108.338
1986-01-01 108.546 -2.27832 0.598576 108.546
1986-01-01 108.754 -2.27832 1.35319 108.754
1986-01-01 108.961 -2.27832 2.38846 108.961
1986-01-01 109.169 -2.27832 2.25517 109.169
1986-01-01 109.377 -2.27832 1.72399 109.377
1986-01-01 109.585 -2.27832 1.37065 109.585
1986-01-01 109.792 -2.27832 0.583453 109.792
1986-01-01 110 -2.27832 -0.167394 110
1986-01-01 110.208 -2.27832 0.0984677 110.208
1986-01-01 110.415 -2.27832 0.457978 110.415
1986-01-01 110.623 -2.27832 0.78843 110.623
1986-01-01 110.831 -2.27832 0.862029 110.831
1986-01-01 111.039 -2.27832 0.765382 111.039
1986-01-01 111.246 -2.27832 0.747944 111.246
1986-01-01 111.454 -2.27832 0.442184 111.454
1986-01-01 111.662 -2.27832 0.0240907 111.662
1986-01-01 111.869 -2.27832 0.0186304 111.869
1986-01-01 112.077 -2.27832 0.139121 112.077
1986-01-01 112.285 -2.27832 0.226079 112.285
1986-01-01 112.493 -2.27832 0.447473 112.493
1986-01-01 112.7 -2.27832 0.430549 112.7
1986-01-01 112.908 -2.27832 0.274927 112.908
1986-01-01 113.116 -2.27832 0.351694 113.116
1986-01-01 113.324 -2.27832 0.543567 113.324
1986-01-01 113.531 -2.27832 0.882597 113.531
1986-01-01 113.739 -2.27832 0.57418 113.739
1986-01-01 113.947 -2.27832 0.0454471 113.947
1986-01-01 114.154 -2.27832 -0.167379 114.154
1986-01-01 114.362 -2.27832 -0.240748 114.362
1986-01-01 114.57 -2.27832 -0.143257 114.57
1986-01-01 114.778 -2.27832 0.156904 114.778
1986-01-01 114.985 -2.27832 0.0246797 114.985
1986-01-01 115.193 -2.27832 -0.521493 115.193
1986-01-01 115.401 -2.27832 -0.481533 115.401
1986-01-01 115.608 -2.27832 -0.3212 115.608
1986-01-01 115.816 -2.27832 -0.396119 115.816
1986-01-01 116.024 -2.27832 -0.103879 116.024
1986-01-01 116.232 -2.27832 0.386716 116.232
1986-01-01 116.439 -2.27832 0.883898 116.439
1986-01-01 116.647 -2.27832 1.4387 116.647
1986-01-01 116.855 -2.27832 2.1209 116.855
1986-01-01 117.062 -2.27832 1.69653 117.062
1986-01-01 117.27 -2.27832 -0.0736931 117.27
1986-01-01 117.478 -2.27832 -0.985072 117.478
1986-01-01 117.686 -2.27832 -0.486088 117.686
1986-01-01 117.893 -2.27832 -0.274131 117.893
1986-01-01 118.101 -2.27832 -0.60231 118.101
1986-01-01 118.309 -2.27832 -1.41006 118.309
1986-01-01 118.517 -2.27832 -1.64401 118.517
1986-01-01 118.724 -2.27832 -0.887825 118.724
1986-01-01 118.932 -2.27832 -0.921841 118.932
1986-01-01 119.14 -2.27832 -0.511751 119.14
1986-01-01 119.348 -2.27832 0.468058 119.348
1986-01-01 119.555 -2.27832 0.406959 119.555
1986-01-01 119.763 -2.27832 -0.130958 119.763
1986-01-01 119.971 -2.27832 0.950508 119.971
1986-01-01 120.178 -2.27832 1.24663 120.178
1986-01-01 120.386 -2.27832 0.726675 120.386
1986-01-01 120.594 -2.27832 0.897762 120.594
1986-01-01 120.801 -2.27832 0.816234 120.801
1986-01-01 121.009 -2.27832 1.33405 121.009
1986-01-01 121.217 -2.27832 2.3119 121.217
1986-01-01 121.425 -2.27832 2.52533 121.425
1986-01-01 121.632 -2.27832 2.12498 121.632
1986-01-01 121.84 -2.27832 1.90119 121.84
1986-01-01 122.048 -2.27832 3.48942 122.048
1986-01-01 122.256 -2.27832 4.51671 122.256
1986-01-01 122.463 -2.27832 4.71074 122.463
1986-01-01 122.671 -2.27832 3.88862 122.671
1986-01-01 122.879 -2.27832 2.68152 122.879
1986-01-01 123.087 -2.27832 1.42862 123.087
1986-01-01 123.294 -2.27832 0.0549545 123.294
1986-01-01 123.502 -2.27832 -0.950104 123.502
1986-01-01 123.71 -2.27832 -1.21965 123.71
1986-01-01 123.917 -2.27832 -0.977851 123.917
1986-01-01 124.125 -2.27832 -0.52979 124.125
1986-01-01 124.333 -2.27832 0.0640113 124.333
1986-01-01 124.54 -2.27832 0.439371 124.54
1986-01-01 124.748 -2.27832 0.415958 124.748
1986-01-01 124.956 -2.27832 0.686446 124.956
1986-01-01 125.164 -2.27832 0.660561 125.164
1986-01-01 125.371 -2.27832 0.408756 125.371
1986-01-01 125.579 -2.27832 0.75195 125.579
1986-01-01 125.787 -2.27832 1.14218 125.787
1986-01-01 125.995 -2.27832 1.47292 125.995
1986-01-01 126.202 -2.27832 1.58214 126.202
1986-01-01 126.41 -2.27832 1.24581 126.41
1986-01-01 126.618 -2.27832 0.83818 126.618
1986-01-01 126.826 -2.27832 0.54989 126.826
1986-01-01 127.033 -2.27832 0.390871 127.033
1986-01-01 127.241 -2.27832 0.839489 127.241
1986-01-01 127.449 -2.27832 1.45776 127.449
1986-01-01 127.656 -2.27832 2.05902 127.656
1986-01-01 127.864 -2.27832 1.68426 127.864
1986-01-01 128.072 -2.27832 0.659783 128.072
1986-01-01 128.279 -2.27832 0.405029 128.279
1986-01-01 128.487 -2.27832 0.435043 128.487
1986-01-01 128.695 -2.27832 0.847231 128.695
1986-01-01 128.903 -2.27832 1.25443 128.903
1986-01-01 129.11 -2.27832 1.53092 129.11
1986-01-01 129.318 -2.27832 1.666 129.318
1986-01-01 129.526 -2.27832 1.07171 129.526
1986-01-01 129.734 -2.27832 0.3744 129.734
1986-01-01 129.941 -2.27832 0.315184 129.941
1986-01-01 130.149 -2.27832 0.592386 130.149
1986-01-01 130.357 -2.27832 1.09032 130.357
1986-01-01 130.564 -2.27832 0.752382 130.564
1986-01-01 130.772 -2.27832 0.076085 130.772
1986-01-01 130.98 -2.27832 -0.232478 130.98
1986-01-01 131.188 -2.27832 -0.654634 131.188
1986-01-01 131.395 -2.27832 -2.23519 131.395
1986-01-01 131.603 -2.27832 -3.68636 131.603
1986-01-01 131.811 -2.27832 -3.47422 131.811
1986-01-01 132.018 -2.27832 -2.60687 132.018
1986-01-01 132.226 -2.27832 -1.82374 132.226
1986-01-01 132.434 -2.27832 -1.09827 132.434
1986-01-01 132.642 -2.27832 0.0173309 132.642
1986-01-01 132.849 -2.27832 -0.304241 132.849
1986-01-01 133.057 -2.27832 -0.92766 133.057

Pls help.

Thanks

Sri



Replies (5)

RE: cdo outputtab - Added by Ralf Mueller almost 7 years ago

Hi!
preprend a grid selection operation like sellonlatbox or remapnn,lon=106.5_lat=-6

htt
ralf

RE: cdo outputtab - Added by Srivatsan Raghavan almost 7 years ago

Hi Ralf,

Thanks for your quick reply, indeed.

I tried, but same error.

[remo@remo sl]$ cdo -remapnn,lon=106.5_lat=-6 -outputtab wrferai-u10-6h-1985.nc out.nc
cdo remapnn: Started child process "outputtab wrferai-u10-6h-1985.nc (pipe1.1)".
cdo(2) outputtab : Enter keys to print > date,lon,lat,value

Is my syntax above correct? I tried to use a single line command using both remapnn and outputtab

if not, could you please help with the correct full command.

Many Thanks

Sri

RE: cdo outputtab - Added by Srivatsan Raghavan almost 7 years ago

Hi Ralf,

I tried it under two diff commands and it worked fine.

1. cdo remapnn,lon=106.5_lat=-6 ifile.nc ofile.nc

2. cdo outputtab,date,lon,lat,value ofile.nc > a.txt

Thanks. I can follow this too.
Sri

RE: cdo outputtab - Added by Ralf Mueller almost 7 years ago

This oneliner should work:

cdo -outputtab,date,lon,lat,value -remapnn,lon=106.5_lat=-6 ifile.nc > ofile.txt

RE: cdo outputtab - Added by Srivatsan Raghavan almost 7 years ago

Thanks much, Ralf. It works fine.

    (1-5/5)