Not able to use the make_remap_weights_file.py file

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
sougata24
Posts: 8
Joined: Fri Dec 08, 2023 4:10 pm
Location: SPPU

Not able to use the make_remap_weights_file.py file

#1 Unread post by sougata24 »

I am trying to build the Initial conditions and forcing for ROMS using the pyroms module. But while trying to run the make_remap_weights_file.py script I am constantly getting this error:

Code: Select all

Assuming spherical is integer b'T' <class 'numpy.ma.core.MaskedArray'>
Load geographical grid from file
grid shape 40 20
grid shape 40 19
grid shape 39 20
At line 138 of file ./pyscrip.f90 (unit = 1)
Fortran runtime error: Bad FORM parameter in OPEN statement
From previous issues posted here, I got to know that it's better to use xesmf for remapping. But when I am trying to run make_remap_weights_file_ARCTIC_HYCOM_GLBy.py script, the process is getting killed.

I am new to ROMS, so any kind of help would be highly appreciated.

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

Re: Not able to use the make_remap_weights_file.py file

#2 Unread post by kate »

With xesmf, you don’t run make_remap_weights_file.py. I should delete that.

sougata24
Posts: 8
Joined: Fri Dec 08, 2023 4:10 pm
Location: SPPU

Re: Not able to use the make_remap_weights_file.py file

#3 Unread post by sougata24 »

Thanks!
I tried to run the make_bdry_file.py first but after some time the process gets killed.
Does it have something to do with the domain size ?

I have attached the log file here as well (bdry.log).
Attachments
bdry.log
(669.1 MiB) Downloaded 188 times

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

Re: Not able to use the make_remap_weights_file.py file

#4 Unread post by kate »

I don't know what to make of the log file. Yes, your domain size could cause it to run out of memory and get killed.

sougata24
Posts: 8
Joined: Fri Dec 08, 2023 4:10 pm
Location: SPPU

Re: Not able to use the make_remap_weights_file.py file

#5 Unread post by sougata24 »

I reduced the domain size and tried to run the make_bdry_file.py
I am getting something like :

Code: Select all

ValueError: could not broadcast input array from shape (100,) into shape (1,)
Could you please tell me what could be causing this error ?

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

Re: Not able to use the make_remap_weights_file.py file

#6 Unread post by kate »

It's clear enough, right? You need to look at what line number, what variables it is talking about. I often
add print statements to find out the shapes of things. You might also learn to use breakpoint() to get
into the debugger to query your variables.

Post Reply