Documentation  02/04/2002    Puech Dominique  Météo-France  CNRM/GMAP/OBS

    LLCCMA    = (cdname == 'CCMA')
    LLECMA    = (cdname == 'ECMA')
    LLECMASCR = (cdname == 'ECMASCR')
    LLtranslator = (NUPTRA == -9999)
    LLssa =(NUPTRA == -8888 .and. (LLECMA .or. LLECMASCR))
    LLdbifs = ((LLCCMA .or. LLECMA) .and. .not. LLtranslator .and. .not. LLssa)
 

I. Les vues par table

    nom : A_{NOM_TABLE}
    requete : a_{nom_table}.sql
    if (LLtranslator .and. (LLECMA .or. LLECMASCR))

II. Vues et contextes d'arpege

    II.1. Contextes arpege

   * DATE_AND_TIME  if(LLtranslator)
      version  : 0
      date_time.sql  ->  MOBHDR

   * DDRS  if(LLdbifs.or.LLssa)
      version  : 0, 1 (avec update)
      ddrdata.sql  ->  ROBDDR

   * ECSET   if(LLdbifs)
      version  : 0
      ecset.sql  ->  ROBSU

   * FLAGO  if(LLdbifs)
      version  : 0
      flago_mobhdr.sql  ->  ROBHDR et MOBODY

   * GETSATID  if(LLdbifs)
      version  : 0
      getsatid.sql  ->  MOBSU

   * GETSATOBID  if(LLdbifs)
      version  : 0
      getsatobid.sql  ->  MOBSU

   * MKGLOBSTAB  if(LLdbifs)
      version  : 0
      mkglobstab.sql  ->  ROBSU
      mkglobstab_atovs.sql  ->  SATPRED

   * OBATABS   if(LLdbifs)
      version  : 0
      obatabs_robhdr.sql  ->  ROBHDR

   * OBS_BOXES  if(LLdbifs)
      version  : 0
      obs_boxes.sql  ->  MOBSU   * SETTC   if(LLdbifs)
      version  : 0
      robhdr_tc.sql  ->  ROBHDR et MOBHDR
      robody_tc.sql  ->  ROBODY et MOBODY

   * PRTDPST  if(LLdbifs)
      version  : 0
      prtdpst_robhdr.sql  ->  ROBHDR et MOBHDR
      prtdpst_robody.sql  ->  ROBODY et MOBODY

   * PRTGOM  if(LLdbifs)
      version  : 0
      prtgom.sql  ->  MOBHDR

   * SSA   if(LLssa)
      versions  : 1 (snow)  et 2 (2m)
      ssa_robhdr_snow.sql, ssa_robhdr_2m.sql  ->  ROBHDR et MOBHDR
      ssa_robody_snow.sql, ssa_robody_2m.sql  ->  ROBODY et MOBODY

   * SUOBAREA  if(LLdbifs)
      version  : 0
      suobarea.sql  ->  ROBSU

   * SUOBAREA_SAT  if(LLdbifs)
      version  : 0
      suobarea_sat.sql  ->  ROBSU

   * SUOBAREA_SATOB if(LLdbifs)
      version  : 0
      suobarea_satob.sql  ->  ROBSU

   * UPDATE_DDRS  if(LLtranslator .and. (LLCCMA .or. LLECMA))
      version  : 0
      update_ddrs.sql  ->  MOBHDR

    II.2. Contextes canari

   * CAEXCO   if(LLdbifs)
      version  : 0
      caexco.sql  ->  ROBSU

   * CAMELO   if(LLdbifs)
      version  : 0
      camelo_robhdr.sql  ->  ROBHDR et MOBHDR
      camelo_robody.sql  ->  ROBODY et MOBODY

   * CASTOR   if(LLdbifs)
      version  : 0
      castor.sql  ->  ROBSU

   * HOP_CA  if(LLdbifs)
      version  : 0
      hop_canari_robhdr.sql  ->  ROBHDR et MOBHDR
      hop_canari_robody.sql  ->  ROBODY et MOBODY

   * CANCER  if(LLdbifs)
      version  : 0
      cancer_robhdr.sql  ->  ROBHDR et MOBHDR
      cancer_robody.sql  ->  ROBODY et MOBODY

   * CAIFC1 ????

   * CAVISO  if(LLdbifs)
      version  : 0
      caviso_robhdr.sql  ->  ROBHDR et MOBHDR
      caviso_robody.sql  ->  ROBODY et MOBODY

   * CANTIK  if(LLdbifs)
      version  : 0
      cantik_robhdr.sql  ->  ROBHDR et MOBHDR
      cantik_robody.sql  ->  ROBODY et MOBODY

   * CANACO  if(LLdbifs)
      version  : 0
      canaco_robhdr.sql  ->  ROBHDR et MOBHDR
      canaco_robody.sql  ->  ROBODY et MOBODY

   * CAVODK  if(LLdbifs)
      version  : 0
      cavodk_robhdr.sql  ->  ROBHDR et MOBHDR
      cavodk_robody.sql  ->  ROBODY et MOBODY

   * CARCFO  if(LLdbifs)
      version  : 0
      carcfo.sql  ->  ROBODY et MOBODY
 

    II.3. Contextes matchup

   * MATCHUP_HDR  if(LLtranslator .and. LLCCMA) ou (LLtranslator .and. LLECMA)
      version  : 0
      matchup_hdr.sql  ->  MOBSU

   * MATCHUP_BODY  if(LLtranslator .and. LLCCMA) ou (LLtranslator .and. LLECMA)
      version  : 0
      matchup_body.sql  ->  ROBSU

   * MATCHUP_SAT  if(LLtranslator .and. LLCCMA) ou (LLtranslator .and. LLECMA)
      version  : NGTHRB*100 + NSATEM
      matchup_atovs_pred.sql  ->  ROBSU

   * MATCHUP_SAT  if(LLtranslator .and. LLCCMA) ou (LLtranslator .and. LLECMA)
      version  : NGTHR1*100 + NSATEM
      matchup_rtovs_pred.sql  ->  ROBSU

    II.3. Contextes obsort

   * OBSORT  if(LLtranslator .and. (LLECMA .or. LLECMASCR))
      version  : 0
      robhdr_obsort.sql  ->  ROBHDR et MOBHDR

        - OBSORT_HDRif(LLtranslator .and. (LLECMA .or. LLECMASCR))
           version  : 0
           obsort_hdr.sql       ->  ROBSU
           obsort_hdr2body.sql  ->  MOBSU

        - OBSORT_DDRSif(LLtranslator .and. (LLECMA .or. LLECMASCR))
           version  : 0
           obsort_ddrs.sql  ->  ROBDDR

        - OBSORT_{TABLE}if(LLtranslator .and. (LLECMA .or. LLECMASCR))
           TABLE : SAT, BODY, ERRSTAT, UPDATE, SATHDR, SATBODY, SATPRED, SATSLEV, SATMLEV, INDEX
           version  : 0 ou numéro ad-hoc pour satellite
           obsort_{table}.sql  ->  ROBSU

   * OBSORT  if(LLtranslator .and. (LLECMA .or. LLECMASCR))
      version  : 1
      robhdrca_obsort.sql  ->  ROBHDR et MOBHDR

        - OBSORTCA_HDRif(LLtranslator .and. (LLECMA .or. LLECMASCR))
              version  : 0
              obsortca_hdr.sql       ->  ROBSU
              obsortca_hdr2body.sql  ->  MOBSU

        - OBSORTCA_DDRSif(LLtranslator .and. (LLECMA .or. LLECMASCR))
              version  : 0
              obsortca_ddrs.sql  ->  ROBDDR

        - OBSORTCA_{TABLE}if(LLtranslator .and. (LLECMA .or. LLECMASCR))
              TABLE : SAT, BODY, ERRSTAT, UPDATE, SATHDR, SATBODY, SATPRED, SATSLEV, SATMLEV, INDEX
              version  : 0 ou numéro ad-hoc pour satellite
              obsortca_{table}.sql  ->  ROBSU

    II.4. Contextes "delayed-init"
    traitements spécifique, car fonctions de nuptra, lscreen ...

      * BLACK if(LSCREEN and LLECMA)
         version  : XXXX    7 versions de 7 vues
         black_robhdr_$num_vue.sql -> ROBHDR et MOBHDR

      * COMTC if(LLdbifs)
         version  : XXXX
         robhdr_tc.sql  ->  ROBHDR et MOBHDR
         robody_tc.sql  ->  ROBODY et MOBODY

      * DECIS if(LSCREEN and LLECMA)
        version  : XXXX    4 versions de 4 vues
        decis_robhdr_$num_vue.sql -> ROBHDR et MOBHDR

      * HOP, HOPTL, HOPAD if(LLdbifs)
         version  : NUPTRA
         robhdr.sql  ->  ROBHDR et MOBHDR
         if(LLminim) robody.sql  ->  ROBODY et MOBODY
         if(LLtraj) robody_traj.sql  ->  ROBODY et MOBODY
         sat_atovs.sql -> SATHDR
         sat_rtovs.sql -> SATHDR
         sat_rtovs_mlev -> SATMLEV

      * HRETR if(LLdbifs)
         version  : NUPTRA
         robhdr_screen.sql -> ROBHDR et MOBHDR
         robody_screen.sql -> ROBODY et MOBODY
         sathdr_screen_atovs.sql -> SATHDR
         sathdr_screen_rtovs.sql -> SATHDR
         satbody_screen_rtovs.sql -> SATBODY
         satmlev_screen_rtovs.sql -> SATMLEV
         sathdr_screen_ssmi.sql -> SATHDR
         satbody_screen_ssmi.sql -> SATBODY
         satmlev_screen_ssmi -> SATMLEV

      * REDUN if(LSCREEN and LLECMA)
        version  : XXXX    7 versions de 4 vues
        redun_robhdr_$num_vue.sql -> ROBHDR et MOBHDR
         redun_robody_$num_vue.sql -> ROBODY et MOBODY

      * REINI if(LSCREEN and LLECMA)
        version  : XXXX    7 version de 4 vues
        reini_hdr.sql -> MOBHDR
         reini_body.sql -> MOBODY      * SCREEN if(LSCREEN and LLECMA)
        version  : XXXX    3 versions de 4 vues
        screen_robhdr_$num_vue.sql -> ROBHDR et MOBHDR
         screen_robody_$num_vue.sql -> ROBODY et MOBODY

      * SUFGER if(LSCREEN and LLECMA)
        version  : XXXX    1 version de 4 vues
        sufger_robhdr_$num_vue.sql -> ROBHDR et MOBHDR
         sufger_robody_$num_vue.sql -> ROBODY et MOBODY

      * THINN if(LSCREEN and LLECMA)
        version  : XXXX    7 version de 4 vues
        thinn_robhdr_$num_vue.sql -> ROBHDR et MOBHDR
         thinn_robody_$num_vue.sql -> ROBODY et MOBODY