Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eCalculates the base-10 logarithm for each element within an input array.\u003c/p\u003e\n"],["\u003cp\u003eReturns a new array containing the calculated logarithms.\u003c/p\u003e\n"],["\u003cp\u003eAccepts a single argument: the input array.\u003c/p\u003e\n"],["\u003cp\u003eUsable in both server-side (JavaScript) and client-side (Python) environments.\u003c/p\u003e\n"]]],[],null,["# ee.Array.log10\n\nOn an element-wise basis, computes the base-10 logarithm of the input.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------|---------|\n| Array.log10`()` | Array |\n\n| Argument | Type | Details |\n|---------------|-------|------------------|\n| this: `input` | Array | The input array. |\n\nExamples\n--------\n\n### Code Editor (JavaScript)\n\n```javascript\nprint(ee.Array([0.1, 1, 10, 100]).log10()); // [-1,0,1,2]\n\nvar start = 0.1;\nvar end = 100;\nvar points = ee.Array(ee.List.sequence(start, end, null, 50));\nvar values = points.log10();\n\n// Plot log10() defined above.\nvar chart = ui.Chart.array.values(values, 0, points)\n .setOptions({\n viewWindow: {min: start, max: end},\n hAxis: {\n title: 'x',\n viewWindowMode: 'maximized',\n },\n vAxis: {\n title: 'log10(x)',\n },\n lineWidth: 1,\n pointSize: 0,\n });\nprint(chart);\n```\nPython setup\n\nSee the [Python Environment](/earth-engine/guides/python_install) page for information on the Python API and using\n`geemap` for interactive development. \n\n```python\nimport ee\nimport geemap.core as geemap\n```\n\n### Colab (Python)\n\n```python\nimport altair as alt\nimport pandas as pd\n\ndisplay(ee.Array([0.1, 1, 10, 100]).log10()) # [-1,0,1,2]\n\nstart = 0.1\nend = 100\npoints = ee.Array(ee.List.sequence(start, end, None, 50))\nvalues = points.log10()\n\ndf = pd.DataFrame({'x': points.getInfo(), 'log10(x)': values.getInfo()})\n\n# Plot log10() defined above.\nalt.Chart(df).mark_line().encode(\n x=alt.X('x'),\n y=alt.Y('log10(x)')\n)\n```"]]