
/* START OF CODE GENERATED BY mgd77netcdfhelper.sh */

void MGD77_Read_Header_Params (struct MGD77_CONTROL *F, struct MGD77_HEADER_PARAMS *P)
{
	/* Read the netCDF-encoded MGD77 header parameters as attributes of the data set */
	
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Identifier", P->Survey_Identifier));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Format_Acronym", P->Format_Acronym));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Data_Center_File_Number", P->Data_Center_File_Number));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Paramaters_Surveyed_Code", P->Paramaters_Surveyed_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Year", P->File_Creation_Year));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Month", P->File_Creation_Month));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Day", P->File_Creation_Day));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Source_Institution", P->Source_Institution));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Country", P->Country));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Platform_Name", P->Platform_Name));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Platform_Type_Code", &P->Platform_Type_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Platform_Type", P->Platform_Type));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Chief_Scientist", P->Chief_Scientist));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Project_Cruise_Leg", P->Project_Cruise_Leg));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Funding", P->Funding));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Year", P->Survey_Departure_Year));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Month", P->Survey_Departure_Month));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Day", P->Survey_Departure_Day));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Port_of_Departure", P->Port_of_Departure));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Year", P->Survey_Arrival_Year));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Month", P->Survey_Arrival_Month));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Day", P->Survey_Arrival_Day));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Port_of_Arrival", P->Port_of_Arrival));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Navigation_Instrumentation", P->Navigation_Instrumentation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Geodetic_Datum_Position_Determination_Method", P->Geodetic_Datum_Position_Determination_Method));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Instrumentation", P->Bathymetry_Instrumentation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Add_Forms_of_Data", P->Bathymetry_Add_Forms_of_Data));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Instrumentation", P->Magnetics_Instrumentation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Add_Forms_of_Data", P->Magnetics_Add_Forms_of_Data));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Instrumentation", P->Gravity_Instrumentation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Add_Forms_of_Data", P->Gravity_Add_Forms_of_Data));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Seismic_Instrumentation", P->Seismic_Instrumentation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Seismic_Add_Forms_of_Data", P->Seismic_Add_Forms_of_Data));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Format_Type", &P->Format_Type));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Format_Description", P->Format_Description));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Topmost_Latitude", P->Topmost_Latitude));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bottommost_Latitude", P->Bottommost_Latitude));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Leftmost_Longitude", P->Leftmost_Longitude));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Rightmost_Longitude", P->Rightmost_Longitude));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Digitizing_Rate", P->Bathymetry_Digitizing_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Sampling_Rate", P->Bathymetry_Sampling_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Assumed_Sound_Velocity", P->Bathymetry_Assumed_Sound_Velocity));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Datum_Code", P->Bathymetry_Datum_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Interpolation_Scheme", P->Bathymetry_Interpolation_Scheme));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Digitizing_Rate", P->Magnetics_Digitizing_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sampling_Rate", P->Magnetics_Sampling_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Tow_Distance", P->Magnetics_Sensor_Tow_Distance));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Depth", P->Magnetics_Sensor_Depth));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Separation", P->Magnetics_Sensor_Separation));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Ref_Field_Code", P->Magnetics_Ref_Field_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Ref_Field", P->Magnetics_Ref_Field));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Method_Applying_Res_Field", P->Magnetics_Method_Applying_Res_Field));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Digitizing_Rate", P->Gravity_Digitizing_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Sampling_Rate", P->Gravity_Sampling_Rate));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Theoretical_Formula_Code", &P->Gravity_Theoretical_Formula_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Theoretical_Formula", P->Gravity_Theoretical_Formula));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Reference_System_Code", &P->Gravity_Reference_System_Code));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Reference_System", P->Gravity_Reference_System));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Corrections_Applied", P->Gravity_Corrections_Applied));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Departure_Base_Station", P->Gravity_Departure_Base_Station));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Departure_Base_Station_Name", P->Gravity_Departure_Base_Station_Name));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Arrival_Base_Station", P->Gravity_Arrival_Base_Station));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Gravity_Arrival_Base_Station_Name", P->Gravity_Arrival_Base_Station_Name));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Number_of_Ten_Degree_Identifiers", P->Number_of_Ten_Degree_Identifiers));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Ten_Degree_Identifier", P->Ten_Degree_Identifier));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_1", P->Additional_Documentation[0]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_2", P->Additional_Documentation[1]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_3", P->Additional_Documentation[2]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_4", P->Additional_Documentation[3]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_5", P->Additional_Documentation[4]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_6", P->Additional_Documentation[5]));
	MGD77_nc_status (nc_get_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_7", P->Additional_Documentation[6]));
}

void MGD77_Write_Header_Params (struct MGD77_CONTROL *F, struct MGD77_HEADER_PARAMS *P)
{
	/* Write the MGD77 header parameters as attributes of the netCDF-encoded data set */
	
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Identifier", strlen (P->Survey_Identifier), P->Survey_Identifier));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Format_Acronym", strlen (P->Format_Acronym), P->Format_Acronym));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Data_Center_File_Number", strlen (P->Data_Center_File_Number), P->Data_Center_File_Number));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Paramaters_Surveyed_Code", strlen (P->Paramaters_Surveyed_Code), P->Paramaters_Surveyed_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Year", strlen (P->File_Creation_Year), P->File_Creation_Year));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Month", strlen (P->File_Creation_Month), P->File_Creation_Month));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "File_Creation_Day", strlen (P->File_Creation_Day), P->File_Creation_Day));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Source_Institution", strlen (P->Source_Institution), P->Source_Institution));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Country", strlen (P->Country), P->Country));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Platform_Name", strlen (P->Platform_Name), P->Platform_Name));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Platform_Type_Code", 1, &P->Platform_Type_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Platform_Type", strlen (P->Platform_Type), P->Platform_Type));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Chief_Scientist", strlen (P->Chief_Scientist), P->Chief_Scientist));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Project_Cruise_Leg", strlen (P->Project_Cruise_Leg), P->Project_Cruise_Leg));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Funding", strlen (P->Funding), P->Funding));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Year", strlen (P->Survey_Departure_Year), P->Survey_Departure_Year));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Month", strlen (P->Survey_Departure_Month), P->Survey_Departure_Month));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Departure_Day", strlen (P->Survey_Departure_Day), P->Survey_Departure_Day));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Port_of_Departure", strlen (P->Port_of_Departure), P->Port_of_Departure));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Year", strlen (P->Survey_Arrival_Year), P->Survey_Arrival_Year));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Month", strlen (P->Survey_Arrival_Month), P->Survey_Arrival_Month));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Survey_Arrival_Day", strlen (P->Survey_Arrival_Day), P->Survey_Arrival_Day));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Port_of_Arrival", strlen (P->Port_of_Arrival), P->Port_of_Arrival));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Navigation_Instrumentation", strlen (P->Navigation_Instrumentation), P->Navigation_Instrumentation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Geodetic_Datum_Position_Determination_Method", strlen (P->Geodetic_Datum_Position_Determination_Method), P->Geodetic_Datum_Position_Determination_Method));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Instrumentation", strlen (P->Bathymetry_Instrumentation), P->Bathymetry_Instrumentation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Add_Forms_of_Data", strlen (P->Bathymetry_Add_Forms_of_Data), P->Bathymetry_Add_Forms_of_Data));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Instrumentation", strlen (P->Magnetics_Instrumentation), P->Magnetics_Instrumentation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Add_Forms_of_Data", strlen (P->Magnetics_Add_Forms_of_Data), P->Magnetics_Add_Forms_of_Data));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Instrumentation", strlen (P->Gravity_Instrumentation), P->Gravity_Instrumentation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Add_Forms_of_Data", strlen (P->Gravity_Add_Forms_of_Data), P->Gravity_Add_Forms_of_Data));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Seismic_Instrumentation", strlen (P->Seismic_Instrumentation), P->Seismic_Instrumentation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Seismic_Add_Forms_of_Data", strlen (P->Seismic_Add_Forms_of_Data), P->Seismic_Add_Forms_of_Data));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Format_Type", 1, &P->Format_Type));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Format_Description", strlen (P->Format_Description), P->Format_Description));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Topmost_Latitude", strlen (P->Topmost_Latitude), P->Topmost_Latitude));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bottommost_Latitude", strlen (P->Bottommost_Latitude), P->Bottommost_Latitude));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Leftmost_Longitude", strlen (P->Leftmost_Longitude), P->Leftmost_Longitude));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Rightmost_Longitude", strlen (P->Rightmost_Longitude), P->Rightmost_Longitude));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Digitizing_Rate", strlen (P->Bathymetry_Digitizing_Rate), P->Bathymetry_Digitizing_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Sampling_Rate", strlen (P->Bathymetry_Sampling_Rate), P->Bathymetry_Sampling_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Assumed_Sound_Velocity", strlen (P->Bathymetry_Assumed_Sound_Velocity), P->Bathymetry_Assumed_Sound_Velocity));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Datum_Code", strlen (P->Bathymetry_Datum_Code), P->Bathymetry_Datum_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Bathymetry_Interpolation_Scheme", strlen (P->Bathymetry_Interpolation_Scheme), P->Bathymetry_Interpolation_Scheme));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Digitizing_Rate", strlen (P->Magnetics_Digitizing_Rate), P->Magnetics_Digitizing_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sampling_Rate", strlen (P->Magnetics_Sampling_Rate), P->Magnetics_Sampling_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Tow_Distance", strlen (P->Magnetics_Sensor_Tow_Distance), P->Magnetics_Sensor_Tow_Distance));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Depth", strlen (P->Magnetics_Sensor_Depth), P->Magnetics_Sensor_Depth));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Sensor_Separation", strlen (P->Magnetics_Sensor_Separation), P->Magnetics_Sensor_Separation));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Ref_Field_Code", strlen (P->Magnetics_Ref_Field_Code), P->Magnetics_Ref_Field_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Ref_Field", strlen (P->Magnetics_Ref_Field), P->Magnetics_Ref_Field));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Magnetics_Method_Applying_Res_Field", strlen (P->Magnetics_Method_Applying_Res_Field), P->Magnetics_Method_Applying_Res_Field));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Digitizing_Rate", strlen (P->Gravity_Digitizing_Rate), P->Gravity_Digitizing_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Sampling_Rate", strlen (P->Gravity_Sampling_Rate), P->Gravity_Sampling_Rate));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Theoretical_Formula_Code", 1, &P->Gravity_Theoretical_Formula_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Theoretical_Formula", strlen (P->Gravity_Theoretical_Formula), P->Gravity_Theoretical_Formula));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Reference_System_Code", 1, &P->Gravity_Reference_System_Code));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Reference_System", strlen (P->Gravity_Reference_System), P->Gravity_Reference_System));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Corrections_Applied", strlen (P->Gravity_Corrections_Applied), P->Gravity_Corrections_Applied));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Departure_Base_Station", strlen (P->Gravity_Departure_Base_Station), P->Gravity_Departure_Base_Station));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Departure_Base_Station_Name", strlen (P->Gravity_Departure_Base_Station_Name), P->Gravity_Departure_Base_Station_Name));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Arrival_Base_Station", strlen (P->Gravity_Arrival_Base_Station), P->Gravity_Arrival_Base_Station));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Gravity_Arrival_Base_Station_Name", strlen (P->Gravity_Arrival_Base_Station_Name), P->Gravity_Arrival_Base_Station_Name));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Number_of_Ten_Degree_Identifiers", strlen (P->Number_of_Ten_Degree_Identifiers), P->Number_of_Ten_Degree_Identifiers));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Ten_Degree_Identifier", strlen (P->Ten_Degree_Identifier), P->Ten_Degree_Identifier));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_1", strlen (P->Additional_Documentation[0]), P->Additional_Documentation[0]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_2", strlen (P->Additional_Documentation[1]), P->Additional_Documentation[1]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_3", strlen (P->Additional_Documentation[2]), P->Additional_Documentation[2]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_4", strlen (P->Additional_Documentation[3]), P->Additional_Documentation[3]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_5", strlen (P->Additional_Documentation[4]), P->Additional_Documentation[4]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_6", strlen (P->Additional_Documentation[5]), P->Additional_Documentation[5]));
	MGD77_nc_status (nc_put_att_text (F->nc_id, NC_GLOBAL, "Additional_Documentation_7", strlen (P->Additional_Documentation[6]), P->Additional_Documentation[6]));
}

void MGD77_Dump_Header_Params (struct MGD77_CONTROL *F, struct MGD77_HEADER_PARAMS *P)
{
	/* Write all the individual MGD77 header parameters to stdout */

	if (F->Want_Header_Item[0]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Identifier", P->Survey_Identifier);
	if (F->Want_Header_Item[1]) printf ("%s %44s :%s\n", F->NGDC_id, "Format_Acronym", P->Format_Acronym);
	if (F->Want_Header_Item[2]) printf ("%s %44s :%s\n", F->NGDC_id, "Data_Center_File_Number", P->Data_Center_File_Number);
	if (F->Want_Header_Item[3]) printf ("%s %44s :%s\n", F->NGDC_id, "Paramaters_Surveyed_Code", P->Paramaters_Surveyed_Code);
	if (F->Want_Header_Item[4]) printf ("%s %44s :%s\n", F->NGDC_id, "File_Creation_Year", P->File_Creation_Year);
	if (F->Want_Header_Item[5]) printf ("%s %44s :%s\n", F->NGDC_id, "File_Creation_Month", P->File_Creation_Month);
	if (F->Want_Header_Item[6]) printf ("%s %44s :%s\n", F->NGDC_id, "File_Creation_Day", P->File_Creation_Day);
	if (F->Want_Header_Item[7]) printf ("%s %44s :%s\n", F->NGDC_id, "Source_Institution", P->Source_Institution);
	if (F->Want_Header_Item[8]) printf ("%s %44s :%s\n", F->NGDC_id, "Country", P->Country);
	if (F->Want_Header_Item[9]) printf ("%s %44s :%s\n", F->NGDC_id, "Platform_Name", P->Platform_Name);
	if (F->Want_Header_Item[10]) printf ("%s %44s :%c\n", F->NGDC_id, "Platform_Type_Code", P->Platform_Type_Code);
	if (F->Want_Header_Item[11]) printf ("%s %44s :%s\n", F->NGDC_id, "Platform_Type", P->Platform_Type);
	if (F->Want_Header_Item[12]) printf ("%s %44s :%s\n", F->NGDC_id, "Chief_Scientist", P->Chief_Scientist);
	if (F->Want_Header_Item[13]) printf ("%s %44s :%s\n", F->NGDC_id, "Project_Cruise_Leg", P->Project_Cruise_Leg);
	if (F->Want_Header_Item[14]) printf ("%s %44s :%s\n", F->NGDC_id, "Funding", P->Funding);
	if (F->Want_Header_Item[15]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Departure_Year", P->Survey_Departure_Year);
	if (F->Want_Header_Item[16]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Departure_Month", P->Survey_Departure_Month);
	if (F->Want_Header_Item[17]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Departure_Day", P->Survey_Departure_Day);
	if (F->Want_Header_Item[18]) printf ("%s %44s :%s\n", F->NGDC_id, "Port_of_Departure", P->Port_of_Departure);
	if (F->Want_Header_Item[19]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Arrival_Year", P->Survey_Arrival_Year);
	if (F->Want_Header_Item[20]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Arrival_Month", P->Survey_Arrival_Month);
	if (F->Want_Header_Item[21]) printf ("%s %44s :%s\n", F->NGDC_id, "Survey_Arrival_Day", P->Survey_Arrival_Day);
	if (F->Want_Header_Item[22]) printf ("%s %44s :%s\n", F->NGDC_id, "Port_of_Arrival", P->Port_of_Arrival);
	if (F->Want_Header_Item[23]) printf ("%s %44s :%s\n", F->NGDC_id, "Navigation_Instrumentation", P->Navigation_Instrumentation);
	if (F->Want_Header_Item[24]) printf ("%s %44s :%s\n", F->NGDC_id, "Geodetic_Datum_Position_Determination_Method", P->Geodetic_Datum_Position_Determination_Method);
	if (F->Want_Header_Item[25]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Instrumentation", P->Bathymetry_Instrumentation);
	if (F->Want_Header_Item[26]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Add_Forms_of_Data", P->Bathymetry_Add_Forms_of_Data);
	if (F->Want_Header_Item[27]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Instrumentation", P->Magnetics_Instrumentation);
	if (F->Want_Header_Item[28]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Add_Forms_of_Data", P->Magnetics_Add_Forms_of_Data);
	if (F->Want_Header_Item[29]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Instrumentation", P->Gravity_Instrumentation);
	if (F->Want_Header_Item[30]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Add_Forms_of_Data", P->Gravity_Add_Forms_of_Data);
	if (F->Want_Header_Item[31]) printf ("%s %44s :%s\n", F->NGDC_id, "Seismic_Instrumentation", P->Seismic_Instrumentation);
	if (F->Want_Header_Item[32]) printf ("%s %44s :%s\n", F->NGDC_id, "Seismic_Add_Forms_of_Data", P->Seismic_Add_Forms_of_Data);
	if (F->Want_Header_Item[33]) printf ("%s %44s :%c\n", F->NGDC_id, "Format_Type", P->Format_Type);
	if (F->Want_Header_Item[34]) printf ("%s %44s :%s\n", F->NGDC_id, "Format_Description", P->Format_Description);
	if (F->Want_Header_Item[35]) printf ("%s %44s :%s\n", F->NGDC_id, "Topmost_Latitude", P->Topmost_Latitude);
	if (F->Want_Header_Item[36]) printf ("%s %44s :%s\n", F->NGDC_id, "Bottommost_Latitude", P->Bottommost_Latitude);
	if (F->Want_Header_Item[37]) printf ("%s %44s :%s\n", F->NGDC_id, "Leftmost_Longitude", P->Leftmost_Longitude);
	if (F->Want_Header_Item[38]) printf ("%s %44s :%s\n", F->NGDC_id, "Rightmost_Longitude", P->Rightmost_Longitude);
	if (F->Want_Header_Item[39]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Digitizing_Rate", P->Bathymetry_Digitizing_Rate);
	if (F->Want_Header_Item[40]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Sampling_Rate", P->Bathymetry_Sampling_Rate);
	if (F->Want_Header_Item[41]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Assumed_Sound_Velocity", P->Bathymetry_Assumed_Sound_Velocity);
	if (F->Want_Header_Item[42]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Datum_Code", P->Bathymetry_Datum_Code);
	if (F->Want_Header_Item[43]) printf ("%s %44s :%s\n", F->NGDC_id, "Bathymetry_Interpolation_Scheme", P->Bathymetry_Interpolation_Scheme);
	if (F->Want_Header_Item[44]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Digitizing_Rate", P->Magnetics_Digitizing_Rate);
	if (F->Want_Header_Item[45]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Sampling_Rate", P->Magnetics_Sampling_Rate);
	if (F->Want_Header_Item[46]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Sensor_Tow_Distance", P->Magnetics_Sensor_Tow_Distance);
	if (F->Want_Header_Item[47]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Sensor_Depth", P->Magnetics_Sensor_Depth);
	if (F->Want_Header_Item[48]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Sensor_Separation", P->Magnetics_Sensor_Separation);
	if (F->Want_Header_Item[49]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Ref_Field_Code", P->Magnetics_Ref_Field_Code);
	if (F->Want_Header_Item[50]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Ref_Field", P->Magnetics_Ref_Field);
	if (F->Want_Header_Item[51]) printf ("%s %44s :%s\n", F->NGDC_id, "Magnetics_Method_Applying_Res_Field", P->Magnetics_Method_Applying_Res_Field);
	if (F->Want_Header_Item[52]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Digitizing_Rate", P->Gravity_Digitizing_Rate);
	if (F->Want_Header_Item[53]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Sampling_Rate", P->Gravity_Sampling_Rate);
	if (F->Want_Header_Item[54]) printf ("%s %44s :%c\n", F->NGDC_id, "Gravity_Theoretical_Formula_Code", P->Gravity_Theoretical_Formula_Code);
	if (F->Want_Header_Item[55]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Theoretical_Formula", P->Gravity_Theoretical_Formula);
	if (F->Want_Header_Item[56]) printf ("%s %44s :%c\n", F->NGDC_id, "Gravity_Reference_System_Code", P->Gravity_Reference_System_Code);
	if (F->Want_Header_Item[57]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Reference_System", P->Gravity_Reference_System);
	if (F->Want_Header_Item[58]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Corrections_Applied", P->Gravity_Corrections_Applied);
	if (F->Want_Header_Item[59]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Departure_Base_Station", P->Gravity_Departure_Base_Station);
	if (F->Want_Header_Item[60]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Departure_Base_Station_Name", P->Gravity_Departure_Base_Station_Name);
	if (F->Want_Header_Item[61]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Arrival_Base_Station", P->Gravity_Arrival_Base_Station);
	if (F->Want_Header_Item[62]) printf ("%s %44s :%s\n", F->NGDC_id, "Gravity_Arrival_Base_Station_Name", P->Gravity_Arrival_Base_Station_Name);
	if (F->Want_Header_Item[63]) printf ("%s %44s :%s\n", F->NGDC_id, "Number_of_Ten_Degree_Identifiers", P->Number_of_Ten_Degree_Identifiers);
	if (F->Want_Header_Item[64]) printf ("%s %44s :%s\n", F->NGDC_id, "Ten_Degree_Identifier", P->Ten_Degree_Identifier);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[0]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[1]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[2]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[3]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[4]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[5]);
	if (F->Want_Header_Item[65]) printf ("%s %44s :%s\n", F->NGDC_id, "Additional_Documentation", P->Additional_Documentation[6]);
}

char *MGD77_Header_Item[66] = {
	"Survey_Identifier",
	"Format_Acronym",
	"Data_Center_File_Number",
	"Paramaters_Surveyed_Code",
	"File_Creation_Year",
	"File_Creation_Month",
	"File_Creation_Day",
	"Source_Institution",
	"Country",
	"Platform_Name",
	"Platform_Type_Code",
	"Platform_Type",
	"Chief_Scientist",
	"Project_Cruise_Leg",
	"Funding",
	"Survey_Departure_Year",
	"Survey_Departure_Month",
	"Survey_Departure_Day",
	"Port_of_Departure",
	"Survey_Arrival_Year",
	"Survey_Arrival_Month",
	"Survey_Arrival_Day",
	"Port_of_Arrival",
	"Navigation_Instrumentation",
	"Geodetic_Datum_Position_Determination_Method",
	"Bathymetry_Instrumentation",
	"Bathymetry_Add_Forms_of_Data",
	"Magnetics_Instrumentation",
	"Magnetics_Add_Forms_of_Data",
	"Gravity_Instrumentation",
	"Gravity_Add_Forms_of_Data",
	"Seismic_Instrumentation",
	"Seismic_Add_Forms_of_Data",
	"Format_Type",
	"Format_Description",
	"Topmost_Latitude",
	"Bottommost_Latitude",
	"Leftmost_Longitude",
	"Rightmost_Longitude",
	"Bathymetry_Digitizing_Rate",
	"Bathymetry_Sampling_Rate",
	"Bathymetry_Assumed_Sound_Velocity",
	"Bathymetry_Datum_Code",
	"Bathymetry_Interpolation_Scheme",
	"Magnetics_Digitizing_Rate",
	"Magnetics_Sampling_Rate",
	"Magnetics_Sensor_Tow_Distance",
	"Magnetics_Sensor_Depth",
	"Magnetics_Sensor_Separation",
	"Magnetics_Ref_Field_Code",
	"Magnetics_Ref_Field",
	"Magnetics_Method_Applying_Res_Field",
	"Gravity_Digitizing_Rate",
	"Gravity_Sampling_Rate",
	"Gravity_Theoretical_Formula_Code",
	"Gravity_Theoretical_Formula",
	"Gravity_Reference_System_Code",
	"Gravity_Reference_System",
	"Gravity_Corrections_Applied",
	"Gravity_Departure_Base_Station",
	"Gravity_Departure_Base_Station_Name",
	"Gravity_Arrival_Base_Station",
	"Gravity_Arrival_Base_Station_Name",
	"Number_of_Ten_Degree_Identifiers",
	"Ten_Degree_Identifier",
	"Additional_Documentation",
};

/* END OF CODE GENERATED BY mgd77netcdfhelper.sh */

