Skip to content
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

bctides.in for no tidal forcing #104

Open
SorooshMani-NOAA opened this issue Oct 23, 2023 · 2 comments
Open

bctides.in for no tidal forcing #104

SorooshMani-NOAA opened this issue Oct 23, 2023 · 2 comments

Comments

@SorooshMani-NOAA
Copy link
Contributor

For cases where there is no tidal forcing, should the bctides.in be empty or should it include some information. For a given test in coupledmodeldriver I used to get:

2008-08-23 00:00:00+00:00
0 50.0
0
1
75 0 0 0 0

from pyschism, but with the API change, now I get:

for my bctides.in. Which one is correct?

@cuill
Copy link
Member

cuill commented Oct 23, 2023

@SorooshMani-NOAA
The top one should be used. Here is the script to generate it:

    start_date = datetime(2017, 12, 1)
    rnday = 396
    bctypes =[[0, 0, 0, 0]]    
    constituents = []
    earth_tidal_potential = False
    outdir = './'
    hgrid = Hgrid.open('../RUN11/Bctides/hgrid.ll', crs="epsg:4326")

    bctides=Bctides(
        hgrid = hgrid,
        flags = bctypes,
        constituents = constituents,
        add_earth_tidal = earth_tidal_potential,
    )

    bctides.write(
        outdir,
        start_date=start_date,
        rnday=rnday,
        overwrite=True,
    )

@SorooshMani-NOAA
Copy link
Contributor Author

@cuill thanks for your quick reply. I will update coupledmodeldriver to get the desired output based on your instructions.

From a usability perspective, with the old tides API, it made more sense; when you didn't setup the tide at all you would get the right bctides.in. However with the new API, we need to specify the no-tide input. As you pointed out above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants