Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Record and Variable in the Aircraft Bias correction converter script. #1567

Open
nicholasesposito opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
bug Something is not working

Comments

@nicholasesposito
Copy link
Contributor

nicholasesposito commented Oct 23, 2024

Description

The outputs variables dimensions are in the wrong order (Variable, Record) and need to be (Record,Variable)

Requirements

The new outputs are in (Record, Variable) order.

Acceptance Criteria (Definition of Done)

Tests pass.

Dependencies

The new output (via ncdump) of acft_out.nc4 is:

netcdf acft_out {
dimensions:
	Record = 100 ;
	Variable = 1 ;
variables:
	int Record(Record) ;
		Record:suggested_chunk_dim = 100LL ;
	int Variable(Variable) ;
		Variable:suggested_chunk_dim = 1LL ;
	string Variables(Variable) ;
		string Variables:_FillValue = "" ;
	int64 lastUpdateTime(Record) ;
		lastUpdateTime:_FillValue = -9223372036854775806LL ;
		string lastUpdateTime:units = "seconds since 1970-01-01T00:00:00Z" ;
	int numberObservationsUsed(Record, Variable) ;
		numberObservationsUsed:_FillValue = -2147483647 ;
	string stationIdentification(Record) ;
		string stationIdentification:_FillValue = "" ;

// global attributes:
		string :_ioda_layout = "ObsGroup" ;
		:_ioda_layout_version = 0 ;
data:

 Record = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0, 0, 0, 0 ;

 Variable = 0 ;

 Variables = "airTemperature" ;

 lastUpdateTime = 1601510400, 1601510400, 1606780800, 1609459200, 1622505600, 
    1625097600, 1625097600, 1625097600, 1625097600, 1625097600, 1625097600, 
    1612137600, 1625097600, 1625097600, 1625097600, 1625097600, 1625097600, 
    1625097600, 1625097600, 1625097600, 1625097600, 1614556800, 1625097600, 
    1609459200, 1625097600, 1625097600, 1625097600, 1604188800, 1625097600, 
    1625097600, 1625097600, 1609459200, 1598918400, 1625097600, 1625097600, 
    1609459200, 1617235200, 1596240000, 1609459200, 1625097600, 1614556800, 
    1625097600, 1625097600, 1625097600, 1625097600, 1625097600, 1612137600, 
    1625097600, 1625097600, 1625097600, 1609459200, 1625097600, 1625097600, 
    1625097600, 1625097600, 1625097600, 1625097600, 1614556800, 1625097600, 
    1625097600, 1619827200, 1625097600, 1625097600, 1617235200, 1617235200, 
    1596240000, 1625097600, 1609459200, 1619827200, 1625097600, 1625097600, 
    1596240000, 1625097600, 1625097600, 1625097600, 1625097600, 1625097600, 
    1609459200, 1617235200, 1606780800, 1617235200, 1614556800, 1622505600, 
    1622505600, 1609459200, 1609459200, 1612137600, 1625097600, 1622505600, 
    1609459200, 1598918400, 1596240000, 1596240000, 1619827200, 1604188800, 
    1625097600, 1619827200, 1604188800, 1625097600, 1622505600 ;

 numberObservationsUsed =
  0,
  0,
  0,
  0,
  0,
  60,
  57,
  0,
  48,
  0,
  51,
  0,
  40,
  45,
  32,
  51,
  48,
  44,
  0,
  0,
  73,
  0,
  67,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  17,
  0,
  0,
  0,
  30,
  0,
  0,
  0,
  0,
  0,
  0,
  40,
  78,
  0,
  26,
  3,
  0,
  0,
  0,
  0,
  0,
  42,
  36,
  0,
  21,
  0,
  0,
  0,
  71,
  56,
  0,
  0,
  73,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  20,
  27,
  0,
  1,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0,
  0 ;

 stationIdentification = "00000000", "00000500", "00000515", "00000570", 
    "00000727", "00000752", "00000758", "00000765", "00000771", "00000775", 
    "00000785", "00000786", "00000789", "00000792", "00000796", "00000797", 
    "00000805", "00000810", "00000812", "00000814", "00000820", "00000825", 
    "00000827", "00000829", "00000837", "00000840", "00000842", "00000843", 
    "00000853", "00000857", "00000889", "00000894", "00000898", "00000899", 
    "00000904", "00000909", "00000916", "00000920", "00000933", "00000947", 
    "00000950", "00001000", "00001001", "00001002", "00001005", "00001021", 
    "00001023", "00001031", "00001032", "00001033", "00001034", "00001035", 
    "00001040", "00001042", "00001043", "00001046", "00001049", "00001057", 
    "00001059", "00001061", "00001064", "00001068", "00001070", "00001072", 
    "00001074", "00001077", "00001079", "00001085", "00001090", "00001091", 
    "00001104", "00001105", "00001106", "00001110", "00001111", "00001112", 
    "00001113", "00005003", "00005005", "00005006", "00005007", "00005010", 
    "00005013", "00005018", "00005021", "00005022", "00005023", "00005025", 
    "00005028", "00005029", "00005032", "00005038", "00005039", "00005043", 
    "00005047", "00005052", "00005057", "00005062", "00005064", "00005066" ;

group: BiasCoefficientErrors {
  variables:
  	float aircraftAscentRate(Record, Variable) ;
  		aircraftAscentRate:_FillValue = -3.368795e+38f ;
  	float aircraftAscentRate_order_2(Record, Variable) ;
  		aircraftAscentRate_order_2:_FillValue = -3.368795e+38f ;
  	float constant(Record, Variable) ;
  		constant:_FillValue = -3.368795e+38f ;
  data:

   aircraftAscentRate =
  0,
  0.001,
  0.001,
  0.001,
  0.001,
  7e-06,
  3e-05,
  0.001,
  2.1e-05,
  0.000133,
  6.9e-05,
  0.001,
  1.8e-05,
  8e-06,
  1.6e-05,
  3e-05,
  2e-06,
  2.9e-05,
  2.8e-05,
  7e-06,
  1.7e-05,
  0.001,
  1.2e-05,
  0.001,
  0.001,
  8e-06,
  0.000202,
  0.001,
  0.000805,
  1.2e-05,
  7e-06,
  0.001,
  0.001,
  0.001,
  3e-06,
  0.001,
  0.001,
  0.001,
  0.001,
  0.001,
  0.001,
  6e-06,
  3.2e-05,
  2.6e-05,
  1.3e-05,
  7e-06,
  0.001,
  4.2e-05,
  3e-06,
  5.5e-05,
  0.001,
  3.7e-05,
  7e-06,
  4e-06,
  3e-06,
  2.8e-05,
  9e-06,
  0.001,
  3.1e-05,
  2.4e-05,
  0.001,
  0.000374,
  6e-06,
  0.001,
  0.001,
  0.001,
  0.000637,
  0.001,
  0.001,
  1.5e-05,
  9.2e-05,
  0.001,
  2.9e-05,
  4.2e-05,
  2.3e-05,
  2.5e-05,
  0.000141,
  0.001,
  0.001,
  0.001,
  0.001,
  0.001,
  0.000434,
  0.000384,
  0.001,
  0.001,
  0.001,
  0.001,
  0.001,
  0.001,
  0,
  0,
  0,
  0.001,
  0.001,
  0,
  0.001,
  0.001,
  7e-06,
  0.000616 ;

   aircraftAscentRate_order_2 =
  0,
  2.6e-05,
  2.4e-05,
  2.4e-05,
  1.3e-05,
  0,
  0,
  2.2e-05,
  0,
  1e-06,
  0,
  2.2e-05,
  0,
  0,
  0,
  0,
  0,
  0,
  1e-06,
  0,
  0,
  2.4e-05,
  0,
  2.2e-05,
  2.2e-05,
  0,
  0,
  2.2e-05,
  0,
  2e-06,
  2e-06,
  2.4e-05,
  2.2e-05,
  2.8e-05,
  0,
  2.4e-05,
  2.4e-05,
  2.4e-05,
  2.4e-05,
  2.2e-05,
  2.4e-05,
  0,
  0,
  0,
  0,
  0,
  2.2e-05,
  3e-06,
  0,
  0,
  2.2e-05,
  0,
  0,
  0,
  0,
  0,
  0,
  2.2e-05,
  1e-06,
  1e-06,
  2e-06,
  0,
  1e-06,
  2.4e-05,
  2.2e-05,
  2.2e-05,
  3e-06,
  2.2e-05,
  2e-06,
  2e-06,
  1e-06,
  2.2e-05,
  1e-06,
  1e-06,
  1e-06,
  0,
  0,
  2.2e-05,
  2.2e-05,
  2.2e-05,
  2.2e-05,
  2.2e-05,
  0,
  0,
  2.2e-05,
  2.2e-05,
  2.2e-05,
  2.2e-05,
  1e-06,
  2.2e-05,
  0,
  0,
  0,
  1e-06,
  2.2e-05,
  0,
  2.2e-05,
  2.2e-05,
  1e-06,
  0 ;

   constant =
  0,
  0.1,
  0.1,
  0.1,
  0.1,
  6e-05,
  0.000466,
  0.1,
  0.000222,
  0.002523,
  0.000788,
  0.1,
  0.000183,
  4e-05,
  8.1e-05,
  0.000487,
  2e-05,
  0.000342,
  0.000321,
  7.2e-05,
  0.00013,
  0.1,
  0.00012,
  0.1,
  0.1,
  4e-05,
  0.002223,
  0.1,
  0.008756,
  0.000122,
  3e-05,
  0.1,
  0.1,
  0.1,
  3e-05,
  0.1,
  0.1,
  0.1,
  0.1,
  0.1,
  0.1,
  2e-05,
  0.000682,
  0.000204,
  7e-05,
  2e-05,
  0.1,
  0.000488,
  3e-05,
  0.000809,
  0.1,
  0.000607,
  7e-05,
  4e-05,
  2e-05,
  0.000321,
  3e-05,
  0.1,
  0.000526,
  0.000276,
  0.011028,
  0.004108,
  6e-05,
  0.1,
  0.1,
  0.1,
  0.009937,
  0.1,
  0.024015,
  0.000155,
  0.001103,
  0.1,
  0.000289,
  0.000699,
  0.000254,
  0.000232,
  0.001596,
  0.1,
  0.1,
  0.1,
  0.1,
  0.1,
  0.009636,
  0.004211,
  0.1,
  0.1,
  0.1,
  0.1,
  0.031779,
  0.1,
  0,
  0,
  0,
  0.030331,
  0.1,
  0,
  0.1,
  0.1,
  7.2e-05,
  0.007767 ;
  } // group BiasCoefficientErrors

group: BiasCoefficients {
  variables:
  	float aircraftAscentRate(Record, Variable) ;
  		aircraftAscentRate:_FillValue = -3.368795e+38f ;
  	float aircraftAscentRate_order_2(Record, Variable) ;
  		aircraftAscentRate_order_2:_FillValue = -3.368795e+38f ;
  	float constant(Record, Variable) ;
  		constant:_FillValue = -3.368795e+38f ;
  data:

   aircraftAscentRate =
  -1e-06,
  0.001537,
  0.020103,
  0.025329,
  0.021926,
  -0.010191,
  0.021158,
  -4.2e-05,
  0.025913,
  0.106567,
  0.013649,
  -0.050176,
  0.022323,
  -0.007606,
  0.027749,
  0.038645,
  -0.130163,
  0.026237,
  0.011236,
  0.012175,
  0.024144,
  -0.002301,
  0.012988,
  -0.003858,
  1e-06,
  0.032668,
  0.022888,
  -0.021419,
  0.000675,
  0.033084,
  -0.004529,
  -0.018064,
  -0.051902,
  0.004518,
  0.022164,
  -0.014799,
  0.001556,
  0.001907,
  0.035626,
  0.026553,
  0.109195,
  0.030647,
  0.02627,
  0.052569,
  0.016591,
  0.025177,
  0.011655,
  -0.110002,
  0.000112,
  0.013816,
  0.017143,
  0.032029,
  0.03442,
  0.009798,
  0.021112,
  0.030858,
  0.011818,
  0.010326,
  0.050055,
  0.038423,
  0.00669,
  0.000248,
  0.019736,
  0.017439,
  -0.019664,
  -0.009816,
  0.017884,
  0.017699,
  0.003609,
  0.003783,
  0.006534,
  -0.003201,
  0.047445,
  0.062325,
  0.026005,
  0.026624,
  -0.050928,
  0.026378,
  0.003049,
  0.009383,
  0.00194,
  0.009261,
  0.022416,
  0.024062,
  0.015568,
  0.004768,
  -0.007475,
  -0.01531,
  0.009539,
  -0.008181,
  0,
  0,
  0,
  0.018891,
  0.007797,
  0,
  0.006488,
  0.011821,
  0.024313,
  0.023383 ;

   aircraftAscentRate_order_2 =
  8.4e-05,
  0.002692,
  -0.000576,
  -0.000997,
  -0.000494,
  6.8e-05,
  0.000114,
  -0.000235,
  -0.001161,
  -0.074826,
  -0.0006,
  -0.000296,
  0.00095,
  0.0009860001,
  -0.0003,
  0.000717,
  0.161888,
  -0.000446,
  -0.027641,
  -0.001387,
  -0.000204,
  0.0004,
  -7e-06,
  -0.000414,
  0.000402,
  -0.000751,
  -9.3e-05,
  -0.000803,
  -0.000635,
  0.004417,
  0.00441,
  0.010291,
  -0.000139,
  0.006309,
  0.004666,
  -0.002362,
  0.005536,
  0.014797,
  -0.00248,
  -0.000729,
  -0.037474,
  -0.000273,
  -9e-05,
  -0.001368,
  -0.000417,
  0.000635,
  -0.003778,
  0.198912,
  0.001107,
  0.000728,
  -0.00383,
  5.6e-05,
  8.7e-05,
  0.002706,
  0.000407,
  -0.000182,
  0.000815,
  -0.000105,
  0.001259,
  0.00124,
  0.001365,
  0.000308,
  0.001768,
  0.001382,
  -0.036247,
  0.000654,
  0.002448,
  -0.001431,
  0.001908,
  -0.002586,
  0.000783,
  0.001804,
  0.002337,
  0.016853,
  -0.013108,
  -0.159759,
  -0.002456,
  -0.000287,
  0.000437,
  0.000319,
  0.000567,
  0.000138,
  -9.3e-05,
  -2.5e-05,
  0.00078,
  0.000584,
  0.000918,
  0.000929,
  0.000237,
  0.000739,
  0,
  0,
  0,
  0.001905,
  -0.000143,
  0,
  2.2e-05,
  -8e-05,
  -0.002646,
  -0.000376 ;

   constant =
  -1e-06,
  0.671394,
  -0.330203,
  -0.103843,
  -0.252591,
  -0.351441,
  -0.674717,
  -0.000105,
  0.560517,
  -2.708073,
  0.668854,
  0.442836,
  -0.436946,
  0.63384,
  0.886687,
  0.526406,
  4.280398,
  0.183634,
  -0.658637,
  0.123543,
  0.43538,
  0.071054,
  0.413517,
  0.805001,
  3.7e-05,
  -1.529098,
  -0.252594,
  -0.514168,
  -0.026016,
  -0.194949,
  0.867559,
  0.721638,
  -0.049782,
  0.032157,
  0.734145,
  0.145119,
  0.280901,
  2.277187,
  0.032964,
  -0.184764,
  -1.325267,
  0.181306,
  0.108013,
  0.634806,
  0.785736,
  0.135765,
  -0.263431,
  0.617141,
  0.253211,
  -0.004223,
  1.523166,
  0.226985,
  0.800545,
  0.033941,
  1.188452,
  -0.334572,
  1.122632,
  0.927381,
  0.171758,
  0.325027,
  0.326239,
  0.00019,
  0.544177,
  0.29252,
  -0.909354,
  0.183346,
  0.813259,
  0.382826,
  0.026203,
  0.432576,
  0.040077,
  1.596282,
  0.546392,
  -1.378451,
  -1.741449,
  -0.499433,
  -1.544907,
  -0.051631,
  0.014434,
  -0.019694,
  0.005163,
  -0.098959,
  -0.202416,
  -0.075527,
  0.293191,
  0.186469,
  0.208989,
  0.415832,
  0.839715,
  0.171052,
  0,
  0,
  0,
  -0.082771,
  0.878599,
  0,
  0.03311,
  0.338917,
  -0.077686,
  -0.072854 ;
  } // group BiasCoefficients
}
@nicholasesposito nicholasesposito self-assigned this Oct 23, 2024
@nicholasesposito nicholasesposito added the bug Something is not working label Oct 23, 2024
@nicholasesposito nicholasesposito changed the title [New issue] Switch Record and Variable in the Aircraft Bias correction converter script. Switch Record and Variable in the Aircraft Bias correction converter script. Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

1 participant