aboutsummaryrefslogtreecommitdiffstats
path: root/xslt
AgeCommit message (Collapse)Author
2018-05-27Shearwater import: add support for DC reported ceilingGravatar Miika Turkia
This adds stopdepth, stoptime and in_deco attributes on Shearwater XML import. The output from the XSLT is very verbose (these values are printed for each sample), but as Subsurface cleans things up, there is no need to do any more magic on XSLT side. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-05-27Shearwater import: include NDL only if not zeroGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-05-27Shearwater import: new format for DC infoGravatar Miika Turkia
Include the DC info into settings and refer to that in each dive. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-05-01CSV import: include visibility and rating in importGravatar Miika Turkia
Add support for visibility and rating to CSV import dialog. Fixes #1212 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-03-19CSV export: Remove erroneous printed dive site notes from exportGravatar Stefan Fuchs
Remove erroneous printed dive site notes from dive profile export. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2018-03-19CSV export: Correct numeric format for depthGravatar Stefan Fuchs
Add two missing format-number functions for mean depth in dive list export and depth in dive profile export. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2018-03-19CSV export: Modify format of dive list and dive profile exportGravatar Stefan Fuchs
In dive list CSV export: - Move unit "min" from duration field to header - Move unit "%" from O2 and He fields to header In dive profile CSV export: - Add "min" to sample time header - Add column for sample heart rate Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
2018-02-15Convert cylinder volume to metricGravatar Miika Turkia
This is a rough conversion from cuft to liters. Should be close enough when we don't have working pressure to do the real calculation. (As far as I know, this is the case with UDCF.) Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15Case insensitive string comparison for unitsGravatar Miika Turkia
Not really surprising, but a sample log that I received used different case for unit than I had expected. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15Convert imperial pressures to metricGravatar Miika Turkia
This will convert cylinder start and end pressures from imperial to metric, when necessary. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15Add imperial unit support for temperatureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15UDCF import: use unit variableGravatar Miika Turkia
Simplify depth conversion from by using the unit variable and allowing dephtConvert template to do the work. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15UDCF import: store units in a variableGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15Import: move some "functions" to commonTemplatesGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15UDCF import: support for imperial depthsGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-15Move XSLT depth conversion to commonTemplatesGravatar Miika Turkia
Moving depth conversion template from MacDive specific XSLT to commonTemplates. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-08SDE import: include DC serial numberGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-02-08Import DC model from SDE fileGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-01-08Add support for air and water temps for CSV importGravatar Miika Turkia
Add support of importing air and water temperatures from DC header information. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2018-01-08Add support for max and mean depths for CSV importGravatar Miika Turkia
Add support of importing max and mean depths from DC header information. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-12-10Include cylinder pressures on export when they existGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-12-10Check that cylinder start and end pressures existGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-12-10Support dctype/divemode on UDDF importGravatar Miika Turkia
This will grab the divemode information from the first waypoint within the dive that includes this info and uses it for dctype. Note that our dive type is not as fine grained as the one in UDDF. The latter allows one to switch divemode during the dive when we do not. However, one could argue that i.e. a rebreather dive should be a rebreather dive even if one switches to bailout gas at some point... Fixes #922 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-10-26Support for trimix on jdivelog importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-09-24Support gas changes on Shearwater XML importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-09-13Support for 2 cylinders on Shearwater XML importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15Fix CSV export for imperial start and end pressureGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15Reflect import of subsurfaceCSV with having units in headersGravatar Miika Turkia
2017-07-15CSV export: show units on headerGravatar Miika Turkia
Let's show the units in CSV header so the actual fields have only the values. This should be easier to parse with some other programs. Fixes #472 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-07-15CSV export: show units on headerGravatar Miika Turkia
Let's show the units in CSV header so the actual fields have only the values. This should be easier to parse with some other programs. Fixes #472 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-06-27Two simple export UDDF fixesGravatar Jan Mulder
This fixes issues #418 and $419. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
2017-05-30Import NDL from Shearwater DesktopGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-30Fix Shearwater import pressure dataGravatar Miika Turkia
Apparently recording cylinder pressure in PSI is not the only oddity with Shearwater Desktop. It also records half the value, so doubling the reading here. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-30Import pressure data for tank0 on Shearwater Desktop importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-12Rounding imperial export for profileGravatar Miika Turkia
Precision for the rounding is more than makes sense, but this satisfied the test case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-07Include some extradata info on Seabear importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-07Merge branch 'seabear-refactor'Gravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-05-07Add dive mode support for Seabear importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-07Import dive number from Seabear CSV fileGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-06More robust UDDF export test modeGravatar Miika Turkia
When doing the xslt transformation for UDDF export, the C source does actually give a parameter units with value 0. Thus we need to treat that case as normal mode. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-06Add test mode support for UDDF export XSLTGravatar Miika Turkia
The current code that calls the export transformation supports parameter units, so using it here to enable test mode.
2017-05-06Grab DC model on UDDF import if availableGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-06Round sample depth on UDDF importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-06Add model and nick for DC on UDDF importGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-06Import deviceid from UDDF fileGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-04Due to clarity fix indentation in separate commitGravatar Miika Turkia
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-04Import UDDF location without GPS dataGravatar Miika Turkia
Fixes #376 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-05-04Include one more way to parse buddy on UDDF importGravatar Miika Turkia
Fixes #377 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Fix DivingLog's O2 importGravatar Miika Turkia
Make sure the Gas setup contains O2 value when trying to import that. In latest log sample the Gas seems to contain the decompression algorithm used. And as this value was grabbed after O2, we ended up with empty O2. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
2017-04-11Fix DivingLog importGravatar Miika Turkia
DivingLog seems to report cylinder start and end pressures in metric format, but sample readings are in imperial in case user has selected this unit. So we must convert the sample pressures in this case. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>