New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 4106 for branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_write.F90 – NEMO

Ignore:
Timestamp:
2013-10-22T17:30:08+02:00 (11 years ago)
Author:
andrewryan
Message:

Applied naming convention to eliminate confusion with OFF_SRC, included relevant OPA_SRC files in OOO_SRC directory.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r3987_UKMO4_OBS/NEMOGCM/NEMO/OOO_SRC/ooo_write.F90

    r4100 r4106  
    1 MODULE off_write 
     1MODULE ooo_write 
    22   !!====================================================================== 
    3    !!                       ***  MODULE off_write  *** 
     3   !!                       ***  MODULE ooo_write  *** 
    44   !!====================================================================== 
    55   USE netcdf 
    66   USE obs_utils, ONLY: chkerr 
    7    USE off_netcdf, ONLY: date_format, inst_converter, yyyymmdd_to_ref_date 
    8    USE off_data 
     7   USE ooo_netcdf, ONLY: date_format, inst_converter, yyyymmdd_to_ref_date 
     8   USE ooo_data 
    99   IMPLICIT NONE 
    1010   PRIVATE 
    1111 
    12    PUBLIC off_wri_init 
    13    PUBLIC off_wri_default 
    14    PUBLIC off_wri_extra 
     12   PUBLIC ooo_wri_init 
     13   PUBLIC ooo_wri_default 
     14   PUBLIC ooo_wri_extra 
    1515 
    1616   ! Type kinds for class 4 data. 
     
    2222   REAL(clsp), PARAMETER :: clrmdi =  99999   !: Reals 
    2323 
    24    INTERFACE off_wri_extra 
    25       MODULE PROCEDURE off_wri_extra_3d_index, off_wri_extra_4d, off_wri_extra_4d_index 
     24   INTERFACE ooo_wri_extra 
     25      MODULE PROCEDURE ooo_wri_extra_3d_index, ooo_wri_extra_4d, ooo_wri_extra_4d_index 
    2626   END INTERFACE 
    2727 
    2828   CONTAINS 
    2929 
    30       SUBROUTINE off_wri_extra_3d_index(cdfilename, cdvarname, ndeps, nvars, & 
     30      SUBROUTINE ooo_wri_extra_3d_index(cdfilename, cdvarname, ndeps, nvars, & 
    3131                               &  nobs, kstart, kcount, pdata) 
    3232         !!---------------------------------------------------------------------- 
    33          !!                    ***  ROUTINE off_wri_extra_3d  *** 
     33         !!                    ***  ROUTINE ooo_wri_extra_3d  *** 
    3434         !! 
    3535         !! ** Purpose : Write 3d variables to class 4 file. 
     
    5252                 & dimid, &      !: 
    5353                 & varid         !: 
    54          CHARACTER(len=16), PARAMETER :: cpname = 'off_wri_extra_3d' 
     54         CHARACTER(len=16), PARAMETER :: cpname = 'ooo_wri_extra_3d' 
    5555         ! Open netcdf file 
    5656         CALL chkerr(nf90_open(trim(cdfilename), nf90_write, ncid), cpname, __LINE__ ) 
     
    6060         ! Close netcdf file 
    6161         CALL chkerr(nf90_close(ncid), cpname, __LINE__ ) 
    62       END SUBROUTINE off_wri_extra_3d_index 
    63  
    64       SUBROUTINE off_wri_extra_4d_index(cdfilename, cdvarname, ndeps, nfcst, & 
     62      END SUBROUTINE ooo_wri_extra_3d_index 
     63 
     64      SUBROUTINE ooo_wri_extra_4d_index(cdfilename, cdvarname, ndeps, nfcst, & 
    6565                               &  nvars, nobs, kstart, kcount, pdata) 
    6666         !!---------------------------------------------------------------------- 
    67          !!                    ***  ROUTINE off_wri_extra_4d  *** 
     67         !!                    ***  ROUTINE ooo_wri_extra_4d  *** 
    6868         !! 
    6969         !! ** Purpose : Write 4d variables to class 4 file. 
     
    8787                 & dimid, &      !: 
    8888                 & varid         !: 
    89          CHARACTER(len=22), PARAMETER :: cpname = 'off_wri_extra_4d_index' 
     89         CHARACTER(len=22), PARAMETER :: cpname = 'ooo_wri_extra_4d_index' 
    9090         ! Open netcdf file 
    9191         CALL chkerr(nf90_open(trim(cdfilename), nf90_write, ncid), cpname, __LINE__ ) 
     
    9595         ! Close netcdf file 
    9696         CALL chkerr(nf90_close(ncid), cpname, __LINE__ ) 
    97       END SUBROUTINE off_wri_extra_4d_index 
    98  
    99       SUBROUTINE off_wri_extra_4d(cdfilename, cdvarname, ndeps, nfcst, & 
     97      END SUBROUTINE ooo_wri_extra_4d_index 
     98 
     99      SUBROUTINE ooo_wri_extra_4d(cdfilename, cdvarname, ndeps, nfcst, & 
    100100                               &  nvars, nobs, pdata) 
    101101         !!---------------------------------------------------------------------- 
    102          !!                    ***  ROUTINE off_wri_extra_4d  *** 
     102         !!                    ***  ROUTINE ooo_wri_extra_4d  *** 
    103103         !! 
    104104         !! ** Purpose : Write 4d variables to class 4 file. 
     
    119119                 & dimid, &      !: 
    120120                 & varid         !: 
    121          CHARACTER(len=16), PARAMETER :: cpname = 'off_wri_extra_4d' 
     121         CHARACTER(len=16), PARAMETER :: cpname = 'ooo_wri_extra_4d' 
    122122         ! Open netcdf file 
    123123         CALL chkerr(nf90_open(trim(cdfilename), nf90_write, ncid), cpname, __LINE__ ) 
     
    127127         ! Close netcdf file 
    128128         CALL chkerr(nf90_close(ncid), cpname, __LINE__ ) 
    129       END SUBROUTINE off_wri_extra_4d 
    130  
    131       SUBROUTINE off_wri_default(cdfilename, nobs, nvars, nfcst, ndeps, &  
     129      END SUBROUTINE ooo_wri_extra_4d 
     130 
     131      SUBROUTINE ooo_wri_default(cdfilename, nobs, nvars, nfcst, ndeps, &  
    132132                             &   cdtyp, cdwmo, cunit, cvnam, & 
    133133                             &   plam, pphi, pdep, ptim, pob, plead, & 
    134134                             &   kqc, pmjuld) 
    135135         !!---------------------------------------------------------------------- 
    136          !!                    ***  ROUTINE off_wri_default  *** 
     136         !!                    ***  ROUTINE ooo_wri_default  *** 
    137137         !! 
    138138         !! ** Purpose : Write standard variables to class 4 file. 
     
    189189                 & dimid, & !: 
    190190                 & varid    !: 
    191          CHARACTER(len=15), PARAMETER :: cpname = 'off_wri_default' 
     191         CHARACTER(len=15), PARAMETER :: cpname = 'ooo_wri_default' 
    192192         ! Open netcdf file 
    193193         CALL chkerr(nf90_open(trim(cdfilename), nf90_write, ncid), cpname, __LINE__ ) 
     
    250250         ! Close netcdf file 
    251251         CALL chkerr(nf90_close(ncid), cpname, __LINE__ ) 
    252       END SUBROUTINE off_wri_default 
    253  
    254       SUBROUTINE off_wri_init(cconf, csys, ckind, cversion, ccont, & 
     252      END SUBROUTINE ooo_wri_default 
     253 
     254      SUBROUTINE ooo_wri_init(cconf, csys, ckind, cversion, ccont, & 
    255255                            & cinst, cdate, nproc, nobs, nvars, & 
    256256                            & ndeps, nfcst, cdfilename) 
    257257         !!---------------------------------------------------------------------- 
    258          !!                    ***  ROUTINE off_wri_init  *** 
     258         !!                    ***  ROUTINE ooo_wri_init  *** 
    259259         !! 
    260260         !! ** Purpose : Initialise a class 4 file. 
     
    310310         INTEGER, DIMENSION(4) :: & 
    311311                 & dim4a         !: 4 dimensional settings 
    312          CHARACTER(len=12), PARAMETER :: cpname = 'off_wri_init' 
     312         CHARACTER(len=12), PARAMETER :: cpname = 'ooo_wri_init' 
    313313         ! Global att variables 
    314314         CHARACTER(len=40) :: date_str 
     
    613613            CALL chkerr(nf90_close(ncid), cpname, __LINE__ ) 
    614614         END IF 
    615       END SUBROUTINE off_wri_init 
    616  
    617  
    618 END MODULE off_write 
     615      END SUBROUTINE ooo_wri_init 
     616 
     617 
     618END MODULE ooo_write 
Note: See TracChangeset for help on using the changeset viewer.