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

Use input_file format for the output NetCDF file type if the format argument is not specified #107

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

ngs333
Copy link
Contributor

@ngs333 ngs333 commented Jun 24, 2021

Fregrid is modified to more closely work as indicated in its usage instructions. According to the
instructions: "When format is not specified, will use the format of input_file." Fregrid now temporarily stores the
netcdf format of the input_file file upon opening it, and if the case where the "format" argument is not specified, it uses
that stored format for the format of the output file. Function reset_in_format was added to mpp_io.

This PR is related to GFDL issue ticket #5019381 ("bronx-18: fregrid fails to remap tiled files with netcdf3/netcdf4 cconfusion") and was tested with the data indicated mentioned in that issue.

NOTE:: This PR replaces PR 106 because the automatic re-formatting created be Visual Code was too great.

… the

same as that of the input_file in the case where the file type is not specified
by the format argument. Added function reset_in_format in mpp_io.c.
@ngs333 ngs333 linked an issue Jun 24, 2021 that may be closed by this pull request
@ceblanton
Copy link
Contributor

Thanks @ngs333, I also tested on PP/AN. Merging in

@ceblanton ceblanton merged commit 783966a into NOAA-GFDL:master Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fregrid writing with incorrect nc file type
2 participants