load_Bathy {CCAMLRGIS}R Documentation

Load Bathymetry data


Download the up-to-date projected GEBCO data from the online CCAMLRGIS (http://gis.ccamlr.org/) and load it to your environment. This functions can be used in two steps, to first download the data and then use it. If you keep the downloaded data, you can then re-use it in all your scripts.


load_Bathy(LocalFile, Res = 5000)



To download the data, set to FALSE. To re-use a downloaded file, set to the full path of the file (e.g., LocalFile="C:/Desktop/GEBCO2023_5000.tif").


Desired resolution in meters. May only be one of: 500, 1000, 2500 or 5000.


To download the data, you must either have set your working directory using setwd, or be working within an Rproject. In any case, your file will be downloaded to the folder path given by getwd.

It is strongly recommended to first download the lowest resolution data (set Res=5000) to ensure it is working as expected.

To re-use the downloaded data, you must provide the full path to that file, for example:


This data was reprojected from the original GEBCO Grid after cropping at 40 degrees South. Projection was made using the Lambert azimuthal equal-area projection (CCAMLRp), and the data was aggregated at several resolutions.


Bathymetry raster.


GEBCO Compilation Group (2023) GEBCO 2023 Grid (doi:10.5285/f98b053b-0cbc-6c23-e053-6c86abc0af7b)

See Also

add_col, add_Cscale, Depth_cols, Depth_cuts, Depth_cols2, Depth_cuts2, get_depths, create_Stations, get_iso_polys, SmallBathy.



#The examples below are commented. To test, remove the '#'.

##Download the data. It will go in the folder given by getwd():
#Bathy=load_Bathy(LocalFile = FALSE,Res=5000)
#plot(Bathy, breaks=Depth_cuts,col=Depth_cols,axes=FALSE)

##Re-use the downloaded data (provided it's here: "C:/Desktop/GEBCO2023_5000.tif"):
#Bathy=load_Bathy(LocalFile = "C:/Desktop/GEBCO2023_5000.tif")
#plot(Bathy, breaks=Depth_cuts,col=Depth_cols,axes=FALSE)

[Package CCAMLRGIS version 4.1.1 Index]