software or matlab script for edit netcdf bathymetry file

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

software or matlab script for edit netcdf bathymetry file

#1 Unread post by flcastej »

Hi everybody!!

I will like to know if there are any software o matlab script that allow me to modify my netcdf bathy file. Sometimes I detected an error in some points on the bathymetry and I will like to change this values, but I don't know how. it could be something like the editmask.m used to modify the mask, but for the bathymetry.


Thanks in advice

andres
Posts: 54
Joined: Tue May 06, 2003 4:35 pm
Location: University of Concepcion
Contact:

Re: software or matlab script for edit netcdf bathymetry fil

#2 Unread post by andres »

Hi,

We developed a tool to modify the depth in the roms_grd.nc file generated by ROMSTOOLS. For the moment it just changes the value of a specific matrix and leaves everything else as it is, which most probably is a bad idea, but here is the code for you to improve it.

It is based on a previous idea to modify the input bathymetry file (e.g. etopo2.nc)

viewtopic.php?f=23&t=990

Send me an email if you need details on how to use it.
Attachments
edit_grdbat.m
Basic GRD file editor
(21.49 KiB) Downloaded 650 times
Andres Sepulveda

------------------------------
Geophysics Department
University of Concepcion

flcastej
Posts: 68
Joined: Tue Nov 10, 2009 6:42 pm
Location: Technical University of Cartagena,Murcia, Spain

Re: software or matlab script for edit netcdf bathymetry fil

#3 Unread post by flcastej »

Thanks a lot!!

Tomorrow I start my holidays, so I will look the code and test it for my case at the end August. But thanks a lot for your answer, the code and the link cause I need to change the points by hand too.

mashinde
Posts: 135
Joined: Mon Jun 22, 2009 3:46 pm
Location: Indian Institute of Tropical Meteorology, Pune, INDIA

Re: software or matlab script for edit netcdf bathymetry fil

#4 Unread post by mashinde »

Hi Andres Sepulveda,

I am working on ROMS application in the Mediterranean sea. I need to modify manually the bathymetry after smoothing to reach the required sill depth at Gibraltar straits. I had seen this post and tried the script. But I don't know how to use it properly. Is there any user manual for the edit bathymetry scirpt. The wiki is also not working.

Thanking you

andres
Posts: 54
Joined: Tue May 06, 2003 4:35 pm
Location: University of Concepcion
Contact:

Re: software or matlab script for edit netcdf bathymetry fil

#5 Unread post by andres »

Hi,

Our wiki server died and all the documentation was lost.

Try to contact me in Skype (username: andres_udec) to explain you how it works.
mashinde wrote:Hi Andres Sepulveda,

I am working on ROMS application in the Mediterranean sea. I need to modify manually the bathymetry after smoothing to reach the required sill depth at Gibraltar straits. I had seen this post and tried the script. But I don't know how to use it properly. Is there any user manual for the edit bathymetry scirpt. The wiki is also not working.

Thanking you
Andres Sepulveda

------------------------------
Geophysics Department
University of Concepcion

Post Reply