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: 10
Joined: Thu Jul 16, 2009 5:17 pm
Location: Madeira University

How to edit a mask with pyroms

#1 Post by xavierC » Fri Apr 12, 2019 8:06 am

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: 3678
Joined: Wed Jul 02, 2003 5:29 pm
Location: IMS/UAF, USA

Re: How to edit a mask with pyroms

#2 Post by kate » Fri Apr 12, 2019 5:50 pm

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: 10
Joined: Thu Jul 16, 2009 5:17 pm
Location: Madeira University

Re: How to edit a mask with pyroms

#3 Post by xavierC » Mon Apr 15, 2019 7:13 am

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