-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from foua-pps/merci3_support
adding support for handling mersi3 data
- Loading branch information
Showing
9 changed files
with
236 additions
and
223 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mersi2pps.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# Copyright (c) 2019 level1c4pps developers | ||
# | ||
# This file is part of level1c4pps | ||
# | ||
# level1c4pps is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# level1c4pps is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with level1c4pps. If not, see <http://www.gnu.org/licenses/>. | ||
# Author(s): | ||
|
||
# Martin Raspaud <[email protected]> | ||
# Nina Hakansson <[email protected]> | ||
# Adam.Dybbroe <[email protected]> | ||
|
||
"""Script to convert MERSI-2 level-1 to PPS level-1c format using Pytroll/Satpy.""" | ||
|
||
import argparse | ||
from level1c4pps.mersi2pps_lib import process_one_scene | ||
|
||
|
||
if __name__ == "__main__": | ||
""" Create PPS-format level1c data | ||
From a list of MERSI-2/3 level-1 files create a NWCSAF/PPS formatet level1c file for pps. | ||
""" | ||
parser = argparse.ArgumentParser( | ||
description=('Script to produce a PPS-level1c file for a MERSI-2/3 level-1 scene')) | ||
parser.add_argument('files', metavar='fileN', type=str, nargs='+', | ||
help='List of MERSI-2/3 files to process') | ||
parser.add_argument('-o', '--out_dir', type=str, nargs='?', | ||
required=False, default='.', | ||
help="Output directory where to store the level1c file") | ||
parser.add_argument('-ne', '--nc_engine', type=str, nargs='?', | ||
required=False, default='h5netcdf', | ||
help="Engine for saving netcdf files netcdf4 or h5netcdf (default).") | ||
parser.add_argument('-on', '--orbit_number', type=int, nargs='?', | ||
required=False, default=0, | ||
help="Orbit number (default is 00000).") | ||
options = parser.parse_args() | ||
process_one_scene(options.files, options.out_dir, engine=options.nc_engine, | ||
orbit_n=options.orbit_number) |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.