You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,21 @@
1
+
# RstoxData v2.2.0-9008 (2025-12-15)
2
+
* Added support for specifying a function in NewValue in TranslationTable in Translate functions. This allows for mathematical transformation of values, e.g. IndividualTotalLength * 0.9 to get total length from fork length
3
+
* Added the possibility to condition on variables present in parent tables in Translate functions. This can be useful e.g. when translating variables in the Individual table of StoxBiotic conditioned on SpeciesCategory (which is found two tables up in the SpeciesCategory table).
4
+
* Restricted LengthType accepted to only "1" from ICESBiotic XML files in the StoxBiotic() function, equivalent to the only accepted lengthmeasurement "E" from NMDBiotic XML files.
5
+
* Fixed bug where the only the first Survey from the Survey table of BioticData read from ICESBiotic XML files was added to the Cruise table. In the ICESBiotic CSV file multiple surveys concatenated with "~" as separator, which is not adopted in RstoxData.
6
+
* Changed the warning i StoxBiotic() for non-total length (lengthmeasurement != "E" or LengthType != "1") to not list the species, but rather inform about the possibility to transform the length values using Translate functions.
7
+
* Removed the argument useXsd from filterData(), which was used to ignore the table hierarchy provided in the RstoxData::xsdObjects.
8
+
* Added the LocalID as key field in the Survey table of BioticData and AcousticData when read from ICES XML files.
9
+
* Updated documentation of DefineTranslation().
10
+
* Added the element keys to xsdObjects. Keys of other data than input data are defined in initiateRstoxData().
11
+
* Discovered that only the last entry of the Survey table is read by ReadBiotic/ReadAcoustic.
12
+
* Removed the iskey = Y for PreySpeciesCategory in stox-biotic-final-phase.csv.
13
+
* Put convertLen() into getIndividualTotalLength_ICESBiotic() in processBioticData.R.
14
+
* Removed the following functions that were exported but not exposed in the StoX GUI: ConvertStoxBiotic(), ConvertStoxAcoustic(), ConvertBiotic() and ConvertAcoustic(). These were not working, but the intended use can now be achieved using a numeric function in the NewValue field of a TranslationTable og Translate functions.
15
+
* Now passing keys to the function translateVariables() in TranslateICESAcoustic(), TranslateICESBiotic(), TranslateICESDatras() and TranslateICESDatsusc().
16
+
17
+
18
+
1
19
# RstoxData v2.2.0-9006 (2025-11-01)
2
20
* Changed to hard coding UnitWgt to "kg" and UnitLngt to "m" in ICESDatsusc().
# The keys of the input data StoxAcoustic (NMDEchosounder and ICESAcoustic) and StoxBiotic (NMDBiotic and ICESBiotic) (NMDLanding does not have a heirarchical data model) are defined in the RstoxData::xsdObjects. Here, we the keys of the StoxAcousticData and StoxBioticData as well as ICESDatrasData and ICESDatsuscData. The ICESAcousticData and ICESBioticData use expandICESKeysWithPrefix() to add table name as prefix to the keys defined in the RstoxData::xsdObjects (see TranslateICESAcoustic and TranslateICESBiotic):
37
+
keys<-list(
38
+
# StoxBiotic keys:
39
+
StoxBiotic=list(
40
+
Cruise="CruiseKey",
41
+
Station="StationKey",
42
+
Haul="HaulKey",
43
+
SpeciesCategory="SpeciesCategoryKey",
44
+
Sample="SampleKey",
45
+
Individual="IndividualKey",
46
+
PreySpeciesCategory="PreySpeciesCategoryKey",
47
+
PreySample="PreySampleKey",
48
+
PreyIndividual="PreyIndividualKey"
49
+
),
50
+
# StoxAcoustic keys:
51
+
StoxAcoustic=list(
52
+
Cruise="CruiseKey",
53
+
Log="LogKey",
54
+
Beam="BeamKey",
55
+
AcousticCategory="AcousticCategoryKey",
56
+
ChannelReference="ChannelReferenceKey",
57
+
NASC="NASCKey"
58
+
),
59
+
# ICESDatras keys:
60
+
ICESDatras=list(
61
+
HH= c(
62
+
"Quarter",
63
+
"Country",
64
+
"Platform",
65
+
"Gear",
66
+
"HaulNumber"
67
+
),
68
+
HL= c(
69
+
"Quarter",
70
+
"Country",
71
+
"Platform",
72
+
"Gear",
73
+
"HaulNumber",
74
+
"SpeciesCode",
75
+
"LengthClass"
76
+
),
77
+
CA= c(
78
+
"Quarter",
79
+
"Country",
80
+
"Platform",
81
+
"Gear",
82
+
"HaulNumber",
83
+
"SpeciesCode",
84
+
"LengthClass",
85
+
"FishID"
86
+
)
87
+
)
56
88
)
89
+
# Add the ICESDatsusc keys as the same as the ICESDatras:
0 commit comments