FreeForm handler fmt file for ASCII data with two header lines

Description

Good morning all,

I hope you can help me understand the Freeform data handler a little better. I'm having trouble with line endings. I'm trying to get OPeNDAP to allow users to subset some ASCII data by using this handler. I'm not trying to convert the original data to another format.

As an example, I have this data file (same as https://ghrc.nsstc.nasa.gov/pub/fieldCampaigns/gpmValidation/iphex/disdrometers_and_gauges/rain_gauge_NASA/data/gauge/iphex_raingauge_NASA0045_A_20130919_20131229_gag.txt):

[10:04 AM user]$ head tester.txt
2013 IPHEx NASA0045_A MetOne 0.254 mm
Year Mon Day Jday Hr Min Sec Rain[mm] Lat Lon
2013 09 19 262 21 18 38 0.254 35.31534 -82.87200
2013 09 21 264 12 07 51 0.254 35.31536 -82.87196
2013 09 21 264 12 26 15 0.254 35.31536 -82.87196
2013 09 21 264 12 46 46 0.254 35.31536 -82.87196
2013 09 21 264 12 57 50 0.254 35.31536 -82.87196
2013 09 21 264 13 10 10 0.254 35.31536 -82.87196
2013 09 21 264 13 32 16 0.254 35.31536 -82.87196
2013 09 21 264 13 53 37 0.254 35.31536 -82.87196

First I made this format file, which has no end of line markup attempts:
ASCII_input_file_header "gpmrgnaiphx2 gauge header"
year 1 4 short 0
field_program 6 10 char 0
gauge_id 12 21 char 0
gauge_type 23 28 char 0
bucket_resolution 30 34 float 3
bucket_units 36 37 char 0
labels 1 54 char 0

ASCII_input_data "gpmrgnaiphx2 gauge"
year 1 4 short 0
month 7 8 uchar 0
day_of_month 11 12 uchar 0
day_of_year 15 17 short 0
hour 19 20 uchar 0
minute 23 24 uchar 0
second 27 28 uchar 0
rain_rate 31 35 float 3
latitude 38 45 float 5
longitude 48 56 float 5

This resulted in errors when I used chkform on it:
[10:07 AM user]$ chkform -d tester.txt -if tester.fmt -ol ol.log -el el.err

Welcome to Chkform release 4.2.3 – an NGDC FreeForm ND application

Messages have been recorded in el.err
[10:07 AM user]$ cat el.err

There are 2 errors!

The data look like:

Environment

None

Assignee

James Gallagher

Reporter

James Gallagher

Labels

Components

Priority

Medium
Configure