@@ -21,7 +21,7 @@ def load_earth_free_air_anomaly(
21
21
] = "01d" ,
22
22
region : Sequence [float ] | str | None = None ,
23
23
registration : Literal ["gridline" , "pixel" , None ] = None ,
24
- data_source : Literal [ "faa" , "faaerror" ] = "faa" ,
24
+ uncertainty : False | True = False ,
25
25
) -> xr .DataArray :
26
26
r"""
27
27
Load the IGPP Earth free-air anomaly dataset in various resolutions.
@@ -71,7 +71,7 @@ def load_earth_free_air_anomaly(
71
71
Grid registration type. Either ``"pixel"`` for pixel registration or
72
72
``"gridline"`` for gridline registration. Default is ``None``, means
73
73
``"gridline"`` for all resolutions except ``"01m"`` which is ``"pixel"`` only.
74
- data_source
74
+ Uncertainty
75
75
Select the free air anomaly data. Available options are:
76
76
77
77
- ``"faa"``: Altimetry-based marine free-air anomaly values.
@@ -80,8 +80,8 @@ def load_earth_free_air_anomaly(
80
80
Returns
81
81
-------
82
82
grid
83
- The Earth free-air anomaly grid. Coordinates are latitude and
84
- longitude in degrees. Units are in mGal.
83
+ The Earth free-air anomaly grid. Coordinates are latitude and longitude in
84
+ degrees Units are in mGal.
85
85
86
86
Note
87
87
----
@@ -99,6 +99,8 @@ def load_earth_free_air_anomaly(
99
99
>>> from pygmt.datasets import load_earth_free_air_anomaly
100
100
>>> # load the default grid (gridline-registered 1 arc-degree grid)
101
101
>>> grid = load_earth_free_air_anomaly()
102
+ >>> # load the uncertainties related to the default grid
103
+ >>> grid = load_earth_free_air_anomaly(uncertainty=True)
102
104
>>> # load the 30 arc-minutes grid with "gridline" registration
103
105
>>> grid = load_earth_free_air_anomaly(resolution="30m", registration="gridline")
104
106
>>> # load high-resolution (5 arc-minutes) grid for a specific region
@@ -108,13 +110,13 @@ def load_earth_free_air_anomaly(
108
110
"""
109
111
# Map data source to prefix
110
112
prefix = {
111
- "faa" : "earth_faa" ,
112
- "faaerror" : "earth_faaerror" ,
113
- }.get (data_source )
113
+ False : "earth_faa" ,
114
+ True : "earth_faaerror" ,
115
+ }.get (uncertainty )
114
116
if prefix is None :
115
117
msg = (
116
- f"Invalid earth free air anomaly data source '{ data_source } '. "
117
- "Valid values are 'faa' and 'faaerror' ."
118
+ f"Invalid earth free air anomaly data type '{ uncertainty } '. "
119
+ "Valid inputs are False for the values and True for the uncertainties ."
118
120
)
119
121
raise GMTInvalidInput (msg )
120
122
grid = _load_remote_dataset (
0 commit comments