Hi Charlie, There are 8 variables in my NetCDF file . The sector dimension is 8. I would like to assign the following long_names to the variable: name[$sector]={'agriculture','energie','industry','transportation','residential','solvents','waste','shipping'} name[$sector]={'agriculture','energie','industry','transportation','residential','solvents','waste','shipping'} for SCT in {0..1};do ncap2 -s "'var${SCT}'@long_name=emissions from sector '${name}'" fileIn.nc fileOut.nc done But I do not know how...
Charlie, Here is the second file sabine
Charlie, Thank you for your answer. I tried wath you suggested but I do not know why I get a segmentation error when I try to dump variable data. I send you the files if you have time to have a look. sabine
Hello, I am using NCO tools and trying to change spatial coverage of a netcdf file inFile.nc in order to match a larger spatial coverage. First step I created an empty file lonArea.nc covering the missing area for the west longitudes, the two files have one identical variable called data. The two files lonArea.nc and inFile.nc have the same latitudes, the longitudes range between -77 and -75 for lonArea.nc and between -74 and -26 for inFile.nc Then I tried the following methods : 1) I converted lon...
Hello, I am using NCO and trying to change spatial coverage of a netcdf file inFile.nc in order to match a larger spatial coverage. First step I created an empty file lonArea.nc covering the missing area for the west longitudes, the two files have one identical variable called data. The two files lonArea.nc and inFile.nc have the same latitudes, the longitudes are between -77 and -75 for lonArea.nc and between -74 and -26 for inFile.nc Then I tried the following methods : 1) I converted lon dimension...
Enlarging spatial coverage of a file
Hello, I am trying to change spatial coverage of file Infile.nc in order to match a larger spatial coverage. First step I created an empty file lonArea.nc covering the missing area for the west longitudes (with the same latitudes). Then tried the following methods : 1) I converted dim lon into a record dimension in the lonArea.nc file and in the Infile.nc, then I used ncks -A to merge the data : ncks -A lonArea.nc Infile.nc 2) no conversion, I concatenate as follow : ncrcat -A lonArea.nc Infile.nc....
enlarging data spatial coverage