2
$\begingroup$

I have the CORDEX netcdf data and I would like to convert them to raw text file that can be used for importing data to DHI Mike.

To give more context, I have previously converted the ECMWF netcdf (historical) data into the the raw text compatible for DHI Mike, using a Python script. In this Github repository, I have these files:

  • "2020.nc" is the ECMWF netcdf data
  • "2020 (2).txt" the converted text file
  • "py_ecmwf_gridseries_convertor.ipynb" the python script for the required conversion.

Now what I am trying to achieve is to do a similar conversion, but this time on the CORDEX (projected) data. In the same repository I have a sample CORDEX file named "out1.nc".

I would appreciate it if the community can point me toward the right direction.

P.S.

If it helps, the metadata in the raw text file is as follows:

"Title" "caspian-sea"

"Dim" 2

"Geo" "LONG/LAT" 47 31 0

"Time" "EqudistantTimeAxis" "1970-01-11" "04:06:00" 4 3600

"NoGridPoints" 45 33

"Spacing" 0.25 0.25

"NoStaticItems" 0

"NoDynamicItems" 1

"Item" "2 metre temperature" "t2m" "K"

NoCustomBlocks 1

"M21_Misc" 1 7 0 -1E-030 -900 -999 -1E-030 -1E-030 -1E-030

"Delete" -1E-030

"DataType" 0

$\endgroup$
4
  • $\begingroup$ Welcome at EarthScience.SE. You mention "ECMWF" in the title but "CORDEX" in the text body. Which of both do you mean? CORDEX netCDF data should be CF compliant. There are many different data products offered by ECMWF. How exactly should this "raw text" file look like? How should values be separated: comma, newline, semicolon, space, ...? Do you need time series at certain locations or gridded data? Does the data need to be interpolated? $\endgroup$ Commented Feb 1, 2022 at 10:11
  • $\begingroup$ What might help people answering the question: Which variables do you need (precipitation)? Why is the CF-compliance important, when you need the convert the netCDF into text? Is there a conversion tool existing to create the DHI Mike input files from specifically named netCDF files? $\endgroup$ Commented Feb 1, 2022 at 10:43
  • $\begingroup$ Once, I set up a R package that converts EURO-CORDEX data into SWAT input data. Maybe, the would be a good starting point for you: github.com/neumannd/eurocordex2swatTools . $\endgroup$ Commented Feb 1, 2022 at 10:44
  • 1
    $\begingroup$ @daniel.heydebreck Thanks for the elaborate comment. I have edited the question to clarify the issue. I'd appreciate your input. $\endgroup$ Commented Mar 13, 2022 at 16:43

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.