-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent handling of serialnumber in StoX... does it have a different meaning in Biotics and StoX? #290
Comments
Thank you for reporting. It seems to me that the problem relates to some unexpected defaults in AddToStoxBiotic, and some unexpected mappings between NMDbiotic and StoxBiotic. One of these should probably be considered a bug, but I believe they can be worked around by changing the arguments to AddToStoxBiotic. Postions are in StoxBiotic accosiated with station and not haul. This is by design and is documented in https://stoxproject.github.io/RstoxData/reference/StoxBioticFormat.html. When converting from NMDbiotic, the first position among several hauls at a station is selected. I have not been able to find documentation for that, and I think it should be added to the documentation for the function StoxBiotic. Serialnumbers are correctly used to construct hual-ids and not station ids, but AddToStoxBiotic puts serialnumber at station by default. I think this should be considered a bug. Both problems can be overcome by overriding defaults to AddToStoxBiotic. E.g. replacing AddToStoxBiotic-the line in your example with: dataSB <- AddToStoxBiotic(StoxBioticData = dataSB, BioticData = dataB, VariableNames = c("serialnumber", "latitudestart", "longitudestart"), SplitTableAllocation = "Lowest") should produce:
Note that serialnumbers now correspond with the HaulKey and that the columns 'latitudestart' and 'longitudestart' differs from 'Latitude' and 'Longitude'. |
Thanks @edvinf for the clarification. I will try the workaround you suggest. |
AddToStoxBiotic still puts serialnumber on station, rather than haul, by default (v.1.10.1). @arnejohannesholmin . Is this to be considered a bug, or should the issue be closed? |
Hi,
I believe what follows is rather an issue with StoX than improperly entered data for some surveys in Biotics. It may also be linked to issue #267.
Here is a minimal example for reproducing the issue:
This happens when several hauls were done at the same location (called station in BioticEditor: see contextual help screenshots below).
It seems however that StoX attaches the serial number, supposed in Biotics to be unique to the sampling unit, to the station rather than the haul.
For the time being I will be using, as a workaround, the HaulKey (which otherwise seems to be consistently the same as serialnumber) where I was usually using the serial number (and drop that one), but this is quite confusing and leads to inconsistent data when merging tables.
Best wishes,
Yves
[EDIT:]
There is in fact a warning message regarding multiple hauls per station that cannot been handled:
What is confusing is then why is "serialnumber" attached to the Station table, and not the Haul in the StoxBiotic object.
The text was updated successfully, but these errors were encountered: