-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LCS ROMS #783
Comments
A bit busy the next two days, but a quick comment in the meantime:
OpenDrift will automatically extrapolate fields to fill gaps between the
valid data (ocean pixels) and the coastline (typically GSHHG, and
independent).
Thus you should somehow re-impose a landmask (masked data) as variable
`land_binary_mask` from your reader (or another reader).
Hope this helps.
…On Tue, Nov 30, 2021, 09:16 MireyaMMO ***@***.***> wrote:
Hi!
I've been testing the backtracking LCS script on a ROMS grid, at first I
struggled because the fake projection (due to the lack of projection from
ROMS) wasn't transforming correctly. That was fixed creating my own
projection and adding it to the reader, but something is still off because
I'm still getting data over masked locations. Do you mind sharing any
suggestions?
https://drive.google.com/file/d/1t8z6r7nXoGjmXRxEwav5MIJhEGVk8Da1/view?usp=sharing
<http://url>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#783>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABH25IZS2UWZDOJ3R5WYHWTUOSB5FANCNFSM5JBEE7BA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thank you very much for taking time to reply! According to the log, It's loading from the ROMS reader and moving the points that are considered to be land so this tells me the mask is being read correctly.
And also it seems like it's masking values that are stranding
If I print the reader I have two variables of land_binary_mask, don't know if that could be an issue and if it is not sure of how to delete one.
Also I tried to plot the reader using reader.plot('land_binary_mask') but I got an error due to the projection Thank you again |
if reader.plot() does not work, it could indicate that your code is slightly outdated.
It might not solve the problem, but would be useful to see the plot of landmask. |
Yes, I believe the ROMS reader is less robust than reader_netCDF_CF_generic regarding dateline problems. Anyway, is there a particular reason for adding this line? It is not quite clear to me what is the problem, is it that you get LCS-values calculated over land come places? |
From my understanding that line means that outside the domain there's ocean (might be wrong), this is a nested domain, so that's why I added it. I did some tests without it but it still shows data on land. Yes that's the problem. I think it's a big area of in land particles, considering the 1 km resolution grid initially given, (another time period given below). I did try a smaller time-step. There's no noticeable difference between 15 minute time-step and a 30 minute time-step, in terms of the gap over sea and the data in land. |
Hi!
I've been testing the backtracking LCS script on a ROMS grid, at first I struggled because the fake projection (due to the lack of projection from ROMS) wasn't transforming correctly. That was fixed creating my own projection and adding it to the reader, but something is still off because I'm still getting data over masked locations. Do you mind sharing any suggestions?
This is a 7-day backtrack simulation on a 1 km resolution grid
The text was updated successfully, but these errors were encountered: