| 1 | Dimensions |
|---|
| 2 | === |
|---|
| 3 | |
|---|
| 4 | This page describles procedures handling NetCDF dimensions. |
|---|
| 5 | |
|---|
| 6 | See the [improvements page](improvements.md) for an |
|---|
| 7 | explanation of the mnemonics \"basic change\", \"interface change\", |
|---|
| 8 | \"functionality change\", \"additional procedure\". |
|---|
| 9 | |
|---|
| 10 | `nf95_def_dim` |
|---|
| 11 | --- |
|---|
| 12 | |
|---|
| 13 | (interface change) |
|---|
| 14 | |
|---|
| 15 | subroutine nf95_def_dim(ncid, name, nclen, dimid, ncerr) |
|---|
| 16 | integer, intent( in) :: ncid |
|---|
| 17 | character (len = *), intent( in) :: name |
|---|
| 18 | integer, intent( in) :: nclen |
|---|
| 19 | integer, intent(out) :: dimid |
|---|
| 20 | integer, intent(out), optional :: ncerr |
|---|
| 21 | |
|---|
| 22 | The argument for the length of the dimension is called `nclen` in |
|---|
| 23 | `nf95_def_dim`, instead of `len` in `nf90_def_dim`. `len` is not a good |
|---|
| 24 | choice for a variable name because it is the name of a Fortran intrinsic |
|---|
| 25 | procedure. |
|---|
| 26 | |
|---|
| 27 | Reference: |
|---|
| 28 | [`nf90_def_dim`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_def_dim) |
|---|
| 29 | |
|---|
| 30 | `nf95_inq_dimid` |
|---|
| 31 | --- |
|---|
| 32 | |
|---|
| 33 | (basic change) |
|---|
| 34 | |
|---|
| 35 | subroutine nf95_inq_dimid(ncid, name, dimid, ncerr) |
|---|
| 36 | integer, intent(in) :: ncid |
|---|
| 37 | character (len = *), intent(in) :: name |
|---|
| 38 | integer, intent(out) :: dimid |
|---|
| 39 | integer, intent(out), optional:: ncerr |
|---|
| 40 | |
|---|
| 41 | Reference: |
|---|
| 42 | [`nf90_inq_dimid`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_inq_dimid) |
|---|
| 43 | |
|---|
| 44 | `nf95_inquire_dimension` |
|---|
| 45 | --- |
|---|
| 46 | |
|---|
| 47 | (interface change) |
|---|
| 48 | |
|---|
| 49 | subroutine nf95_inquire_dimension(ncid, dimid, name, nclen, ncerr) |
|---|
| 50 | integer, intent( in) :: ncid, dimid |
|---|
| 51 | character (len = *), optional, intent(out) :: name |
|---|
| 52 | integer, optional, intent(out) :: nclen |
|---|
| 53 | integer, intent(out), optional:: ncerr |
|---|
| 54 | |
|---|
| 55 | The argument for the length of the dimension is called `nclen` in |
|---|
| 56 | `nf95_inquire_dimension`, instead of `len` in `nf90_inquire_dimension`. |
|---|
| 57 | `len` is not a good choice for a variable name because it is the name of |
|---|
| 58 | a Fortran intrinsic procedure. |
|---|
| 59 | |
|---|
| 60 | Reference: |
|---|
| 61 | [`nf90_inquire_dimension`](https://docs.unidata.ucar.edu/netcdf-fortran/current/f90_dimensions.html#f90-nf90_inquire_dimension) |
|---|