Dears, Is it possible to use bash expansion to change a variable's name. ? For instance: Original Variable = TCDC_P8_L234_GLL0_avg3h ncrename -O -h -v TCDC_P8_L234_GLL0_avg*,TCDC_P8_L234_GLL0_avg in.nc out.nc Thanks for all jbento
Dears, Is it possible to use bash expansion to change a variable's name. ? For instnace: Original Variable = TCDC_P8_L234_GLL0_avg3h ncrename -O -h -v TCDC_P8_L234_GLL0_avg*,TCDC_P8_L234_GLL0_avg in.nc out.nc Thanks for all jbento
Dears I have a nc file (in.nc) with a variable called "CHL-OC5_mean". When I try: ncap2 -O -h -s 'where(CHL-OC5_mean>30) CHL-OC5_mean=30' in.nc out.nc I got this error: ncap2: WARNING prs_cls::ncap_var_init(): Unable to find variable CHL in in.nc ncap2: ERROR out(): Could not read var CHL if I change the name of the variable to "var" with: ncrename -v CHL-OC5_mean,var in.nc and run the first command again, I got the result, there is no problem. ncap2 -O -h -s 'where(var>30) var=30' in.nc out.nc So,...
Hi Chalie, thanks for you nice post, and sorry for my late "re-reply". It worked,...
Hi all., ......... I have several nc files representing different levels (depths)...
Hi all., ......... I have several nc files representing different levels (depths)...
Hi all., ......... I have several nc files representing different levels (depths)...
Hi all., ......... I have several nc files representing different levels (depths)...