obsDiagFiles_mod

link to source code

Dependency Diagrams:

obsDiagFiles_mod.svg

Direct Dependency Diagram

obsDiagFiles_mod_rev.svg

Reverse Dependency Diagram

Description

MODULE obsDiagFiles_mod (prefix=’diaf’ category=’3. Observation input/output’)

Purpose

To write the “diag” format SQLITE observation files. Data is stored in obsSpaceData object.

Quick access

Routines

diaf_getobsfamilylistmpiglobal(), diaf_getobsfilename(), diaf_writeallsqldiagfiles(), diaf_writesqldiagfile()

Needed modules

  • obsspacedata_mod: MODULE obsSpaceData_mod (prefix=’obs’ category=’6. High-level data objects’)

  • midasmpi_mod: MODULE midasMpi_mod (prefix=’mmpi’ category=’8. Low-level utilities and constants’)

  • fsqlite

  • mathphysconstants_mod: MODULE mathPhysConstants_mod (prefix=’mpc’ category=’8. Low-level utilities and constants’)

  • utilities_mod: MODULE utilities_mod (prefix=’utl’ category=’8. Low-level utilities and constants’)

  • ramdisk_mod: MODULE ramDisk_mod (prefix=’ram’ category=’8. Low-level utilities and constants’)

  • tovsnl_mod: MODULE tovsNL_mod (prefix=’tvs’ category=’5. Observation operators’)

  • rttov_const (ninst())

  • codtyp_mod: MODULE codtyp_mod (prefix=’codtyp’ category=’8. Low-level utilities and constants’)

  • sqliteutilities_mod: MODULE sqliteUtilities_mod (prefix=’sqlu’ category=’3. Observation input/output’)

  • ensembleobservations_mod: MODULE ensembleObservations_mod (prefix=’eob’ category=’6. High-level data objects’)

Variables

Subroutines and functions

subroutine  obsdiagfiles_mod/diaf_writeallsqldiagfiles(obsdat, sffilename, onlyassimobs, addfsodiag[, ensobs_opt])
Purpose

To prepare the writing of obsSpaceData content into SQLite format files

Arguments
  • obsdat [struct_obs ,inout] :: obsSpaceData object

  • sffilename [character ,in] :: fileName acronym used for surface obs file

  • onlyassimobs [logical ,in] :: only write assimilated obs

  • addfsodiag [logical ,in] :: include FSO column in body table

Options

ensobs_opt [struct_eob ,in,] :: ensObs object

Called from

obsf_writefiles()

Call to

diaf_getobsfamilylistmpiglobal(), tvs_getallidburptovs(), diaf_getobsfilename(), diaf_writesqldiagfile()

subroutine  obsdiagfiles_mod/diaf_writesqldiagfile(obsdat, obsfamily, onlyassimobs, addfsodiag, instrumentfilename[, codetypelist_opt[, ensobs_opt]])
Purpose

To write the obsSpaceData content into SQLite format files

Arguments
  • obsdat [struct_obs ,inout]

  • obsfamily [character ,in]

  • onlyassimobs [logical ,in]

  • addfsodiag [logical ,in]

  • instrumentfilename [character ,in]

Options
  • codetypelist_opt (*) [integer ,in,]

  • ensobs_opt [struct_eob ,in,]

Called from

diaf_writeallsqldiagfiles()

Call to

sqlu_getinitialidobsdata(), obs_getheaderindex(), obs_headelem_i(), ram_getramdiskdir(), obs_mpilocal(), sqlu_handleerror(), obs_elem_c(), obs_headelem_r(), obs_bodyelem_r(), obs_bodyelem_i(), obs_columnactive_rb(), codtyp_get_codtyp(), utl_abort()

function  obsdiagfiles_mod/diaf_getobsfilename(obsfamily[, sffilename_opt[, codetype_opt]])
Purpose

Return the part of the observation file name associated with the type of observation it contains.

Arguments

obsfamily [character ,in]

Options
  • sffilename_opt [character ,in,] :: fileName acronym used for surface obs file

  • codetype_opt [integer ,in,]

Return

filename [character ]

Called from

diaf_writeallsqldiagfiles()

Call to

utl_abort(), codtyp_get_name(), tvs_isinstrumallskyhuassim(), tvs_getinstrumentid(), tvs_isinstrumallskyttassim()

subroutine  obsdiagfiles_mod/diaf_getobsfamilylistmpiglobal(obsdat, obsfamilylistsizecommon, obsfamilylistcommon)
Purpose

Obtain a common set of obs family names over all mpi tasks

Arguments
  • obsdat [struct_obs ,inout]

  • obsfamilylistsizecommon [integer ,out]

  • obsfamilylistcommon (*) [character ,out]

Called from

diaf_writeallsqldiagfiles()

Call to

obs_numheader(), obs_getfamily()