Closed larspett closed 6 months ago
@ScientiaFelis denna är rätt besvärlig, skulle behöva kunna köra kartor strax
Looks like the map is missing from data-raw
@larspett fungerade det med paketfilen jag skickade? Jag har flyttat kartan och swegrid från data-raw till external där de borde ligga. Funktionen refererar också dit.
Ja det funkade från filen du skickade med, har inte provat att installera från github med senaste
Ok, bra! Kan du använda den för att göra kartorna nu då?
Jag får kolla igen men det verkade vara för få lokaler 2023, ska kolla ikväll vad den kopplar mot
28 feb. 2024 kl. 17:22 skrev Georg @.***>:
Ok, bra! Kan du använda den för att göra kartorna nu då?
— Reply to this email directly, view it on GitHubhttps://github.com/ScientiaFelis/sebmsR/issues/64#issuecomment-1969352062, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEVQXZHMLDIB6KPDAKL2QQLYV5KTRAVCNFSM6AAAAABDMFZ5D2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZGM2TEMBWGI. You are receiving this because you were mentioned.Message ID: @.***>
@ScientiaFelis Jag får install failure, märkligt nog med hänvisning till 1.9.7:
Warning: replacing previous import ‘glue::trim’ by ‘rtrim::trim’ when loading ‘sebmsR’ Cannot connect to SeBMS db, are credentials invalid and/or do you need an ssh tunnel? Config file used: /Users/lars/Library/Application Support/sebms/config.yml, timestamp: 2024-03-04 13:46:16 Using database: sebms Using server: localhost Using port: 5433 Using dbuser: ekol_lpe Error: package or namespace load failed for ‘sebmsR’: .onLoad failed in loadNamespace() for 'sebmsR', details: call: as.character.default(X[[i]], ...) error: no method for coercing this S4 class to a vector Error: loading failed Execution halted ERROR: loading failed
- removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/sebmsR’ Warning message: In i.p(...) : installation of package ‘/var/folders/gt/gd28fw417g1f3ths5fm6888c0000gn/T//RtmprxevWj/file10bdc6d4bd493/sebmsR_1.9.7.tar.gz’ had non-zero exit status
senaste på github ser ut att vara 1.9.5?
map related files don't install from github but when installing from gz archive. After that they mostly work, although there are some funny outputs (see below)
when running sebms_distribution_map(year=2023,Län = 'Jämtland') I get many correct maps but also this (citronfjäril) where filled grid cell is too large. Densities should be 5+ and 1
and this one (others too) where a site is marked but the indication is for 0 density (should be at least 1)
@ScientiaFelis IMPORTANT: check how the aggregations are calculated: from what I can tell, it seems all observations of a species at each site within each grid cell might be summed whereas it should be just the top observation of each species at each site within a grid square that is summed to generated the aggregation shading
Bäckpärlemor looks funny to (split grid)
But it seems aggregation might be ok, when I check makaon they look similar
Although violett guldvinge seems a bit different
The data used for the old style map is this, what is used for the sebmsR? Can that be exported?
Ok, detta måste jag kolla lite mer på. Verkar lite skumt.
De felfärgade rutorna kan ju bero på underliggande data inte är samma. Men där det finns observerade fjärilar borde det ju vara minst 1, så där är det ju något annat konstigt.
Ska kolla det går att ta fram underlag liknande det du skickade.
ping @ScientiaFelis detta händer i de flesta fall med få platser, för 2023 har det hänt för en hel rad arter, alkonblåvinge (vertikalt streck, ingen skuggning), blomvisslare (rutor ok men ingen skuggning), busksnabbvinge (stora skuggade rutor), bäckpärlemorfjäril (rutor delade vertikalt, ingen skuggning), dårgräsfjäril (rutor delade horisontellt, ingen skuggning), fjällbastardsvärmare (rutor delade horisontellt, ingen skuggning), ingen skuggning för fjällpärlemorfjäril eller fjällvickerblåvinge, Frejas pärlemorfjäril (rutor delade vertikalt, ingen skuggning), Friggas pärlemorfjäril & Gullvivefjäril (ingen skuggning), Kattunvisslare & Klubbsprötad bastardsvärmare (stora skuggade rutor), Krattsnabbvinge (inget problem alls!), Myrgräsfjäril (rutor delade vertikalt, ingen skuggning), Smalsprötad bastardsvärmare (rutor ok men ingen skuggning), Videfuks (för många rutor skuggade!)
@larspett I close this as the first problem the Issue was created for is fixed (of what I can tell).
I have created two new issues with the other problems. #66 and #67
These seem to lack data or something else.