Skip to content

Commit d4cf46e

Browse files
committed
data_import.jl
1 parent 99d1c53 commit d4cf46e

11 files changed

+45
-45
lines changed

docs/src/man/Tutorial_AlpineData.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ We will only consider earthquakes with a magnitude larger than 3. The resulting
208208
download_data("http://www.isc.ac.uk/cgi-bin/web-db-run?request=COLLECTED&req_agcy=ISC-EHB&out_format=QuakeML&ctr_lat=&ctr_lon=&radius=&max_dist_units=deg&searchshape=RECT&top_lat=49&bot_lat=37&left_lon=4&right_lon=20&srn=&grn=&start_year=1990&start_month=1&start_day=01&start_time=00%3A00%3A00&end_year=2015&end_month=12&end_day=31&end_time=00%3A00%3A00&min_dep=&max_dep=&min_mag=3.0&max_mag=&req_mag_type=Any&req_mag_agcy=Any&min_def=&max_def=&prime_only=on&include_magnitudes=on&table_owner=iscehb","ISCData.xml")
209209
```
210210

211-
Once the data has been downloaded, we can extract `lon/lat/depth/magnitude` using the `GMG` function `GetLonLatDepthMag_QuakeML`, which returns a `GeoData` structure:
211+
Once the data has been downloaded, we can extract `lon/lat/depth/magnitude` using the `GMG` function `getlonlatdepthmag_QuakeML`, which returns a `GeoData` structure:
212212

213213
```julia
214-
Data_ISC = GetLonLatDepthMag_QuakeML("ISCData.xml");
214+
Data_ISC = getlonlatdepthmag_QuakeML("ISCData.xml");
215215
nothing #hide
216216
```
217217

docs/src/man/Tutorial_Jura.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ upperright = [8.948117154811715, 47.781282316442606, 0.0]
4141
We can now import the map with the `Screensho_To_GeoData` function:
4242

4343
```julia
44-
Geology = Screenshot_To_GeoData("SchoriM_Encl_01_Jura-map_A1.png", lowerleft, upperright, fieldname=:geology_colors) # name should have "colors" in it
44+
Geology = screenshotToGeoData("SchoriM_Encl_01_Jura-map_A1.png", lowerleft, upperright, fieldname=:geology_colors) # name should have "colors" in it
4545
```
4646

4747
You can "drape" this image on the topographic map with
@@ -89,7 +89,7 @@ As example, we use the cross-section
8989
download_data("https://zenodo.org/records/10726801/files/Schori_2020_Ornans-Miserey-v2_whiteBG.png", "Schori_2020_Ornans-Miserey-v2_whiteBG.png")
9090
Corner_LowerLeft = (5.92507, 47.31300, -2.0)
9191
Corner_UpperRight = (6.25845, 46.99550, 2.0)
92-
CrossSection_1 = Screenshot_To_GeoData("Schori_2020_Ornans-Miserey-v2_whiteBG.png", Corner_LowerLeft, Corner_UpperRight) # name should have "colors" in it
92+
CrossSection_1 = screenshotToGeoData("Schori_2020_Ornans-Miserey-v2_whiteBG.png", Corner_LowerLeft, Corner_UpperRight) # name should have "colors" in it
9393
```
9494

9595
Note that we slightly modified the image to save it with a white instead of a transparent background

docs/src/man/dataimport.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
We have a number of ways to import data, besides using any of the additional packages in julia to read files.
44

55
```@docs
6-
GeophysicalModelGenerator.Screenshot_To_GeoData
7-
GeophysicalModelGenerator.Screenshot_To_CartData
8-
GeophysicalModelGenerator.Screenshot_To_UTMData
6+
GeophysicalModelGenerator.screenshotToGeoData
7+
GeophysicalModelGenerator.screenshotToCartData
8+
GeophysicalModelGenerator.screenshotToUTMData
99
GeophysicalModelGenerator.importTopo
1010
GeophysicalModelGenerator.importGeoTIFF
1111
```

docs/src/man/tutorial_GMT_Topography_GeologicalMap.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ At this step, only the topographic data is imported. Now we have to import the t
5151
julia> Corner_LowerLeft = (lon_min, lat_min , 0.0)
5252
julia> Corner_UpperRight = (lon_max, lat_max , 0.0)
5353
```
54-
and import the png file with the GMG function `Screenshot_To_GeoData`:
54+
and import the png file with the GMG function `screenshotToGeoData`:
5555

5656
```julia
57-
julia> DataPNG = Screenshot_To_GeoData(filename_geo, Corner_LowerLeft, Corner_UpperRight)
57+
julia> DataPNG = screenshotToGeoData(filename_geo, Corner_LowerLeft, Corner_UpperRight)
5858
```
5959

6060
Next, we drape the screenshot on the topographic map with `drape_on_topo`:

docs/src/man/tutorial_Screenshot_To_Paraview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Once this is done, and we saved the picture under `Lippitsch_Fig13a.png`, you ca
4343

4444
```julia
4545
julia> using GeophysicalModelGenerator
46-
julia> data_profile1 = Screenshot_To_GeoData("Lippitsch_Fig13a.png",Corner_LowerLeft, Corner_UpperRight)
46+
julia> data_profile1 = screenshotToGeoData("Lippitsch_Fig13a.png",Corner_LowerLeft, Corner_UpperRight)
4747
Extracting GeoData from: Lippitsch_Fig13a.png
4848
└ Corners: lon lat depth
4949
└ lower left = (4.65 , 45.73 , -400.0 )
@@ -80,7 +80,7 @@ Corner_LowerLeft = ( 3.5, 43.0 , -150.0)
8080
Corner_UpperRight = (15.5, 50.0 , -150.0)
8181
Corner_LowerRight = (15.5, 43.0 , -150.0)
8282
Corner_UpperLeft = (3.5 , 50.0 , -150.0)
83-
data_Fig13_map = Screenshot_To_GeoData("Fig13_mapview.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
83+
data_Fig13_map = screenshotToGeoData("Fig13_mapview.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
8484
Write_Paraview(data_Fig13_map, "Lippitsch_Fig13_mapview")
8585
```
8686

src/data_import.jl

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
using LightXML
88

9-
export Screenshot_To_GeoData, Screenshot_To_CartData, Screenshot_To_UTMData, GetLonLatDepthMag_QuakeML
9+
export screenshotToGeoData, screenshotToCartData, screenshotToUTMData, getlonlatdepthmag_QuakeML
1010

1111
# import CSV data using standard library functions
1212
# here we assume that the data is indeed comma separated and that comments are preceded with a "#"
@@ -160,7 +160,7 @@ end
160160

161161

162162
"""
163-
Screenshot_To_GeoData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, Cartesian=false, UTM=false, UTMzone, isnorth=true, fieldname::Symbol=:colors)
163+
screenshotToGeoData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, Cartesian=false, UTM=false, UTMzone, isnorth=true, fieldname::Symbol=:colors)
164164
165165
Take a screenshot of Georeferenced image either a `lat/lon`, `x,y` (if `Cartesian=true`) or in UTM coordinates (if `UTM=true`) at a given depth or along profile and converts it to a `GeoData`, `CartData` or `UTMData` struct, which can be saved to Paraview
166166
@@ -170,7 +170,7 @@ The lower right and upper left corners can be specified optionally (to take non-
170170
171171
*Note*: if your data is in `UTM` coordinates you also need to provide the `UTMzone` and whether we are on the northern hemisphere or not (`isnorth`).
172172
"""
173-
function Screenshot_To_GeoData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, Cartesian=false, UTM=false, UTMzone=nothing, isnorth::Bool=true, fieldname::Symbol=:colors)
173+
function screenshotToGeoData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, Cartesian=false, UTM=false, UTMzone=nothing, isnorth::Bool=true, fieldname::Symbol=:colors)
174174

175175
img = load(filename) # load image
176176

@@ -287,39 +287,39 @@ end
287287

288288

289289
"""
290-
Data = Screenshot_To_CartData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing)
290+
Data = screenshotToCartData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing)
291291
292-
Does the same as `Screenshot_To_GeoData`, but returns a `CartData` structure
292+
Does the same as `screenshotToGeoData`, but returns a `CartData` structure
293293
"""
294-
function Screenshot_To_CartData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, fieldname::Symbol=:colors)
294+
function screenshotToCartData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, fieldname::Symbol=:colors)
295295

296296

297297
# first create a GeoData struct
298-
Data_Cart = Screenshot_To_GeoData(filename, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, Cartesian=true, fieldname=fieldname)
298+
Data_Cart = screenshotToGeoData(filename, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, Cartesian=true, fieldname=fieldname)
299299

300300
return Data_Cart
301301

302302
end
303303

304304
"""
305-
Data = Screenshot_To_UTMData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, UTMzone::Int64=nothing, isnorth::Bool=true, fieldname=:colors)
305+
Data = screenshotToUTMData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, UTMzone::Int64=nothing, isnorth::Bool=true, fieldname=:colors)
306306
307-
Does the same as `Screenshot_To_GeoData`, but returns for UTM data
307+
Does the same as `screenshotToGeoData`, but returns for UTM data
308308
Note that you have to specify the `UTMzone` and `isnorth`
309309
"""
310-
function Screenshot_To_UTMData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, UTMzone::Int64=nothing, isnorth::Bool=true, fieldname::Symbol=:colors)
310+
function screenshotToUTMData(filename::String, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=nothing, Corner_UpperLeft=nothing, UTMzone::Int64=nothing, isnorth::Bool=true, fieldname::Symbol=:colors)
311311

312312
# first create a GeoData struct
313-
Data_UTM = Screenshot_To_GeoData(filename, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, Cartesian=false, UTM=true, UTMzone=UTMzone, isnorth=isnorth, fieldname=fieldname)
313+
Data_UTM = screenshotToGeoData(filename, Corner_LowerLeft, Corner_UpperRight; Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, Cartesian=false, UTM=true, UTMzone=UTMzone, isnorth=isnorth, fieldname=fieldname)
314314
return Data_UTM
315315
end
316316

317317
"""
318-
Data = GetLonLatDepthMag_QuakeML(filename::String)
318+
Data = getlonlatdepthmag_QuakeML(filename::String)
319319
320320
Extracts longitude, latitude, depth and magnitude from a QuakeML file that has been e.g. downloaded from ISC. The data is then returned in GeoData format.
321321
"""
322-
function GetLonLatDepthMag_QuakeML(filename::String)
322+
function getlonlatdepthmag_QuakeML(filename::String)
323323
# The QuakeML format consists of a tree with quite a lot of branches, so we have to traverse it to quite some extent to get the desired values
324324
# using LightXML: extension???
325325
xdoc = parse_file(filename); # parse the whole file

test/test_data_import.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@ using GeophysicalModelGenerator
3232
filename = "test.png"; # fake png
3333
Corner_LowerLeft = (18.0, 51.0, -590.0)
3434
Corner_UpperRight = (9.0, 42.0, 0.0)
35-
data_Image = Screenshot_To_GeoData(filename,Corner_LowerLeft, Corner_UpperRight)
35+
data_Image = screenshotToGeoData(filename,Corner_LowerLeft, Corner_UpperRight)
3636
@test data_Image.lon[1000] 17.592964824120603
3737
@test data_Image.lat[1000] 50.59296482412061
3838
@test Value(data_Image.depth[1000])==-590km
3939
@test Write_Paraview(data_Image, "Profile_1")==nothing
4040

4141
# test if we use a different name for the color dataset
42-
data_Image_newfieldname = Screenshot_To_GeoData(filename,Corner_LowerLeft, Corner_UpperRight, fieldname=:fake)
42+
data_Image_newfieldname = screenshotToGeoData(filename,Corner_LowerLeft, Corner_UpperRight, fieldname=:fake)
4343
@test keys(data_Image_newfieldname.fields)[1] == :fake
4444

4545
# Test in CartData
46-
data_Image = Screenshot_To_GeoData(filename,Corner_LowerLeft, Corner_UpperRight, Cartesian=true)
46+
data_Image = screenshotToGeoData(filename,Corner_LowerLeft, Corner_UpperRight, Cartesian=true)
4747
@test Value(data_Image.x[22]) == 18.0km
4848
@test Value(data_Image.y[22]) == 51.0km
4949
@test Value(data_Image.z[22]) -125.15151515151516km
5050

5151

5252
# Test in UTM zone [note that depth should be in m]
53-
data_Image = Screenshot_To_GeoData(filename,Corner_LowerLeft, Corner_UpperRight, UTM=true, UTMzone=33, isnorth=true)
53+
data_Image = screenshotToGeoData(filename,Corner_LowerLeft, Corner_UpperRight, UTM=true, UTMzone=33, isnorth=true)
5454
@test data_Image.EW.val[22] == 18.0
5555
@test data_Image.NS.val[22] == 51.0
5656
@test Value(data_Image.depth[22]) -125.15151515151516m
@@ -61,27 +61,27 @@ Corner_LowerLeft = (2.0, 40.0, -15.0)
6161
Corner_UpperRight = (22.0, 51.0, -15.0)
6262
Corner_LowerRight = (20.0, 40.0, -15.0)
6363
Corner_UpperLeft = (0.0, 51.0, -15.0)
64-
data_Image = Screenshot_To_GeoData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft)
64+
data_Image = screenshotToGeoData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft)
6565
@test data_Image.lon[1000] 2.814070351758794
6666
@test data_Image.lat[1000] 40.00000000000001
6767
@test Value(data_Image.depth[1000])==-15km
6868
@test Write_Paraview(data_Image, "MapView_1") == nothing
6969

7070
# MapView in CartData
71-
data_Image = Screenshot_To_CartData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft)
71+
data_Image = screenshotToCartData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft)
7272
@test Value(data_Image.x[22]) 0.42424242424242425km
7373
@test Value(data_Image.y[22]) 48.666666666666664km
7474
@test Value(data_Image.z[22]) -15km
7575

7676
# MapView in UTMData
77-
data_Image = Screenshot_To_UTMData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, UTMzone=33, isnorth=true)
77+
data_Image = screenshotToUTMData(filename,Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight, Corner_UpperLeft=Corner_UpperLeft, UTMzone=33, isnorth=true)
7878
@test data_Image.EW.val[22] 0.42424242424242425
7979
@test data_Image.NS.val[22] 48.666666666666664
8080
@test Value(data_Image.depth[22]) -15.0m
8181

8282
# test the import of xml files from ISC
8383
# the search criteria are set in a way that only one event should be found
8484
download_data("http://www.isc.ac.uk/cgi-bin/web-db-run?request=COLLECTED&req_agcy=ISC-EHB&out_format=QuakeML&ctr_lat=&ctr_lon=&radius=&max_dist_units=deg&searchshape=RECT&top_lat=49&bot_lat=37&left_lon=4&right_lon=20&srn=&grn=&start_year=2000&start_month=1&start_day=01&start_time=00%3A00%3A00&end_year=2005&end_month=12&end_day=31&end_time=00%3A00%3A00&min_dep=&max_dep=&min_mag=5.8&max_mag=&req_mag_type=Any&req_mag_agcy=Any&min_def=&max_def=&include_magnitudes=on&include_links=on&include_headers=on&include_comments=on&table_owner=iscehb","ISCTest.xml")
85-
Data_ISC = GetLonLatDepthMag_QuakeML("ISCTest.xml");
85+
Data_ISC = getlonlatdepthmag_QuakeML("ISCTest.xml");
8686
@test Value(Data_ISC.depth[1])==-13.0km
8787
@test Data_ISC.fields.Magnitude[1]==5.8

tutorials/Lippitsch_Screenshots.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,53 @@ using GeophysicalModelGenerator
1212

1313
# Process cross-sections of Figure 13. Note that we estimated some of the lon/lat locations
1414

15-
data_Fig13a = Screenshot_To_GeoData("Lippitsch_Fig13a.png",( 4.65,45.73, -400.0), (17.23, 43.80, 0.0))
15+
data_Fig13a = screenshotToGeoData("Lippitsch_Fig13a.png",( 4.65,45.73, -400.0), (17.23, 43.80, 0.0))
1616
Write_Paraview(data_Fig13a, "Lippitsch_Fig13a")
1717

18-
data_Fig13b = Screenshot_To_GeoData("Lippitsch_Fig13b.png",( 5.51,51.53, -400.0), (12.04, 43.68 , 0.0))
18+
data_Fig13b = screenshotToGeoData("Lippitsch_Fig13b.png",( 5.51,51.53, -400.0), (12.04, 43.68 , 0.0))
1919
Write_Paraview(data_Fig13b, "Lippitsch_Fig13b")
2020

21-
data_Fig13c = Screenshot_To_GeoData("Lippitsch_Fig13c.png",(17.78,50.95, -400.0), (11.66, 43.68, 0.0))
21+
data_Fig13c = screenshotToGeoData("Lippitsch_Fig13c.png",(17.78,50.95, -400.0), (11.66, 43.68, 0.0))
2222
Write_Paraview(data_Fig13c, "Lippitsch_Fig13c")
2323

2424
# Mapview images
2525
Corner_LowerLeft = ( 3.5, 43.0 , -150.0)
2626
Corner_UpperRight = (15.5, 50.0 , -150.0)
2727
Corner_LowerRight = (15.5, 43.0 , -150.0)
2828
Corner_UpperLeft = (3.5 , 50.0 , -150.0)
29-
data_Fig13_map = Screenshot_To_GeoData("Fig13_mapview.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
29+
data_Fig13_map = screenshotToGeoData("Fig13_mapview.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
3030
Write_Paraview(data_Fig13_map, "Lippitsch_Fig13_mapview")
3131

3232
Depth = -90.0;
3333
Corner_LowerLeft = (Corner_LowerLeft[1], Corner_LowerLeft[2], Depth)
3434
Corner_UpperRight = (Corner_UpperRight[1], Corner_UpperRight[2], Depth)
3535
Corner_LowerRight = (Corner_LowerRight[1], Corner_LowerRight[2], Depth)
3636
Corner_UpperLeft = (Corner_UpperLeft[1], Corner_UpperLeft[2], Depth)
37-
data_Fig12_90km = Screenshot_To_GeoData("Fig12_90km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
37+
data_Fig12_90km = screenshotToGeoData("Fig12_90km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
3838
Write_Paraview(data_Fig12_90km, "Lippitsch_Fig12_90km")
3939

4040
Depth = -180.0;
4141
Corner_LowerLeft = (Corner_LowerLeft[1], Corner_LowerLeft[2], Depth)
4242
Corner_UpperRight = (Corner_UpperRight[1], Corner_UpperRight[2], Depth)
4343
Corner_LowerRight = (Corner_LowerRight[1], Corner_LowerRight[2], Depth)
4444
Corner_UpperLeft = (Corner_UpperLeft[1], Corner_UpperLeft[2], Depth)
45-
data_Fig12_180km = Screenshot_To_GeoData("Fig12_180km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
45+
data_Fig12_180km = screenshotToGeoData("Fig12_180km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
4646
Write_Paraview(data_Fig12_180km, "Lippitsch_Fig12_180km")
4747

4848
Depth = -300.0;
4949
Corner_LowerLeft = (Corner_LowerLeft[1], Corner_LowerLeft[2], Depth)
5050
Corner_UpperRight = (Corner_UpperRight[1], Corner_UpperRight[2], Depth)
5151
Corner_LowerRight = (Corner_LowerRight[1], Corner_LowerRight[2], Depth)
5252
Corner_UpperLeft = (Corner_UpperLeft[1], Corner_UpperLeft[2], Depth)
53-
data_Fig12_300km = Screenshot_To_GeoData("Fig12_300km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
53+
data_Fig12_300km = screenshotToGeoData("Fig12_300km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
5454
Write_Paraview(data_Fig12_300km, "Lippitsch_Fig12_300km")
5555

5656
Depth = -400.0;
5757
Corner_LowerLeft = (Corner_LowerLeft[1], Corner_LowerLeft[2], Depth)
5858
Corner_UpperRight = (Corner_UpperRight[1], Corner_UpperRight[2], Depth)
5959
Corner_LowerRight = (Corner_LowerRight[1], Corner_LowerRight[2], Depth)
6060
Corner_UpperLeft = (Corner_UpperLeft[1], Corner_UpperLeft[2], Depth)
61-
data_Fig12_400km = Screenshot_To_GeoData("Fig12_400km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
61+
data_Fig12_400km = screenshotToGeoData("Fig12_400km.png",Corner_LowerLeft, Corner_UpperRight, Corner_LowerRight=Corner_LowerRight,Corner_UpperLeft=Corner_UpperLeft)
6262
Write_Paraview(data_Fig12_400km, "Lippitsch_Fig12_400km")
6363

6464

0 commit comments

Comments
 (0)