about mask problem

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
liangailin

about mask problem

#1 Unread post by liangailin »

dear all :
now my version is 452, I use my own grid nc file and define masking, but the result(u,v,temp,salt) even mask_rho,mask_v,mask_u,mask_psi all equal 1E37(model regarded all points as land), but the water depth is the same with my grid file. I use uvp_mask to caculate the mask, so I think it's correct of mask. but why the model can't read the mask correctly?Do some bugs exist in reading mask from grid file?? really confuse me. who can tell me the reasons and give me some suggestions? really thanks a lot

regards

liangailin

Re: about mask problem

#2 Unread post by liangailin »

I just test two cases,
I define ana_mask and define masking, the results all are 1e37;
but I define ana_mask only, the results are normal value;
so the problem must be something about "define masking"
..........

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

Re: about mask problem

#3 Unread post by kate »

When you define ANA_MASK, what do you set for your mask in ana_mask.h? Do you have a cpp name for your case? Did you check to see that the version of ana_mask you set up got into analytical.f90?

liangailin

Re: about mask problem

#4 Unread post by liangailin »

thanks for your reply.
my case is upwelling case;
in my ana_mask, I define all points are sea;
that is :

#elif defined UPWELLING
DO j=Jstr-2,,Jend+2
DO i=Istr-2,Iend+2
mask(i,j)=1.0_r8
END DO
END DO

but if I define ana_mask and define masking together, the model output are all 1e37; if I just define ana_mask only, model results looked reasonable.

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

Re: about mask problem

#5 Unread post by kate »

Have you checked analytical.f90? Next would be a debugger to watch what is happening as the model runs.

CBian
Posts: 39
Joined: Mon Dec 28, 2009 4:01 pm
Location: Ocean University of China

Re: about mask problem

#6 Unread post by CBian »

liangailin wrote: but if I define ana_mask and define masking together, the model output are all 1e37; if I just define ana_mask only, model results looked reasonable.
Could we defined ana_mask and define masking together? If MASKING is defined, the model will read mask_rho,mask_u,mask_v,mask_psi from our grid.nc data. So if we define ana_mask together, what happened to mask_rho and so on? :?:

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

Re: about mask problem

#7 Unread post by kate »

If you want to have land masks, define MASKING.

With masking, provide the land mask in either the grid file (no extra defines) or in ana_mask.h and define ANA_MASK.

Post Reply