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

Trajectory sampler for IODA file: step-1 #2220

Merged
merged 8 commits into from
Jul 3, 2023

Conversation

metdyn
Copy link
Contributor

@metdyn metdyn commented Jun 30, 2023

Description

Step-1 to enable MAPL_HistoryTrajectoryMod to sampler IODA files

Completed Step-1:

  • sort the Time series in IODA file together with lat/lon arrays
  • utilize the trajectory module

ExtDataDriver.x can run and generate NC output:

netcdf sondes.20201214_2010z {
dimensions:
        lev = 4 ;
        time = UNLIMITED ; // (66408 currently)
variables:
        double lev(lev) ;
                lev:coordinate = "eta" ;
                lev:long_name = "vertical level" ;
                lev:positive = "down" ;
                lev:standard_name = "model_layers" ;
                lev:units = "layer" ;
        float time(time) ;
                time:begin_date = 20201214 ;
                time:begin_time = 201000 ;
                time:long_name = "time" ;
                time:time_increment = 30000 ;
                time:units = "minutes since 2020-12-14 20:10:00" ;
        double longitude(time) ;
                longitude:long_name = "longitude" ;
                longitude:units = "degrees_east" ;
        double latitude(time) ;
                latitude:long_name = "latitude" ;
                latitude:units = "degrees_east" ;
        float var2(time) ;
                var2:_FillValue = 1.e+15f ;
                var2:long_name = "time" ;
                var2:missing_value = 1.e+15f ;
                var2:units = "days" ;
                var2:valid_range = -1.e+15f, 1.e+15f ;
        float var3(lev, time) ;
                var3:_FillValue = 1.e+15f ;
                var3:long_name = "time" ;
                var3:missing_value = 1.e+15f ;
                var3:units = "days" ;
                var3:valid_range = -1.e+15f, 1.e+15f ;
}
netcdf sondes.20201214_2010z {
dimensions:
        lev = 4 ;
        time = UNLIMITED ; // (66408 currently)
variables:
        double lev(lev) ;
                lev:coordinate = "eta" ;
                lev:long_name = "vertical level" ;
                lev:positive = "down" ;
                lev:standard_name = "model_layers" ;
                lev:units = "layer" ;
        float time(time) ;
                time:begin_date = 20201214 ;
                time:begin_time = 201000 ;
                time:long_name = "time" ;
                time:time_increment = 30000 ;
                time:units = "minutes since 2020-12-14 20:10:00" ;
        double longitude(time) ;
                longitude:long_name = "longitude" ;
                longitude:units = "degrees_east" ;
        double latitude(time) ;
                latitude:long_name = "latitude" ;
                latitude:units = "degrees_east" ;
        float var2(time) ;
                var2:valid_range = -1.e+15f, 1.e+15f ;
        float var3(lev, time) ;

data:

 lev = 1, 2, 3, 4 ;

 time = 81.18333, 81.18333, 81.41666, 81.86667, 81.86667, 82.2, 83.68333,
    83.75, 84.05, 84.05, 84.08334, 84.23333, 84.9, 85.43333, 86.41666,
    86.41666, 86.73333, 87.53333, 88.6, 89.95, 90.2, 90.2, 90.38333,
    90.76667, 90.76667, 90.85, 91.16666, 91.38333, 91.45, 91.71667, 91.71667,

 longitude = 174.979995727539, 174.979995727539, 174.979858398438,
    174.979553222656, 174.979553222656, 174.979309082031, 174.978881835938,

 latitude = -40.9000015258789, -40.9000015258789, -40.9004402160645,
    -40.9010696411133, -40.9010696411133, -40.9013710021973,

 var2 = 100, 100, 100, …

Related Issue

Motivation and Context

How Has This Been Tested?

run ExtDataDriver.x with HISTORY1.rc

COLLECTIONS:
sondes
::
GRID_LABELS:
::
sondes.template: '%y4%m2%d2_%h2%n2z.nc4',
sondes.format: 'CFIO',
sondes.sampler_spec: ioda_loc_stream
sondes.track_file: x0044.sondes.2020-12-14T21:00:00Z.nc4
sondes.nc_Index: Location
sondes.nc_Time: MetaData/dateTime
sondes.nc_Longitude: MetaData/longitude
sondes.nc_Latitude: MetaData/latitude
sondes.frequency: 030000,
sondes.duration: 000000,
sondes.regrid_method: 'BILINEAR' ,
sondes.fields: 'var2', 'Root'
'var3', 'Root'

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Trivial change (affects only documentation or cleanup)

Checklist:

  • I have tested this change with a run of GEOSgcm (if non-trivial)
  • I have added one of the required labels (0 diff, 0 diff trivial, 0 diff structural, non 0-diff)
  • I have updated the CHANGELOG.md accordingly following the style of Keep a Changelog

@metdyn metdyn added the 0 Diff The changes in this pull request have verified to be zero-diff with the target branch. label Jun 30, 2023
@metdyn metdyn requested a review from a team as a code owner June 30, 2023 23:45
@tclune tclune merged commit 8aa9297 into develop Jul 3, 2023
@tclune tclune deleted the feature/ygyu/ioda_sampler_v1.0 branch July 3, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 Diff The changes in this pull request have verified to be zero-diff with the target branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants