From sigma to depth coordinates

Hi, I am trying to get depth coordinates from sigma coordinates and obtain my variables in 3 d (lat, lon and depth instead of sigma level). It is probably something really simple since the croco_gui does it in the visualization programme, however I am not being able to do it. I’ve seen there is a script (et_depths.m in VIsualization tools but I could not made it run without errors)

Has someone done this and could give me a hand?
Many thanks


The get_var function from croco_tools can give you 2D data at required depth (vlevel has to be negative - in meters). So in your case, you can call get_var for each depth you are interested in and you’ll get 3D data.


function [lat,lon,mask,var]=get_var(hisfile,gridfile,vname,tindex,…