Activity for cloudcluster

  • cloudcluster cloudcluster modified a comment on discussion Help

    Charlie, I may try to convert nc files into cdl files, and convert them back to nc files using ncgen after editing/replacing the TFLAG values. I need to develop a batch file to realize it because I have more than hundred files to process. Thanks.

  • cloudcluster cloudcluster posted a comment on discussion Help

    Hello, I have a nectdf with daily variable from 2017091 to 2017273 (6 months), the file structure can be seen from the header file attached. I want to calculate monthly average. Thanks for any ideas to realize it.

  • cloudcluster cloudcluster modified a comment on discussion Help

    Charlie, I may try to convert nc files into cdl files, and convert them back to nc files using ncgen after editing/replacing the TFLAG values. I need to develop a batch file to realize it because I have more than hundred files to process. Thanks. Feng

  • cloudcluster cloudcluster posted a comment on discussion Help

    Charlie, I may try to convert nc files into cdl fil, and convert them back to nc files using ncgen after editing/replacing the TFLAG values. I need to develop a batch file to realize it because I have more than hundred files to process. Thanks. Feng

  • cloudcluster cloudcluster posted a comment on discussion Help

    The command gives the following output : ncap2: WARNING prs_cls::ncap_var_init(): Unable to find variable X in test.nc or out.nc ncap2: ERROR out(): Could not read var X

  • cloudcluster cloudcluster posted a comment on discussion Help

    Charlie, Thank you for your response. The output by "ncks -m -v TFLAG in.nc" : netcdf in { dimensions: DATE-TIME = 2 ; TSTEP = UNLIMITED ; // (25 currently) VAR = 35 ; variables: int TFLAG(TSTEP,VAR,DATE-TIME) ; TFLAG:units = "<yyyyddd,hhmmss>" ; TFLAG:long_name = "TFLAG " ; TFLAG:var_desc = "Timestep-valid flags: (1) YYYYDDD or (2) HHMMSS " ; } // group /</yyyyddd,hhmmss>

  • cloudcluster cloudcluster modified a comment on discussion Help

    I have multiple netcdf files (each file for one day and starting from April 1, 2020), in order to process and combine with other netcdf files for 2017 using an available program, I want to change TFALG values: The netcdf file in.nc for example looks like by ncdump: data: dimensions: TSTEP = UNLIMITED ; // (25 currently) DATE-TIME = 2 ; LAY = 1 ; VAR = 35 ; ROW = 47 ; COL = 56 ; .. .. TFLAG = 2020092, 0, 2020092, 0, 2020092, 0, ... 2020092, 10000, 2020092, 10000, 2020092, 10000, .. .. 2020092, 230000,...

  • cloudcluster cloudcluster modified a comment on discussion Help

    I have multiple netcdf files (each file for one day and starting from April 1, 2020), in order to process and combine with other netcdf files for 2017 using an available program, I want to change TFALG values: The netcdf file can be seen ncdump like: data: dimensions: TSTEP = UNLIMITED ; // (25 currently) DATE-TIME = 2 ; LAY = 1 ; VAR = 35 ; ROW = 47 ; COL = 56 ; .. .. TFLAG = 2020092, 0, 2020092, 0, 2020092, 0, ... 2020092, 10000, 2020092, 10000, 2020092, 10000, .. .. 2020092, 230000, 2020092, 230000,...

  • cloudcluster cloudcluster posted a comment on discussion Help

    I have multiple netcdf files (each file for one day and starting from April 1, 20202), in order to combine and with other netcdf files for 2017 using an available program, I want to change TFALG values: The netcdf file can be seen ncdump like: data: dimensions: TSTEP = UNLIMITED ; // (25 currently) DATE-TIME = 2 ; LAY = 1 ; VAR = 35 ; ROW = 47 ; COL = 56 ; .. .. TFLAG = 2020092, 0, 2020092, 0, 2020092, 0, ... 2020092, 10000, 2020092, 10000, 2020092, 10000, .. .. 2020092, 230000, 2020092, 230000,...

  • cloudcluster cloudcluster modified a comment on discussion Open Discussion

    Charlie, The multiplication sign "*" was vanished when I copied the script from my local computer and pasted to here last time. This time I use X to replace multiplication sign : newvar1=var1-0.2Xvar2+0.1Xvar3+0.5X0.2X0.2Xvar4+0.5X0.2X0.1Xvar5+0.2X0.1Xvar6; newvar2=var1-0.2Xvar2+0.2Xvar3+0.5X0.2X0.2Xvar4+0.5X0.2X0.2Xvar5+0.2X0.2Xvar6; newvar3=var1-0.2Xvar2+0.3Xvar3+0.5X0.2X0.2Xvar4+0.5X0.2X0.3Xvar5+0.2X0.3Xvar6; newvar4=var1-0.2Xvar2+0.4Xvar3+0.5X0.2X0.2Xvar4+0.5X0.2X0.4Xvar5+0.2X0.4Xvar6; .... .......

  • cloudcluster cloudcluster modified a comment on discussion Open Discussion

    Charlie, The multiplication sign "*" was vanished when I copied the script from my local computer and pasted to here last time. I did not notice it. I re-format it as shown exactly in nco script file as below. Sorry about that and thank you for checking. "newvar1=var1-0.2var2+0.1var3+0.50.20.2var4+0.50.20.1var5+0.20.1var6; newvar2=var1-0.2var2+0.2var3+0.50.20.2var4+0.50.20.2var5+0.20.2var6; newvar3=var1-0.2var2+0.3var3+0.50.20.2var4+0.50.20.3var5+0.20.3var6; newvar4=var1-0.2var2+0.4var3+0.50.20.2var4+0.50.20.4var5+0.20.4var6;...

  • cloudcluster cloudcluster modified a comment on discussion Open Discussion

  • cloudcluster cloudcluster posted a comment on discussion Open Discussion

    Charlie, The multiplication sign "*" was vanished when I copied the script from my local computer and pasted to here last time. I did not notice it. I re-format it as shown exactly in nco script file as below. Sorry about that and thank you for checking. "newvar1=var1-0.2var2+0.1var3+0.50.20.2var4+0.50.20.1var5+0.20.1var6; newvar2=var1-0.2var2+0.2var3+0.50.20.2var4+0.50.20.2var5+0.20.2var6; newvar3=var1-0.2var2+0.3var3+0.50.20.2var4+0.50.20.3var5+0.20.3var6; newvar4=var1-0.2var2+0.4var3+0.50.20.2var4+0.50.20.4var5+0.20.4var6;...

  • cloudcluster cloudcluster posted a comment on discussion Open Discussion

    Hello, I have the nco script file script.nco attached at the end of the message. I got Segmentation fault (core dumped) when I use: ncap2 -s ./script.nco in.nc out.nc. I do not know why because it works well when I used any single line in the nco script file like: ncap2 -s 'newvar1=var1-0.2var2+0.1var3+0.50.20.2var4+0.50,10.1var5+0.20.1var6' in.nc out.nc. All variables form var1 to var6 are included in the input file in.nc. In addition here another question is: why the new variable newvar in out.nc...

1
MongoDB Logo MongoDB