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 to std::vector in Rads2Ioda.h #747

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

apchoiCMD
Copy link
Collaborator

@apchoiCMD apchoiCMD commented Nov 17, 2023

Description

This PR includes what is done below

  • Switch to std::vector in RadsToIoda.h for replacing the array
  • Implement type of short sla to std::vector<int16_t> sla

close #664

ioda results are below

netcdf rads_adt_3b_2021181.ioda {
dimensions:
        Location = 11 ;
variables:
        int Location(Location) ;
                Location:suggested_chunk_dim = 11LL ;

// global attributes:
                string :_ioda_layout = "ObsGroup" ;
                :_ioda_layout_version = 0 ;
                string :obs_source_files = "rads_adt_3b_2021181.nc4" ;
                string :mission_index = "CRYOSAT2 = 6 JASON-1 = 3 JASON-2 = 4 JASON-3 = 5 SARAL = 7 SNTNL-3A = 1 SNTNL-3B = 2 " ;
                string :references = "RADS Data Manual, Version 4.2 or later" ;
data:

 Location = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;

group: MetaData {
  variables:
        int cycle(Location) ;
                cycle:_FillValue = -2147483643 ;
        int64 dateTime(Location) ;
                dateTime:_FillValue = -9223372036854775801LL ;
                string dateTime:units = "seconds since 1858-11-17T00:00:00Z" ;
        float latitude(Location) ;
                latitude:_FillValue = -3.368795e+38f ;
        float longitude(Location) ;
                longitude:_FillValue = -3.368795e+38f ;
        float mdt(Location) ;
                mdt:_FillValue = -3.368795e+38f ;
        int mission(Location) ;
                mission:_FillValue = -2147483643 ;
        int oceanBasin(Location) ;
                oceanBasin:_FillValue = -2147483643 ;
        int pass(Location) ;
                pass:_FillValue = -2147483643 ;
  data:

   cycle = 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54 ;

   dateTime = 5131728384, 5131728384, 5131728384, 5131728384, 5131728384,
      5131728384, 5131728384, 5131728384, 5131728384, 5131728384, 5131728384 ;

   latitude = 59.73273, 59.5059, 58.76763, 58.71078, 58.65391, 58.59704,
      58.54016, 58.48327, 58.42637, 58.36946, 58.31255 ;

   longitude = 163.4174, 163.2622, 162.7704, 162.7333, 162.6964, 162.6595,
      162.6228, 162.5861, 162.5496, 162.5132, 162.4768 ;

   mdt = 0.1927, 0.2235, 0.4589, 0.5115, 0.5307, 0.5154999, 0.4983, 0.4831,
      0.4875, 0.4722, 0.4527 ;

   mission = 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ;

   oceanBasin = -999, -999, -999, -999, -999, -999, -999, -999, -999, -999,
      -999 ;

   pass = 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232 ;
  } // group MetaData

group: ObsError {
  variables:
        float absoluteDynamicTopography(Location) ;
                absoluteDynamicTopography:_FillValue = -3.368795e+38f ;
  data:

   absoluteDynamicTopography = 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1,
      0.1, 0.1 ;
  } // group ObsError

group: ObsValue {
  variables:
        float absoluteDynamicTopography(Location) ;
                absoluteDynamicTopography:_FillValue = -3.368795e+38f ;
  data:

   absoluteDynamicTopography = 0.6505, 0.7307, 0.6026, 0.5871, 0.5561,
      0.5246, 0.4981, 0.4661, 0.4391, 0.4409, 0.4283 ;
  } // group ObsValue

group: PreQC {
  variables:
        int absoluteDynamicTopography(Location) ;
                absoluteDynamicTopography:_FillValue = -2147483643 ;
  data:

   absoluteDynamicTopography = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;
  } // group PreQC
}

@guillaumevernieres guillaumevernieres added hera-GW-RT Queue for automated testing with global-workflow on Hera orion-GW-RT Queue for automated testing with global-workflow on Orion labels Nov 17, 2023
@emcbot emcbot added hera-GW-RT-Running Automated testing with global-workflow running on Hera orion-GW-RT-Running Automated testing with global-workflow running on Orion and removed hera-GW-RT Queue for automated testing with global-workflow on Hera orion-GW-RT Queue for automated testing with global-workflow on Orion labels Nov 17, 2023
@emcbot
Copy link

emcbot commented Nov 17, 2023

Automated Global-Workflow GDASApp Testing Results:
Machine: hera

Start: Fri Nov 17 21:33:28 UTC 2023 on hfe07
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Fri Nov 17 22:20:57 UTC 2023
---------------------------------------------------
Tests:                                 *SUCCESS*
Tests: Completed at Fri Nov 17 22:58:55 UTC 2023
Tests: 100% tests passed, 0 tests failed out of 53

@emcbot emcbot added hera-GW-RT-Passed Automated testing with global-workflow successful on Hera and removed hera-GW-RT-Running Automated testing with global-workflow running on Hera labels Nov 17, 2023
@emcbot
Copy link

emcbot commented Nov 17, 2023

Automated Global-Workflow GDASApp Testing Results:
Machine: orion

Start: Fri Nov 17 15:31:43 CST 2023 on Orion-login-1.HPC.MsState.Edu
---------------------------------------------------
Build:                                 *SUCCESS*
Build: Completed at Fri Nov 17 16:26:44 CST 2023
---------------------------------------------------
Tests:                                 *SUCCESS*
Tests: Completed at Fri Nov 17 16:59:03 CST 2023
Tests: 100% tests passed, 0 tests failed out of 53

@emcbot emcbot added orion-GW-RT-Passed Automated testing with global-workflow successful on Orion and removed orion-GW-RT-Running Automated testing with global-workflow running on Orion labels Nov 17, 2023
Copy link
Contributor

@guillaumevernieres guillaumevernieres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @apchoiCMD

@guillaumevernieres guillaumevernieres merged commit ea9b6d2 into develop Nov 17, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hera-GW-RT-Passed Automated testing with global-workflow successful on Hera orion-GW-RT-Passed Automated testing with global-workflow successful on Orion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch to std::vector in RadsToIoda.h
3 participants