Convert to DATEM

Post questions and find resources to convert meteorological data into a format HYSPLIT can read.
Post Reply
richardgrant
Posts: 3
Joined: June 23rd, 2020, 11:23 am
Registered HYSPLIT User: Yes

Convert to DATEM

Post by richardgrant »

DATEM files are not being created. Does not find c2datem.exe but it is in the hysplit/exe
Error is:
forrtl: severe (59): list-directed I/O syntax error, unit 20, file C:\hysplit\working\hysplit2.bin
Image PC Routine Line Source
c2datem.exe 00007FF7FFE811D8 Unknown Unknown Unknown
c2datem.exe 00007FF7FFE5E5FA Unknown Unknown Unknown
c2datem.exe 00007FF7FFE5CA39 Unknown Unknown Unknown
c2datem.exe 00007FF7FFE42A63 Unknown Unknown Unknown
c2datem.exe 00007FF7FFEDF672 Unknown Unknown Unknown
c2datem.exe 00007FF7FFEDFA00 Unknown Unknown Unknown
KERNEL32.DLL 00007FFE31EB4034 Unknown Unknown Unknown
ntdll.dll 00007FFE342B3691 Unknown Unknown Unknown
forrtl: severe (59): list-directed I/O syntax error, unit 20, file C:\hysplit\working\hysplit2.bin
Image PC Routine Line Source
c2datem.exe 00007FF7FFE811D8 Unknown Unknown Unknown
c2datem.exe 00007FF7FFE5E5FA Unknown Unknown Unknown
c2datem.exe 00007FF7FFE5CA39 Unknown Unknown Unknown
c2datem.exe 00007FF7FFE42A63 Unknown Unknown Unknown
c2datem.exe 00007FF7FFEDF672 Unknown Unknown Unknown
c2datem.exe 00007FF7FFEDFA00 Unknown Unknown Unknown
KERNEL32.DLL 00007FFE31EB4034 Unknown Unknown Unknown
ntdll.dll 00007FFE342B3691 Unknown Unknown Unknown
while executing
"exec $exec_dir/c2datem.exe $arg1 $arg2 $arg3 $arg4 $arg5 $arg6"
(procedure "run_datem" line 42)
invoked from within
"run_datem"
invoked from within
".datem.mid3.run invoke"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list $w invoke]"
(procedure "tk::ButtonUp" line 24)
invoked from within
"tk::ButtonUp .datem.mid3.run"
(command bound to event)
barbara.stunder
Posts: 451
Joined: November 9th, 2012, 4:23 pm
Registered HYSPLIT User: Yes

Re: Convert to DATEM

Post by barbara.stunder »

I'm not sure it can't find c2datem.exe. It is saying i/o error on unit 20, file hysplit2.bin.
A simple test of the 'cdump' file, here hysplit2.bin is - through the GUI, Concentration, Utilities, Simple Listing. Navigate to that file. and 'show file contents. It should list header info near the top, and then go through each time period, giving the min and max concentration.
Does that look alright?
richardgrant
Posts: 3
Joined: June 23rd, 2020, 11:23 am
Registered HYSPLIT User: Yes

Re: Convert to DATEM

Post by richardgrant »

yes I think so:

CONCENTRATION DATA FILE LISTING ...
Enter concentration file name:
Extended diagnostics (0/1): 0
Meteorology: AWRF 83 9 25 0 18
Packing: 1
Simulation start: 83 9 25 17 0
Origin point : 39.90000 -84.22000 10.00000
Numb points lat/lon 61 101
Increment lat/lon 0.2500 0.2500
Corner lat/lon 34.5000 -90.5000
Levels and heights: 1
100
Number and ID: 1
PMCH
Enter to continue ...
Sample start: 83 9 25 18 0 0
Sample stop: 83 9 25 21 0 39
POLID=PMCH LEVEL= 100 MAX= 5.238E-08 AT: 40.250 -84.000
POLID=PMCH LEVEL= 100 MIN= 1.142E-10 AT: 40.750 -83.500

Sample start: 83 9 25 21 0 39
Sample stop: 83 9 26 0 0 18
POLID=PMCH LEVEL= 100 MAX= 4.247E-08 AT: 40.500 -83.750
POLID=PMCH LEVEL= 100 MIN= 3.835E-11 AT: 41.250 -83.500

Sample start: 83 9 26 0 0 18
Sample stop: 83 9 26 3 0 21
POLID=PMCH LEVEL= 100 MAX= 2.057E-08 AT: 40.500 -83.500
POLID=PMCH LEVEL= 100 MIN= 2.851E-11 AT: 40.500 -84.000

Sample start: 83 9 26 3 0 21
Sample stop: 83 9 26 6 0 24
POLID=PMCH LEVEL= 100 MAX= 6.895E-09 AT: 40.500 -83.250
POLID=PMCH LEVEL= 100 MIN= 2.843E-11 AT: 40.250 -82.750

Sample start: 83 9 26 6 0 24
Sample stop: 83 9 26 9 0 27
POLID=PMCH LEVEL= 100 MAX= 1.018E-08 AT: 41.000 -82.750
POLID=PMCH LEVEL= 100 MIN= 3.827E-11 AT: 41.000 -81.750

Sample start: 83 9 26 9 0 27
Sample stop: 83 9 26 12 0 30
POLID=PMCH LEVEL= 100 MAX= 8.145E-09 AT: 41.250 -82.500
POLID=PMCH LEVEL= 100 MIN= 3.837E-11 AT: 41.250 -81.250
alicec
Posts: 411
Joined: February 8th, 2016, 12:56 pm
Registered HYSPLIT User: Yes

Re: Convert to DATEM

Post by alicec »

Can you open a terminal and try the following (if on a pc).

cd c:\hysplit\working
c:\hysplit\exec\c2datem
c:\hysplit\exec\c2datem -xi -ihysplit2.bin -mc:\Tutorial\captex\captex2_3hr.txt

You may need to change the path to the captex2_3hr.txt file if you have your Tutorial folder in a different place.

Thanks!
richardgrant
Posts: 3
Joined: June 23rd, 2020, 11:23 am
Registered HYSPLIT User: Yes

Re: Convert to DATEM

Post by richardgrant »

I think I found the problem- at least it solved similar problems I was having in writing files-The directory path had a directory that was not a continuous string but had a 'space' in it.
Post Reply

Return to “Conversion programs”