Skip to content

Converts EMODnet bathymetry data from NetCDF to Cloud Optimised Geotiff

License

Notifications You must be signed in to change notification settings

NOC-OI/convert_emodnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Converting Emodnet

This script takes one or more EMODnet tiles and converts them to a cloud optimised GeoTiff, validates the new file, and uploads to JASMIN.


Prerequisites

Before running the script you will need the following environment variables set:

  • JASMIN_TOKEN
  • JASMIN_SECRET
  • JASMIN_API_URL

INPUT_PATH, OUTPUT_PATH & BUCKET_NAME within the script will likely need changing too.

Running the script without upload

If you'd like to download the default E3 and E4 tiles and create the combined COG file without uploading to JASMIN then run the script run.sh.

Running the script manually

To run script, run the folowing commands:

conda env update -f environment.yml
conda activate imfe_convert_emodnet

python process_emodnet -i  input_dir -o output_dir -b bucket name
  • input_dir should be replaced with the path to directory containing the .nc file of data.
  • output_dir should be replaced with the path to directory containing the COG file.
  • bucket_name is the name of the bucket in JASMIN to write to

Running the script without uploading

To generate the STAC catalog without uploading use the command: python process_emodnet -i input_dir -o output_dir -b bucket name --skip-upload.

Authors

This code was originally developed by Matt McCormack, James Clare, Henry James and Vidya Krishnan from the British Oceanographic Data Centre with further refinements by Colin Sauze and Tobias Ferreira.

About

Converts EMODnet bathymetry data from NetCDF to Cloud Optimised Geotiff

Resources

License

Stars

Watchers

Forks

Packages

No packages published