Page 1 of 1

Is possible to add more decimals to output files?

Posted: December 15th, 2022, 5:54 pm
by Charlie
Hello!

Is possible to add more decimals to output files? I'm working in a little region with hysplit, so when I got trajectory files, these have latitude and longitude with 3 decimals but I want they have more decimals. Is it possible?

Regards!

Re: Is possible to add more decimals to output files?

Posted: December 19th, 2022, 7:51 am
by sonny.zinn
The number of digits for latitudes and longitudes in trajectory dump files are fixed. They cannot be changed. The file format for trajectory dumps is described in https://www.ready.noaa.gov/hysplitusersguide/S263.htm. The position latitude and longitude use the F9.3 format which says three digits below the decimal point.

Re: Is possible to add more decimals to output files?

Posted: December 19th, 2022, 10:49 am
by Charlie
Oh ok, thanks!

Re: Is possible to add more decimals to output files?

Posted: May 11th, 2023, 2:58 pm
by herbertfi
sonny.zinn wrote:
December 19th, 2022, 7:51 am
The number of digits for latitudes and longitudes in trajectory dump files are fixed. They cannot be changed. The file format for trajectory dumps is described in https://www.ready.noaa.gov/hysplitusersguide/S263.htm. The position latitude and longitude use the F9.3 format which says three digits below the decimal point.
hello,
if I want to have more digits, is there something I can do? can I modify the files although I am not a programmer? ok thank you

Re: Is possible to add more decimals to output files?

Posted: May 12th, 2023, 8:12 am
by sonny.zinn
If the file format were to be changed, it should be done by the HYSPLIT developers. It is easy to change the FORTRAN FORMAT statement to allow more digits. However, it is not so to confirm the change would not break existing tools and software programs.

On a separate note, HYSPLIT performs most of internal calculations using single-precision floating numbers. These have about 6 to 7 decimal digit precision. For example, a trajectory dump file has a longitude value of -123.456. This already has 6 digits. Printing an extra digit may not be meaningful.