-
Notifications
You must be signed in to change notification settings - Fork 19
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: use a single obs file at each Epoch time and restore obs location for output #3326
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…t location_index for IODA file exact match the single input NPW observation file default use_NWP_1_file=0 recovers the strict Time interval cut stratgy as python [T1, T1+Epoch).
- call this%obs(k)%file_handle%put_var(this%var_name_time, real(this%obs(k)%times_R8), & + call this%obs(k)%file_handle%put_var(this%var_name_time, this%obs(k)%times_R8, & effect: dateTime = 1559357952, 1559357952, 1559357952, 1559357952, 1559357952, Vs dateTime = 1559358000, 1559358000, 1559358000, 1559358000, 1559358000,
jedi.restore_2_obs_vector: .true. will generate netCDF output that restores obs locations as in IODA file
tclune
reviewed
Jan 15, 2025
tclune
previously approved these changes
Jan 15, 2025
7 tasks
mathomp4
approved these changes
Jan 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
0 Diff Trivial
The changes in this pull request are trivially zero-diff (documentation, build failure, &c.)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types of change(s)
Checklist
make tests
)Description
This PR continues #3279 (comment)
The trajectory sampler netCDF output variable
location_index_in_iodafile
can now be turned off, after we add two control variables:use_NWP_1_file
andrestore_2_obs_vector
for users.use_NWP_1_file = .true.
, code reads in a single obs file for each epochrestore_2_obs_vector = .true.
, code restores obs locations as input IODA file, the previous remapping ioda index is suppressed.Related Issue
I have anther PR on splitfield for sampler to be merged to this PR, which handles
jedi.splitField: 1
Test performed:
jedi.use_NWP_1_file: .true.
jedi.restore_2_obs_vector: .true.
jedi.ObsPlatforms: aircraft airs_aqua amsr2_gcom-w1 amsua_aqua amsua_metop-b amsua_n15 amsua_n18 amsua_n19 atms_n20 atms_npp avhrr3_metop-b avhrr3_n18 avhrr3_n19 cris-fsr_n20 cris-fsr_npp gmi_gpm gps iasi_metop-b mhs_metop-b mhs_n19 mls55_aura omi_aura ompsnm_npp satwind scatwind sfc sfcship sondes ssmis_f17
input datetime (netcdf sondes.20190802T210000Z)
dateTime = 1564787773, 1564787771, 1564787771, 1564787805, 1564787805,
1564787872, 1564787882, 1564787886, 1564787889, 1564787891, 1564787898,
...
1564792640, 1564792601, 1564789326, 1564789326, 1564792502, 1564792501,
1564792437, 1564792374 ;
output: netcdf sondes.jedi.20190802_2100z
dateTime = 1564787773, 1564787771, 1564787771, 1564787805, 1564787805,
1564787872, 1564787882, 1564787886, 1564787889, 1564787891, 1564787898,
...
1564792640, 1564792601, 1564789326, 1564789326, 1564792502, 1564792501,
1564792437, 1564792374 ;
input:
longitude = 351.33, 351.33, 351.33, 351.3301, 351.3301, 351.335, 351.3365,
351.3372, 351.3378, 351.3381, 351.3395, 351.3398, 351.3402, 351.3409,
...
125.6533, 125.6533, 125.6533, 125.6533, 125.6533, 125.6533, 125.6533,
125.6533 ;
output:
longitude = 351.329956054688, 351.329986572266, 351.329986572266,
351.330139160156, 351.330139160156, 351.335021972656, 351.336547851562,
...
125.653289794922, 125.653289794922, 125.653289794922, 125.653289794922,
125.653289794922, 125.653289794922 ;