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

converting an "CSV" / "ASCII Gridded XYZ" file to grid DSS #90

Open
bayejja-Med opened this issue Jul 12, 2023 · 7 comments
Open

converting an "CSV" / "ASCII Gridded XYZ" file to grid DSS #90

bayejja-Med opened this issue Jul 12, 2023 · 7 comments

Comments

@bayejja-Med
Copy link

Hello everybody,

I wonder to know how to make a first conversion to one of the supported formats of Vortex (nc; grib; hdf; asc) in order to generate a dss dataset later.

here is my initial dataset :
P_data.zip

Thanks

@tombrauer
Copy link
Collaborator

I looked at the files in P_data.zip and they don't have an extension. It will be difficult to impossible to do a conversion on an unknown file type. I would go back to the originator and try to determine the file type.

@bayejja-Med
Copy link
Author

@tombrauer the data is an hourly forecasted precipitation.

Opening it in QGIS it shows this information :

Data type Float32 - Thirty two bit floating point
GDAL Driver Description XYZ
GDAL Driver Metadata ASCII Gridded XYZ

@tombrauer
Copy link
Collaborator

If the data is ASCII, add the *.asc extension to the files, and then Vortex should be able to process.

@bayejja-Med
Copy link
Author

Unfortunately, it is still not working.

I think of using HEC MetVue which is supposed to handle this.

I remain open to other suggestions

Thanks

@bayejja-Med
Copy link
Author

@tombrauer

I found out that my data is given in CSV format (see the screen shot below)
image

Each file contains the following information:

  • each time step (1 hour) is given in a single CSV file,
  • each CSV file contains three columns: longitude, latitude, and precipitation.
  • the time interval is given in the name (see the second screenshot below)
    image

@bayejja-Med bayejja-Med changed the title converting an "ASCII Gridded XYZ" file to DSS converting an "CSV" / "ASCII Gridded XYZ" file to grid DSS Sep 22, 2023
@tombrauer
Copy link
Collaborator

@bayejja-Med I don't know of this as a conventional file type. Vortex has not been programmed to recognize it. I would use a programmatic approach, i.e. scripting, to get the data into HEC-DSS.

@ktarbet
Copy link

ktarbet commented Mar 13, 2024

I had a similar request to convert a non-standard CSV data to DSS. I suggested first converting data to ASCII grid format; Perhaps multiple ASCII files, one for each grid. Here is an example:

https://github.com/HydrologicEngineeringCenter/DSSVue-Example-Scripts/blob/master/src/grids

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

3 participants