How to edit a mask with pyroms

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
xavierC
Posts: 24
Joined: Thu Jul 16, 2009 5:17 pm
Location: Madeira University

How to edit a mask with pyroms

#1 Unread post by xavierC »

Hello,
Quite experienced with Agrif or NEMO i am new in using ROMS-rutgers. I would like to edit and correct my mask, but i don't really understand if and how i can do that with pyroms (i don't have matlab).
Any one could help with that ?
Thanks

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: How to edit a mask with pyroms

#2 Unread post by kate »

Yes, there's an example in examples/stuff/editmask.py

The idea is to cut and paste from that file into an instance of "ipython --pylab". Either of the routines edit_mask_mesh or edit_mask_mesh_ij should work, but the latter is faster. Sometimes the latter doesn't show all of the coastline - your mileage may vary.

You can write to the grid file directly instead of copying just the masks to your grid file from a temp file.

xavierC
Posts: 24
Joined: Thu Jul 16, 2009 5:17 pm
Location: Madeira University

Re: How to edit a mask with pyroms

#3 Unread post by xavierC »

Thanks Kate,
I kind of tried that and in the best scenario i had a window on which i could click e to activate/desactivate toogle.

Tried again and it is now working (may because i used the zoom)

Thanks for your answer.
Xavier

Post Reply