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

DAP failure with GTSMv4.1_opendap tide source #613

Open
veenstrajelmer opened this issue Oct 23, 2023 · 2 comments
Open

DAP failure with GTSMv4.1_opendap tide source #613

veenstrajelmer opened this issue Oct 23, 2023 · 2 comments

Comments

@veenstrajelmer
Copy link
Collaborator

veenstrajelmer commented Oct 23, 2023

FAILED tests/test_interpolate_grid2bnd.py::test_interpolate_tide_to_forcingmodel - RuntimeError: NetCDF: DAP failure

also with v0.15.0, so seems to be external

@veenstrajelmer
Copy link
Collaborator Author

Works again indeed

@veenstrajelmer veenstrajelmer changed the title Failing testbank solveable? DAP failure reoccurring Jun 12, 2024
@veenstrajelmer
Copy link
Collaborator Author

veenstrajelmer commented Jun 12, 2024

re-opened since this pops up every now and then, it does not seem like a stable solution. Seems also be an issue in #872 (comment). Fixed in #884 by moving from GTSMv4.1_opendap to tpxo80_opendap, but GTSM still often fails:

import dfm_tools as dfmt
import geopandas as gpd

def data_dcsm_gdf():
    # dummy gdf
    points_x = [-9.25, -9.5, -9.75]
    points_y = [43, 43, 43]
    points_n = [f'DCSM-FM_OB_all_20181108_{i+1:04d}' for i in range(3)]
    geom = gpd.points_from_xy(x=points_x, y=points_y)
    gdf_points = gpd.GeoDataFrame(geometry=geom, crs='EPSG:4326')
    gdf_points['station_id'] = points_n
    return gdf_points

tidemodel = 'GTSMv4.1_opendap'
component_list = ['M2']
gdf_points = data_dcsm_gdf()

data_interp = dfmt.interpolate_tide_to_plipoints(tidemodel=tidemodel, gdf_points=gdf_points, 
                                                 component_list=component_list, load=True)
ForcingModel_object = dfmt.plipointsDataset_to_ForcingModel(plipointsDataset=data_interp)

@veenstrajelmer veenstrajelmer changed the title DAP failure reoccurring DAP failure with GTSMv4.1_opendap tide source Jul 7, 2024
This was referenced Sep 3, 2024
This was referenced Sep 26, 2024
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

1 participant