7 | | will create the following output. The original {{{ncdump}}} output is displayed using {{{monospace}}}, additional explanations are given in ''italian''. |
| 7 | will create the following output.\\ |
| 8 | The original {{{ncdump}}} output is displayed using {{{monospace}}}, additional explanations are given behind exclamation marks (!). |
| 9 | {{{ |
| 10 | netcdf example_cbl_xy { ! filename |
| 11 | dimensions: ! 41 gridpoints along x and y, 4 timelevels |
| 12 | time = UNLIMITED ; // (4 currently) ! unlimited means that additional time levels can be added (e.g. by |
| 13 | ! restart jobs) |
| 14 | zu_xy = 2 ; ! vertical dimension (2, because two cross sections are selected); |
| 15 | zw_xy = 2 ; ! there are two different vertical dimensions zu and zw because due |
| 16 | zu1_xy = 1 ; ! to the staggered grid the z-levels of variables are those of the |
| 17 | x = 41 ; ! u- or the w-component of the velocity |
| 18 | xu = 41 ; |
| 19 | y = 41 ; |
| 20 | yv = 41 ; |
| 21 | variables: ! precision, dimensions, and units of the variables |
| 22 | double time(time) ; ! the variables containing the time levels and grid point co- |
| 23 | time:units = "seconds" ; ! ordinates have the same names as the respective dimensions |
| 24 | double zu_xy(zu_xy) ; |
| 25 | zu_xy:units = "meters" ; |
| 26 | double zw_xy(zw_xy) ; |
| 27 | zw_xy:units = "meters" ; |
| 28 | double zu1_xy(zu1_xy) ; |
| 29 | zu1_xy:units = "meters" ; |
| 30 | double ind_z_xy(zu_xy) ; |
| 31 | ind_z_xy:units = "gridpoints" ; |
| 32 | double x(x) ; |
| 33 | x:units = "meters" ; |
| 34 | double xu(xu) ; |
| 35 | xu:units = "meters" ; |
| 36 | double y(y) ; |
| 37 | y:units = "meters" ; |
| 38 | double yv(yv) ; |
| 39 | yv:units = "meters" ; |
| 40 | float w_xy(time, zw_xy, y, x) ; ! array of the vertical velocity; it has 4 dimensions: x and y, |
| 41 | w_xy:long_name = "w_xy" ; ! because it is a horizontal cross section, zw_xy, which defines |
| 42 | w_xy:units = "m/s" ; ! the vertical levels of the sections, and time, for the time levels |
| 43 | float pt_xy(time, zu_xy, y, x) ; ! array of the potential temperature, which is defined on the u-grid |
| 44 | pt_xy:long_name = "pt_xy" ; |
| 45 | pt_xy:units = "K" ; |
| 46 | |
| 47 | // global attributes: |
| 48 | :Conventions = "COARDS" ; |
| 49 | :title = "PALM 3.7a Rev: 584 run: example_cbl.00 host: lcsgih 12-10-10 08:52:28" ; ! PALM run- |
| 50 | ! identifier |
| 51 | :VAR_LIST = ";w_xy;pt_xy;" ; ! the list of output quantities contained in this dataset; |
| 52 | ! this global attribute can be used by FORTRAN programs to identify |
| 53 | ! and read the quantities contained in the file |
| 54 | |
| 55 | data: |
| 56 | |
| 57 | time = 905.7, 1800.46, 2711.96, 3610.86 ; ! values of the four time levels |
| 58 | |
| 59 | zu_xy = 75, 475 ; ! heights of the two selected cross sections (u-grid) |
| 60 | |
| 61 | zw_xy = 100, 500 ; |
| 62 | |
| 63 | zu1_xy = 25 ; |
| 64 | |
| 65 | x = 25, 75, 125, 175, 225, 275, 325, 375, 425, 475, 525, 575, 625, 675, 725, ! x-coordinates of the grid points |
| 66 | 775, 825, 875, 925, 975, 1025, 1075, 1125, 1175, 1225, 1275, 1325, 1375, |
| 67 | 1425, 1475, 1525, 1575, 1625, 1675, 1725, 1775, 1825, 1875, 1925, 1975, |
| 68 | 2025 ; |
| 69 | |
| 70 | xu = 0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, |
| 71 | 750, 800, 850, 900, 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, |
| 72 | 1400, 1450, 1500, 1550, 1600, 1650, 1700, 1750, 1800, 1850, 1900, 1950, |
| 73 | 2000 ; |
| 74 | |
| 75 | y = 25, 75, 125, 175, 225, 275, 325, 375, 425, 475, 525, 575, 625, 675, 725, ! y-coordinates of the grid points |
| 76 | 775, 825, 875, 925, 975, 1025, 1075, 1125, 1175, 1225, 1275, 1325, 1375, |
| 77 | 1425, 1475, 1525, 1575, 1625, 1675, 1725, 1775, 1825, 1875, 1925, 1975, |
| 78 | 2025 ; |
| 79 | |
| 80 | yv = 0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700, |
| 81 | 750, 800, 850, 900, 950, 1000, 1050, 1100, 1150, 1200, 1250, 1300, 1350, |
| 82 | 1400, 1450, 1500, 1550, 1600, 1650, 1700, 1750, 1800, 1850, 1900, 1950, |
| 83 | 2000 ; |
| 84 | } |
| 85 | }}} |
| 86 | If the option {{{-c}}} is omitted in the {{{ncdump}}} call, then also the complete grid point data of all quantities are output to the terminal. {{{ncdump -v pt_xy example_cbl_xy.nc}}} will display only the grid point data of the quantity specified with the option {{{-v}}}. |