Commit 1d63f8d1 authored by saeed's avatar saeed
Browse files

common is added

parent b3ccd397
char *prefix = "NS01_SURF_";
char *suffix = "_1-24H.nc" ;
char *varin[] = {"ssh","sst"};
char *varut[] = {"sla","thetao"};
struct s_time stimeref = {1900,1,1,0,0,0};
char *prefix_fileout = "CalV5_SLEV_";
char *suffix_fileout = "_SMHI.nc";
struct global_meta_common{
char *name;
char desc[2048];
};
struct global_meta_extra{
char *name;
char *desc;
};
struct meta_extra{
char latmin[256];
char latmax[256];
char lonmin[256];
char lonmax[256];
char tstart[256];
char tend[256];
char create[256];
};
struct meta_var{
char *name;
char *cval;
float fval;
char type;
};
struct meta_coor{
char *name;
char *cval;
float fval;
int ival;
char type;
};
static struct global_meta_common glb_common[] = {
{"_NCProperties","version=1|netcdflibversion=4.4.1.1|hdf5libversion=1.10.2"},
{"comment","Data on non-native product grid. Horizontal velocities destagged"},
{"grid_resolution", "~1 nautical mile (1min latitude; 1min40sec longitude)"},
{"title","CMEMS V4 Nemo model fields (hourly)"},
{"Conventions", "CF-1.0"},
{"source","SMHI-NEMO model output converted to NetCDF"},
{"contact","cmems-service@smhi.se"},
{"references", "https://smhi.se"},
{"file_quality_index","1" },
{"institution","Baltic MFC, PU Swedish Meteorological and Hydrological Institute" },
{"history", "" },
{"compression","no" },
{"netcdf_version_id", "4.4.1.1 of Oct 24 2018 14:14:02 $"},
{"data_type","OceanSITES time-series data"},
{"cdm_data_type","Station"},
{"area","Baltic Sea"},
{"geospatial_vertical_min"," "},
{"geospatial_vertical_max", " "}
};
static struct meta_var glob_var[][ARRLEN(varut)] ={
{{"long_name","sea_surface_height",0.0,'s'},{"long_name","potential temperature",0.0,'s'}},
{{"standard_name","sea_surface_height_above_sea_level",0.0,'s'},{"standard_name","sea_water_potential_temperature",0.0,'s'}},
{{"units","meter",0.0,'s'},{"units","degree_Celsius",0.0,'s'}},
{{"_FillValue", " ",-999.f,'f'},{"_FillValue", " ",-999.f,'f'}},
{{"missing_value", " ",-999.f,'f'},{"missing_value", " ",-999.f,'f'}},
{{"QC_procedure","1b",0.0,'s'},{"QC_procedure","1b",0.0,'s'}},
{{"valid_min"," ", -10.f,'f'},{"valid_min"," ", -10.f,'f'}},
{{"valid_max"," ",10.f,'f'},{"valid_max"," ",10.f,'f'}},
{{"comment", "Vertical Reference SeaDataNet L111: D21",0.0,'s'},{"comment", "Vertical Reference SeaDataNet L111: D21",0.0,'s'}},
{{"sensor_depth"," ",0.f,'f'},{"sensor_depth"," ",0.f,'f'}},
{{"sensor_mount", " ",0.0,'s'},{"sensor_mount", " ",0.0,'s'}},
{{"sensor_orientation", " ",0.0,'s'},{"sensor_orientation", " ",0.0,'s'}}
};
struct meta_coor meta_time[] = {
{"long_name","time",0.0,0,'s'},
{"standard_name","time",0.0,0,'s'},
{"units","days since 1950-01-01T00:00:00Z",0.0,0,'s'},
{"valid_min"," ",0.0,0,'f'},
{"valid_max"," ",90000.,0,'f'},
{"QC_indicator", " ",0.0,1,'i'},
{"QC_procedure"," ",0.0,1,'i'},
{"uncertainty"," ",0.0,0,'f'},
{"comment", " ",0.0,0,'s'},
{"axis","T",0.0,0,'s'}
};
static struct meta_coor meta_depth[] = {
{"long_name","Depth of each measurement",0.0,0,'s'},
{"standard_name","depth",0.0,0,'s'},
{"units","meters",0.0,0,'s'},
{"positive","down",0.0,0,'s'},
{"valid_min"," ",0.0,0,'f'},
{"valid_max"," ",12000.0,0,'f'},
{"QC_indicator", " ",0.0,1,'i'},
{"QC_procedure"," ",0.0,1,'i'},
{"uncertainty"," ",0.0,0,'f'},
{"comment", " ",0.0,0,'s'},
{"axis","Z",0.0,0,'s'},
{"reference", "sea_level SeaDataNet L111",0.0,0,'f'}
};
static struct meta_coor meta_lat[] = {
{"long_name","Latitude of each location",0.0,0,'s'},
{"standard_name","latitude",0.0,0,'s'},
{"units","degrees_north",0.0,0,'s'},
{"valid_min"," ",-90.0,0,'f'},
{"valid_max"," ",90.0,0,'f'},
{"QC_indicator", " ",0.0,1,'i'},
{"QC_procedure"," ",0.0,1,'i'},
{"uncertainty"," ",0.0,0,'f'},
{"comment", " ",0.0,0,'s'},
{"axis","Y",0.0,0,'s'},
{"reference", "WGS84",0.0,0,'f'},
{"coordinate_reference_frame","urn:ogc:crs:EPSG::4326",0.0,0,'s'}
};
static struct meta_coor meta_lon[] = {
{"long_name","Longitude of each location",0.0,0,'s'},
{"standard_name","longitude",0.0,0,'s'},
{"units","degrees_east",0.0,0,'s'},
{"valid_min"," ",-180.0,0,'f'},
{"valid_max"," ",180.0,0,'f'},
{"QC_indicator", " ",0.0,1,'i'},
{"QC_procedure"," ",0.0,1,'i'},
{"uncertainty"," ",0.0,0,'f'},
{"comment", " ",0.0,0,'s'},
{"axis","X",0.0,0,'s'},
{"reference", "WGS84",0.0,0,'f'},
{"coordinate_reference_frame","urn:ogc:crs:EPSG::4326",0.0,0,'s'}
};
static struct meta_coor meta_pos[] = {
{"long_name","quality flag",0.0,0,'s'},
{"conventions","OceanSITES reference table 2",0.0,0,'s'},
{"QC:_FillValue"," ",0.0,-128,'i'},
{"valid_min"," ",0.0,0,'i'},
{"valid_max"," ",0.0,9,'i'},
{"flag_values","0, 1, 2, 3, 4, 5, 7, 8, 9",0.0,0,'s'},
{"flag_meanings","no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used nominal_value interpolated_value missing_valueL",0.0,0,'s'}
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment