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

Requesting of AUX RRC data issue #31

Open
santilland opened this issue Feb 26, 2020 · 1 comment
Open

Requesting of AUX RRC data issue #31

santilland opened this issue Feb 26, 2020 · 1 comment
Assignees

Comments

@santilland
Copy link
Member

It seems in some cases it might come to an error when loading an AUX RRC product:

<ows:Exception locator="ValueError" exceptionCode="NoApplicableCode">
    <ows:ExceptionText>all the input array dimensions except for the concatenation axis must match exactly</ows:ExceptionText>
  </ows:Exception>

Example product with issue:
AE_OPER_AUX_RRC_1B_20190909T181547_20190909T183159_0001
Example request:

<wps:Execute version="1.0.0" service="WPS" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1">
  <ows:Identifier>aeolus:level1B:AUX:RRC</ows:Identifier>
  <wps:DataInputs>
    <wps:Input>
      <ows:Identifier>collection_ids</ows:Identifier>
      <wps:Data>
        <wps:ComplexData mimeType="application/json">
          <![CDATA[["AUX_RRC_1B","user_collection_test"]]]>
        </wps:ComplexData>
      </wps:Data>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>begin_time</ows:Identifier>
      <wps:Data>
        <wps:LiteralData>2019-09-09T15:18:56.899Z</wps:LiteralData>
      </wps:Data>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>end_time</ows:Identifier>
      <wps:Data>
        <wps:LiteralData>2019-09-09T23:35:24.175Z</wps:LiteralData>
      </wps:Data>
    </wps:Input>
    <wps:Input>
      <ows:Identifier>fields</ows:Identifier>
      <wps:Data>       <wps:LiteralData>altitude,satellite_range,geoid_separation_obs,normalised_useful_signal,lat_of_DEM_intersection,lon_of_DEM_intersection,time_freq_step,frequency_offset,frequency_valid,ground_frequency_valid,measurement_response,measurement_response_valid,measurement_error_rayleigh_response,reference_pulse_response,reference_pulse_response_valid,reference_pulse_error_rayleigh_response,ground_measurement_response,ground_measurement_response_valid,ground_measurement_error_rayleigh_response,num_measurements_usable,num_valid_measurements,num_reference_pulses_usable,num_measurements_valid_ground,measurement_mean_sensitivity,measurement_zero_frequency,measurement_error_rayleigh_response_std_dev,measurement_offset_frequency,measurement_error_fit_coefficient,reference_pulse_mean_sensitivity,reference_pulse_zero_frequency,reference_pulse_error_rayleigh_response_std_dev,reference_pulse_offset_frequency,reference_pulse_error_fit_coefficient,ground_measurement_mean_sensitivity,ground_measurement_zero_frequency,ground_measurement_error_rayleigh_response_std_dev,ground_measurement_offset_frequency,ground_measurement_error_fit_coefficient,satisfied_min_valid_freq_steps_per_cal,satisfied_min_valid_ground_freq_steps_per_cal,freq_offset_data_monotonic,num_of_valid_frequency_steps,num_of_valid_ground_frequency_steps,measurement_mean_sensitivity_valid,measurement_error_response_std_dev_valid,measurement_zero_frequency_response_valid,measurement_data_monotonic,reference_pulse_mean_sensitivity_valid,reference_pulse_error_response_std_dev_valid,reference_pulse_zero_frequency_response_valid,reference_pulse_data_monotonic,ground_measurement_mean_sensitivity_valid,ground_measurement_error_response_std_dev_valid,ground_measurement_zero_frequency_response_valid,ground_measurement_data_monotonic,rayleigh_spectrometer_temperature_9,rayleigh_spectrometer_temperature_10,rayleigh_spectrometer_temperature_11,rayleigh_thermal_hood_temperature_1,rayleigh_thermal_hood_temperature_2,rayleigh_thermal_hood_temperature_3,rayleigh_thermal_hood_temperature_4,rayleigh_optical_baseplate_avg_temperature</wps:LiteralData>
      </wps:Data>
    </wps:Input>
  </wps:DataInputs>
  <wps:ResponseForm>
    <wps:RawDataOutput mimeType="application/msgpack">
      <ows:Identifier>output</ows:Identifier>
    </wps:RawDataOutput>
  </wps:ResponseForm>
</wps:Execute>
@constantinius
Copy link
Contributor

The issue is the field geoid_separation_obs, which seems to provide a list of arrays in a variable length. This comes from this unserlying XML structure:

...
          <List_of_Frequency_Step_Geolocations count="41">
            <Frequency_Step_Geolocation>
 ...
              <List_of_Geoid_Separations count="3">
                <Geoid_Separation unit="m">-36.311287</Geoid_Separation>
                <Geoid_Separation unit="m">-37.256656</Geoid_Separation>
                <Geoid_Separation unit="m">-38.593101</Geoid_Separation>
              </List_of_Geoid_Separations>
            </Frequency_Step_Geolocation>
            <Frequency_Step_Geolocation>
...
              <List_of_Geoid_Separations count="2">
                <Geoid_Separation unit="m">-38.697521</Geoid_Separation>
                <Geoid_Separation unit="m">-38.889617</Geoid_Separation>
              </List_of_Geoid_Separations>
            </Frequency_Step_Geolocation>
...

Thus the numpy.vstack fails. I'm not sure what the expected output/result should be in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants