set_locality#
Note
Locality information is not required by the ALA, but it is nice to have.
One of the functions you can use to check your data is set_locality()
.
This function aims to check if you have the following:
continent
: the latitude of your observationcountry
: the latitude of your observationcountryCode
: the coordinate reference system (CRS) of your latitude and longitudestateProvince
: uncertainty of your measurements in meterslocality
: uncertainty of your measurements in decimal degrees
specifying locality
#
For our example dataset, we have a column titled ‘location’. However, this is not a Darwin Core
term, and we need to be more specific. ‘Cannonvale’ is a suburb, and anything that’s a suburb
will go under the locality
field.
>>> my_dwca.set_locality(check_events = True, locality='location')
type locality date name
0 siteVisit Cannonvale 3/1/2023 bird survey local park honeyeater lookout point
1 siteVisit Cannonvale 17/1/2023 bird survey local park honeyeater lookout point
2 siteVisit Cannonvale 31/1/2023 bird survey local park honeyeater lookout point
3 siteVisit Cannonvale 14/2/2023 bird survey local park honeyeater lookout point
4 siteVisit Cannonvale 28/2/2023 bird survey local park honeyeater lookout point
Other functions#
To learn more about how to use other functions, go to
Optional functions:
Passing Dataset: