Dear all
I use Croco tools without problems.
Now, I need better data for the coastline. This data does not work for me. How can do it?
Which data should I download and replaced it(e.g Coastline.l.mat)?
If everyone has points, please guide me!
Best,
Dear all
I use Croco tools without problems.
Now, I need better data for the coastline. This data does not work for me. How can do it?
Which data should I download and replaced it(e.g Coastline.l.mat)?
If everyone has points, please guide me!
Best,
Hi!
The coastline mat file is created when you call make_grid. It calls the make_coast function where the file is created. The coastline data is in the DATASETS_CROCOTOOLS/m_map1.4f/private/ folder.
In the crocotools_param.m set the last letter of the file name prefix in coastfileplot variable according to the comment above it to set which coastline file will be used:
% GSHSS user defined coastline (see m_map)
% XXX_f.mat Full resolution data
% XXX_h.mat High resolution data
% XXX_i.mat Intermediate resolution data
% XXX_l.mat Low resolution data
% XXX_c.mat Crude resolution data
%
coastfileplot = 'coastline_l.mat';
coastfilemask = 'coastline_l_mask.mat';
Here it uses l - Low resolution data. If you change the name to coastline_h.mat’ it will use high resolution data.
If you just want a higher resolution coastline mat file, you can just call make_coast directly. E.g.:
make_coast(‘CROCO_FILES/croco_grd.nc’,‘coastline_h.mat’)
Cheers!
Martin
Hello everyone,
Thanks for the explanation about using different GSHHS resolutions.
Has anyone tried to add their own HRES coastline (e.g., from a shapefile or local dataset) instead of the default GSHHS data used in crocotools. Is there any straight forward way of making the coastline compatible with crocotools?
Thanks,
Hello again,
I am not completely sure, but after checking the scripts I’d say that the coastline in matlab crocotools is used for plotting and helping with mask editing, not actually for defining the mask when make_grid. My problem was solved by implementing a higher res bathymetry with the hres coastline implemented in the same topo file.
Hope it helps,