For general access to the Wolfram Knowledgebase, use entities of type Ocean instead of OceanData.


gives the value of the specified property for the ocean entity.


gives a list of property values for the specified ocean entities.


gives the specified annotation associated with the given property.


  • OceanData[] gives a list of all ocean entities.
  • OceanData["Properties"] gives a list of available properties.
  • The specified entity in OceanData can be an Entity, EntityClass, entity canonical name, or list thereof.
  • The specified property can be an EntityProperty, EntityPropertyClass, property canonical name, or list of properties.
  • Properties that do not apply or are not known in a particular case are indicated by Missing[].
  • Properties include:
  • "ACICM491Code"ACICM491 code
    "AverageDepth"average depth
    "BorderingBodiesOfWater"bordering bodies of water
    "BorderingCountries"bordering countries
    "CenterCoordinates"center coordinates
    "CoastlineLength"coastline length
    "DIAM6518Code"DIAM6518 code
    "EastWestExtent"east-west extent
    "IHO233Code"IHO233 code
    "IHO234Code"IHO234 code
    "LowestPointLocation"lowest point location
    "MajorCityPorts"major city ports
    "MajorIslands"major islands
    "MajorRivers"major rivers
    "MaximumDepth"maximum depth
    "NaturalResources"natural resources
    "NorthSouthExtent"north-south extent
    "PercentAreaOfEarthsSurface"percentage of Earth's surface
    "Salinity"typical salinity
    "UnderseaFeatures"undersea features
  • Some properties are available for OceanData as a whole and can be given using the form OceanData[property]. Such properties include:
  • "Entities"all available entities
    "EntityCount"total number of available entities
    "Classes"all available entity classes
    "EntityClassCount"total number of available entity classes
    "SampleEntities"list of sample entities
    "SampleEntityClasses"list of sample entity classes
    "EntityCanonicalNames"list of all entity canonical names
    "PropertyCanonicalNames"list of all property canonical names
    "EntityClassCanonicalNames"list of all entity class canonical names
    "RandomEntities"pseudorandom sample entities
    {"RandomEntities",n}n pseudorandom entities
    "RandomEntityClasses"pseudorandom sample entity classes
    {"RandomEntityClasses",n}n pseudorandom entity classes
  • The following annotations can be used in the third argument of OceanData[entity,property,annotation]:
  • "Qualifiers"the list of possible qualifiers for the property
    "QualifierValues"the list of possible values that can be given to each qualifier
    "DefaultQualifierValues"the list of default values for the property's qualifiers
    "Description"a brief textual description of the property
    "Definition"a detailed textual definition of the property
    "Source"source information for the property
    "Date"the date associated with the entity-property value (if any)
    "PhysicalQuantity"the physical quantity associated with the entity-property value
    "Unit"the unit associated with the entity-property value
    "EntityAssociation"an association of entities and entity-property values
    "PropertyAssociation"an association of properties and entity-property values
  • If a function is provided as an annotation, it will be used to aggregate the result data. Typical aggregation functions include:
  • Minthe minimum value
    Maxthe maximum value
    Meanthe mean value
    Commonestthe most frequently occurring value
    Medianthe median value
    Totalreturns the total
    Lengththe number of elements


open allclose all

Basic Examples  (3)

Use for entity discovery:

Find properties of an ocean:

Make a grid of maximum depths for oceans:

Neat Examples  (1)

Map the bordering countries of the Arabian Sea:

Wolfram Research (2014), OceanData, Wolfram Language function, https://reference.wolfram.com/language/ref/OceanData.html.


Wolfram Research (2014), OceanData, Wolfram Language function, https://reference.wolfram.com/language/ref/OceanData.html.


Wolfram Language. 2014. "OceanData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OceanData.html.


Wolfram Language. (2014). OceanData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OceanData.html


@misc{reference.wolfram_2024_oceandata, author="Wolfram Research", title="{OceanData}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/OceanData.html}", note=[Accessed: 17-June-2024 ]}


@online{reference.wolfram_2024_oceandata, organization={Wolfram Research}, title={OceanData}, year={2014}, url={https://reference.wolfram.com/language/ref/OceanData.html}, note=[Accessed: 17-June-2024 ]}