-
Notifications
You must be signed in to change notification settings - Fork 9
YAML and Python script for the AHI CSR BUFR #45
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
Open
PraveenKumar-NOAA
wants to merge
35
commits into
develop
Choose a base branch
from
feature/obs_builder_ahicsr
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 30 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ce7764a
got it working with obs_builder. trying to find additional improvements
rmclaren d13e328
enhanced logging
rmclaren a54fed2
more ObsBuilder enhancements
rmclaren 7e5ff98
reorganized a little
rmclaren 8e3a565
Merge branch 'develop' into feature/obs_builder
rmclaren 5be38e5
updated satwnd amv files to latest ObsBuilder spec
rmclaren 80f02b9
made way to get map path
rmclaren 8aa1576
updated and fixed up avhrr to actually run
rmclaren 584e2ed
initial implementation of prepbufr
rmclaren 5b81d5e
cleaned up some file names
rmclaren c689f3a
more updates
rmclaren c2fa886
improved get ref time
rmclaren 2e12fbd
improved get ref time
rmclaren c6d5468
improved get ref time
rmclaren 1eb1aa2
improved get ref time
rmclaren 6886db3
improved get ref time
rmclaren 61b4341
improved get ref time
rmclaren b23ebab
removed obsolete flags from add_main_functions
rmclaren a2a2aa7
Update IASI, ATMS and Add CrIS. and update all Python scripts to foll…
emilyhcliu a05492b
Merge branch 'develop' into feature/obs_builder
emilyhcliu 048c3f7
Add ASCAT (satellite-derived winds) mapping file and Python script (#37)
emilyhcliu 9c14475
Add SSMIS mapping file and python scripts (#36)
emilyhcliu 6a638ec
YAML and Python script for AHI-CSR
76c86bb
Files for the bufr and script backends
36b7558
Removed a commented line from bufr_script4backend_ahicsr.yaml file
1cb9d7c
Updated backend YAMLs for category h9
341dcbb
Fixes spelling in bufr_ahicsr.yaml
17589b9
Update YAML and Python script for SSMIS, ATMS, IASI, and CrIS (#43)
emilyhcliu 369e647
Merge branch 'develop' into feature/obs_builder
emilyhcliu 1a5e42f
Merge branch 'feature/obs_builder' into feature/obs_builder_ahicsr
emilyhcliu 2745248
Delete bufr_adpupa_prepbufr.py and bufr_adpupa_prepbufr_mapping.yaml
055ce0a
Delete bufr_adpupa_prepbufr.py and bufr_adpupa_prepbufr_mapping.yaml
66c311e
Updated YAML and Python scripts for the Channel dimension and sensorC…
0055367
Updated Channel Numbers from 7 to 16 and removed some extra variables…
32fd676
Removed white spaces from the Python script
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .DS_Store | ||
| .idea | ||
| .nc |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| import builder |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/usr/bin/env python3 | ||
| import os | ||
| import numpy as np | ||
| import numpy.ma as ma | ||
|
|
||
| import bufr | ||
| from bufr.obs_builder import ObsBuilder, add_main_functions, map_path | ||
|
|
||
| MAPPING_PATH = map_path('bufr_ahicsr.yaml') | ||
|
|
||
|
|
||
| class BufrAhicsrObsBuilder(ObsBuilder): | ||
|
|
||
| def __init__(self): | ||
| super().__init__(MAPPING_PATH, log_name=os.path.basename(__file__)) | ||
|
|
||
| def make_obs(self, comm, input_path): | ||
| # Get container from mapping file first | ||
| self.log.info('Get container from bufr') | ||
| container = super().make_obs(comm, input_path) | ||
|
|
||
| self.log.debug(f'Container list (original): {container.list()}') | ||
| self.log.debug(f'all_sub_categories = {container.all_sub_categories()}') | ||
| self.log.debug(f'Category map = {container.get_category_map()}') | ||
|
|
||
| # Add new/derived data into container | ||
| for cat in container.all_sub_categories(): | ||
| self.log.debug(f'category = {cat}') | ||
|
|
||
| satId = container.get('satelliteId', cat) | ||
| if not np.any(satId): | ||
| self.log.warning(f'Category {cat[0]} does not exist in input file') | ||
|
|
||
| # Final container state | ||
| self.log.debug(f'Container list (updated): {container.list()}') | ||
| self.log.debug(f'All_sub_categories {container.all_sub_categories()}') | ||
|
|
||
| return container | ||
|
|
||
|
|
||
| add_main_functions(BufrAhicsrObsBuilder) | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.