.. _dipplanner_configfile: dipplanner config file documentation ==================================== In config files, you can * change all the dipplanner parameters (a little bit more than in command line) * specify repetitive dives (in command-line, only one dive can be specified) You may provide more than one config file in dipplanner command-line: it's up to you to organise the config like as you wish. For example, you MAY create one config file for your dive parameters and another config file for your set of repetitive dives. dive profiles ------------- Dive profiles are specific sections in the config file, in the form: :: [diveXXXX] where XXXX represent a number. The dives whill be processed in crossant order Inside a [diveXXXX] section you specify tanks, segments and surface_interval tanks ^^^^^ Format: :: tankXXX=tank_name;f_o2;f_he;Volume(l);Pressure(bar);Minimum gas rule * tank_name: (str) (you choose the name) for the tank * f_02: (float) fraction of oxygen in the tank. Between 0.0 and 1.0 * f_he: (float) fraction of helium in the tank. Between 0.0 and 1.0 * Volume: (float) Volume of the tank in bar * Pressure: (float) Pressure of the tank in bar * Minimum gas rule: (str) quantity of gas that should remain in the tank after the dive There two format for minimum gas rule: * quantity of bar that should remain in the tank: format: "[0-9]+b" ex: "50b": it should remain 50 bar in the tank at the end of the dive * "fraction rule" (like `the rule of third in cave diving `_) format: "1/[0-9]" ex1: "1/3" : 1/3 of the tank to go in, 1/3 of the tank to go back and it should remain 1/3 of the tank at the end of the dive ex2: "1/6" : 1/6 of the tank to go in, 1/6 of the tank to go back and it should remain 2/3 of the tank at the end of the dive .. note:: tank(s) list is only mandatory for the first dive. On subsequent dive, if you choose not to specify tank(s), previous dive tanks will be used. If 'automatic_tank_refill' is set to True, the tank will be full before the dive. If set to False, it'll use the remaining gas from last dive .. warning:: If, for a [dive] at least ONE tank is provided, ALL the Tank(s) MUST be specified (dipplanner will not add the new tank(s) to the previous one: dipplanner will reset the tank list with the new one.) Example: dive num 1 with two tanks: 12l tank filled with 200b or air. It should remain 50b at the end of the dive. and 12l tank filled with Nitrox80. It should remain 30b at the end of the dive. :: [dive1] tank1=airtank;0.21;0.0;12;200,50b tank2=nitrox;0.80;0.0;12;200;30b .. note:: this example is incomplete: it misses segments: see below segments ^^^^^^^^ Format: :: segmentXXX="depth;duration;tank;setpoint" * depth: (float) in meter * duration: (float) in seconds (operators are allowed like: '30 * 60') * tank: name of the tank (the 'tank_name' specified in -t option) * setpoint: (float) 0.0 if OC, setpoint if CCR .. note:: If you specify a setpoint > 0.0, the dive will automatically switch in CCR mode. Example: 20 min at 30 meter using tank: airtank in OC mode :: [dive1] tank1=airtank;0.21;0.0;12;200,50b tank2=nitrox;0.80;0.0;12;200;30b segment1=30;20*60;airtank;0.0 20 min at 30 meter using tank: airtank in OC mode and then 25 min at 20 meter using tank: airtank in OC mode :: [dive1] tank1=airtank;0.21;0.0;12;200,50b tank2=nitrox;0.80;0.0;12;200;30b segment1=30;20*60;airtank;0.0 segment2=20;25*60;airtank;0.0 surface_interval ^^^^^^^^^^^^^^^^ surface interval (in seconds) for repetitive dives, you can specify the surface time between the previous dive and this dive Examples ^^^^^^^^ Full example with two subsequent dives, with a surface interval of 1h30 between the two, using the same tanks for the two dives :: [dive1] tank1=airtank;0.21;0.0;12;200,50b tank2=nitrox;0.80;0.0;12;200;30b segment1=30;20*60;airtank;0.0 segment2=20;25*60;airtank;0.0 [dive2] surface_interval = 90*60 segment1=22;40*60;airtank;0.0 Controling the output --------------------- It's done via the section: :: [output] .. cmdoption:: template =