No remap_matrix data in remap_weights file

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
WANGQIAN
Posts: 8
Joined: Tue Aug 22, 2017 5:38 pm
Location: Second Institute of Oceanography

No remap_matrix data in remap_weights file

#1 Post by WANGQIAN » Fri Jun 08, 2018 11:55 am

hello everyone,
I want to make clm file with pyroms, according to the example named Palau_HYCOM , I run make_remap_weights_file.py ,but there is no remap_matrix data in remap_weights file. I make ROMS grid file with GridBulider , and I also have HYCOM_grid file.
Maybe something wrong in this line in compute_remap_weights.py :

# compute weights
pyroms.remapping.scrip.compute_remap_weights('compute_remap_weights_in')

Could anyone help me ?
Thanks in advance. XD

WangQian
18.6.8

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

Re: No remap_matrix data in remap_weights file

#2 Post by kate » Fri Jun 08, 2018 3:20 pm

I don't know that this is your problem, but one potential problem is that your longitudes are negative and the HYCOM longitudes are all positive. I've got a little script to add 360 to the grid file longitudes - and another to subtract 360.

WANGQIAN
Posts: 8
Joined: Tue Aug 22, 2017 5:38 pm
Location: Second Institute of Oceanography

Re: No remap_matrix data in remap_weights file

#3 Post by WANGQIAN » Sun Jun 10, 2018 7:37 am

kate wrote:I don't know that this is your problem, but one potential problem is that your longitudes are negative and the HYCOM longitudes are all positive. I've got a little script to add 360 to the grid file longitudes - and another to subtract 360.
Oh, it's a very stupid mistake. I do HYCOM_grid file by my script, but I make lat as lon, So pyroms can't work.
Now it works, thank you very much.

WangQian

Post Reply