Skip to content

Commit 97b37d4

Browse files
committed
Types can be a bit ... tricky
1 parent 31e2d39 commit 97b37d4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/get.jl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
geo :: GeoRegion = GeoRegion("GLB");
55
resolution :: Int = 60,
66
downloadglb :: Bool = false
7-
FT = Float32
87
) -> LandSea
98
109
Retrieve ETOPO 2022 data for a GeoRegion from OPeNDAP servers, or from a previously downloaded Global ETOPO Relief dataset.
@@ -25,7 +24,6 @@ function getLandSea(
2524
resolution :: Int = 60,
2625
downloadglb :: Bool = false,
2726
save :: Bool = true,
28-
FT = Float32
2927
)
3028

3129
# if bedrock
@@ -95,7 +93,7 @@ function getLandSea(
9593
saveLandSea(geo,ggrd.lon,ggrd.lat,rlsm,roro,etd.path,type,resolution)
9694
end
9795

98-
return LandSeaTopo{FT,FT}(ggrd.lon,ggrd.lat,rlsm,roro)
96+
return LandSeaTopo(ggrd.lon,ggrd.lat,rlsm,roro)
9997

10098
else
10199

@@ -163,7 +161,7 @@ function getLandSea(
163161
saveLandSea(geo,ggrd.lon,ggrd.lat,rlsm,roro,etd.path,type,resolution)
164162
end
165163

166-
return LandSeaTopo{FT,FT}(ggrd.lon,ggrd.lat,rlsm,roro)
164+
return LandSeaTopo(ggrd.lon,ggrd.lat,rlsm,roro)
167165

168166
end
169167

@@ -179,7 +177,7 @@ function getLandSea(
179177
@info "$(modulelog()) - Retrieving the regional ETOPO $(uppercase(type)) Land-Sea mask for the \"$(geo.ID)\" GeoRegion ..."
180178
flush(stderr)
181179

182-
return LandSeaTopo{FT,FT}(lon,lat,lsm,oro)
180+
return LandSeaTopo(lon,lat,lsm,oro)
183181

184182
end
185183

0 commit comments

Comments
 (0)