Observation¶
- class pyinaturalist.models.Observation(created_at_details=None, observed_on_string=None, observed_time_zone=None, time_zone_offset=None, **kwargs)¶
Bases:
pyinaturalist.models.base.BaseModel
An observation, based the schema of GET /observations
- __init__(created_at_details=None, observed_on_string=None, observed_time_zone=None, time_zone_offset=None, **kwargs)¶
Method generated by attrs for class Observation.
Attributes
Name
Type
Description
id
Unique record ID
created_at
Date and time the observation was created
captive
Indicates if the organism is non-wild (captive or cultivated)
community_taxon_id
The current community identification taxon
description
Observation description
faves
Details on users who have favorited the observation
geoprivacy
Location privacy level
Options:
obscured
,obscured_private
,open
,private
identifications_count
Total number of identifications
identifications_most_agree
Indicates if most identifications agree with the community ID
identifications_most_disagree
Indicates if most identifications disagree with the community ID
identifications_some_agree
Indicates if some identifications agree with the community ID
license_code
Creative Commons license code
Options:
CC-BY
,CC-BY-NC
,CC-BY-ND
,CC-BY-SA
,CC-BY-NC-ND
,CC-BY-NC-SA
,CC0
,ALL RIGHTS RESERVED
location
Location in
(latitude, logitude)
decimal degreesmappable
Indicates if the observation can be shown on a map
num_identification_agreements
Total identifications that agree with the community ID
num_identification_disagreements
Total identifications that disagree with the community ID
oauth_application_id
ID of the OAuth application used to create the observation, if any
obscured
Indicates if coordinates are obscured (showing a broad approximate location on the map)
observed_on
Date and time the organism was observed
outlinks
Linked observation pages on other sites (e.g., GBIF)
out_of_range
Indicates if the taxon is observed outside of its known range
owners_identification_from_vision
Indicates if the owner’s ID was selected from computer vision results
place_guess
Place name determined from observation coordinates
place_ids
positional_accuracy
GPS accuracy in meters (real accuracy, if obscured)
preferences
Any user observation preferences (related to community IDs, coordinate access, etc.)
project_ids
All associated project IDs
project_ids_with_curator_id
Project IDs with a curator identification for this observation
project_ids_without_curator_id
Project IDs without curator identification for this observation
public_positional_accuracy
GPS accuracy in meters (not accurate if obscured)
quality_grade
Quality grade
Options:
casual
,needs_id
,research
quality_metrics
Data quality assessment metrics
reviewed_by
IDs of users who have reviewed the observation
site_id
Site ID for iNaturalist network members, or
1
for inaturalist.orgsounds
Observation sound files
species_guess
Taxon name from observer’s initial identification
tags
Arbitrary user tags added to the observation
updated_at
Date and time the observation was last updated
uri
Link to observation details page
uuid
Universally unique ID; generally preferred over
id
where possiblevotes
Votes on data quality assessment metrics
photo_url (
property
)Original size photo URL for first observation photo (if any)
thumbnail_url (
property
)Thumbnail size photo URL for first observation photo (if any)
annotations (
LazyProperty
)Observation annotations
comments (
LazyProperty
)Observation comments
identifications (
LazyProperty
)Observation identifications
ofvs (
LazyProperty
)Observation field values
photos (
LazyProperty
)Observation photos
project_observations (
LazyProperty
)Details on any projects that the observation has been added to
taxon (
LazyProperty
)Observation taxon
user (
LazyProperty
)Observer
Methods
- __init__(created_at_details=None, observed_on_string=None, observed_time_zone=None, time_zone_offset=None, **kwargs)¶
Method generated by attrs for class Observation.
- classmethod from_id(id)¶
Lookup and create a new Observation object from an ID
- classmethod from_json(value, **kwargs)¶
Initialize a single model object from an API response or response result.
Omits any invalid fields and
None
values, so default factories are used instead (e.g. for empty dicts and lists).
- classmethod from_json_file(value)¶
Initialize a collection of model objects from a JSON string, file path, or file-like object
- classmethod from_json_list(value)¶
Initialize a collection of model objects from an API response or response results