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.
Users/SetupNewConfiguration/OPABAT (diff) – NEMO

Changes between Version 7 and Version 8 of Users/SetupNewConfiguration/OPABAT


Ignore:
Timestamp:
2017-04-12T23:00:34+02:00 (7 years ago)
Author:
nicolasmartin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Users/SetupNewConfiguration/OPABAT

    v7 v8  
    8989Nota Bene :[[BR]] 
    9090The files of bathymetry have as a unit the levels of model, the file of outline is in whole value varying from 0 (ground) with jpk, ocean floor.[[BR]] 
    91 The file of control is to express in floating value between 0. and float(jpk), to see program batwri.[[BR]] 
    92  
    93 == Manual file improvement == 
    94  
    95 The realization of a bathymetry file in an automatic way is not fully satisfactory for the reasons which we indicated in introduction. It is thus necessary to check the coherence of the results visually, to correct and sometimes modify after validation by a simulation with the model. The manual correction is not easy and several methods were tried in the past. The systematic checking is tiresome and it must be limited to the principal thresholds as soon as the field comprises more than 10000 points of grid. The use of IDL allows us :[[BR]] 
    96  
    97     -To post bathymetry.[[BR]] 
    98     -To select a under-field on which one wishes to make checks or modifications.[[BR]] 
    99     -To modify and save.[[BR]] 
    100     -To index islands if necessary.[[BR]] 
     91The file of control is to express in floating value between 0. and float(jpk), to see program batwri. 
     92 
     93== Manual file improvement 
     94 
     95The realization of a bathymetry file in an automatic way is not fully satisfactory for the reasons which we indicated in introduction. It is thus necessary to check the coherence of the results visually, to correct and sometimes modify after validation by a simulation with the model. The manual correction is not easy and several methods were tried in the past. The systematic checking is tiresome and it must be limited to the principal thresholds as soon as the field comprises more than 10000 points of grid. The use of IDL allows us : 
     96- To post bathymetry. 
     97- To select a under-field on which one wishes to make checks or modifications. 
     98- To modify and save. 
     99- To index islands if necessary. 
    101100 
    102101The utility was developed using software IDL and was used on the machine rhodes.idris.fr of the IDRIS. 
    103 The whole of IDL procedures are called IDL_OPABAT and use files made up at the first step.[[BR]] 
    104  
    105     -BATINI, procedure initializing dimensions, to modify.[[BR]] 
    106     -BATEXP, reading of the files, pretreatment of the file so necessary, selection of a under-field, posting.[[BR]] 
    107     -BATMOD, work, modification level by level.[[BR]] 
    108     -BATSAV, save, indentation of the islands.[[BR]] 
    109  
     102The whole of IDL procedures are called IDL_OPABAT and use files made up at the first step. 
     103- BATINI, procedure initializing dimensions, to modify. 
     104- BATEXP, reading of the files, pretreatment of the file so necessary, selection of a under-field, posting. 
     105- BATMOD, work, modification level by level. 
     106- BATSAV, save, indentation of the islands. 
    110107 
    111108== Example 
    112109 
    113 {{{#!idl 
     110{{{ 
    114111rhodes-rrup448: idl 
    115  
    116112IDL Version 5.1 (IRIX mipseb). Research Systems, Inc. 
    117113Installation number: 12072-0. 
     
    120116}}} 
    121117 
    122  
    123 We execute step by step the following parts:[[BR]] 
    124  
    125     - @batini : re-initialization of array size 
    126     - batexp : construction d un zoomreading of the files, removal of the ponds (see A3), construction of a zoom[[BR]] 
    127     - batmod: work on the zoom of bathymetry, level by level[[BR]] 
    128     - batsav : handing-over of the islands to -n (see A2A2) and save of a file of bathymetry[[BR]] 
    129  
    130  
    131 == Initialization part == 
    132  
    133 {{{#!idl 
     118We execute step by step the following parts: 
     119- @batini : re-initialization of array size 
     120- batexp : construction d un zoomreading of the files, removal of the ponds (see A3), construction of a zoom 
     121- batmod: work on the zoom of bathymetry, level by level 
     122- batsav : handing-over of the islands to -n (see A2A2) and save of a file of bathymetry 
     123 
     124== Initialization part 
     125 
     126{{{ 
    134127IDL> @batini 
    135  
    136128PROCEDURE IDL pour la BATHYMETRIE CLIPPER 
    137129========================================= 
    138  
    139130% Compiled module: LOADCT. 
    140131% LOADCT: Loading table Arc en Ciel / Phase 
    141  
    142132fin de l initialisation 
    143  
    144133Vous pouvez faire appel a d autres procedures : 
    145134@batini : Reinitialisation des dimensions et tableaux communs 
     
    176165 
    177166For more information on the channels, refer to the appendix A3 
    178  
    179167{{{ 
    180168-> -> -> -> -> -> voulez-vous : 
     
    182170:n 
    183171}}} 
    184  
    185172Selection of a under-field by clicking the mouse on a zone 
    186  
    187173{{{ 
    188174-> -> -> -> -> -> voulez-vous : 
     
    192178-> -> -> -> positionner et cliquer la souris 
    193179}}} 
    194  
    195180{{{ 
    196181-> -> -> -> -> -> le zoom vous convient-il, y(implicit) or n? 
    197182: y 
    198  
    199183reduction et zoom pour pave 1320 1164 
    200  
    201184% Compiled module: BATZOOM. 
    202185}}} 
    203  
    204186Posting if desired the file of bathymetry and file of control with a higher resolution: 
    205  
    206187{{{ 
    207188-> -> -> -> -> -> voulez-vous : 
     
    210191affichage 
    211192}}} 
    212  
    213193{{{ 
    214194-> -> -> -> -> -> voulez-vous : 
    215195afficher le zoom de la basse resolution avec chenaux, y or n(implicit)? 
    216196}}} 
    217  
    218197For more information on the channels please refer to appendix A2: 
    219  
    220198{{{ 
    221199n 
     
    225203affichage 
    226204}}} 
    227  
    228205{{{ 
    229206Fin de la procedure BATEXP 
     
    238215entrez le niveau? 
    239216}}} 
    240  
    241 One selected a level expressed in model level[[BR]] 
    242  
     217One selected a level expressed in model level 
    243218{{{ 
    24421920 
     
    250225droite -> sortir 
    251226}}} 
    252  
    253227Action with the mouse 
    254228{{{ 
     
    265239 
    266240Action with the mouse 
    267  
    268241{{{ 
    269242pt ( 124, 120) BR= 25.5000 
    270243Haute resolution min 24.6479 moy 25.9379 max 26.6315 
    271244}}} 
    272  
    273 Action with the mouse 
    274  
     245Action with the mouse 
    275246{{{ 
    276247pt ( 125, 120) BR= 25.5000 
     
    279250 
    280251- A modification mode, where, with the mouse, we increase or decrease by a model level, example: passage from 24 to 25 for the item (123, 120) : 
    281  
    282252{{{ 
    283253bouton gauche --> monter (combler) new jk=jk-1 
     
    285255droite --> sortir 
    286256}}} 
    287  
    288 Action with the mouse[[BR]] 
    289  
     257Action with the mouse 
    290258{{{ 
    291259pt ( 123, 120) BR= 24.5000 
    292260Haute resolution min 23.5273 moy 24.9224 max 26.0350{ 
    293261}}} 
    294  
    295 Action with the mouse 
    296  
     262Action with the mouse 
    297263{{{ 
    298264--> descendu de 24.5000 a 25.5000 
     
    300266Haute resolution min 23.5273 moy 24.9224 max 26.0350 
    301267}}} 
    302  
    303 Action with the mouse 
    304  
     268Action with the mouse 
    305269{{{ 
    306270--> monte de 25.5000 a 24.5000 
    307271}}} 
    308  
    309272Exit of the procedure and save the modifications in the under-field 
    310273 
    311274Action with the mouse 
    312  
    313  
    314275{{{ 
    315276-> -> -> -> changement de niveau de 0 a jpk ou n? 
     
    328289% Compiled module: BATSAV. 
    329290}}} 
    330  
    331291We can number the islands before saving. (further informations, see appendix A3) 
    332  
    333292{{{ 
    334293-> -> -> -> remplissage des iles, y ou n(implicit)? 
     
    349308IDL> 
    350309}}} 
    351  
    352310A call of the procedures can be reiterated as many times as wanted to make posting and correction of under-field then leave IDL. 
    353311