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

Issue on the baselines with long_name and units: control_p8_atmlnd_sbs, datm_cdeps_lnd_gswp3 #1478

Closed
jkbk2004 opened this issue Oct 28, 2022 · 5 comments
Assignees

Comments

@jkbk2004
Copy link
Collaborator

The attributes flipped on those baselines introduced from PR #1443: develop-20221026.

@DeniseWorthen
Copy link
Collaborator

@uturuncoglu I just checked the latest baseline for the control_p8_atmlnd_sbs_intel and I no longer see the issue reported by @DusanJovic-NOAA here #1443 (comment)

I see

ncdump -c ufs.cpld.lnd.out.2021-03-22-64800.tile3.nc|grep ps
	double ps(time, grid_yt, grid_xt) ;
		ps:long_name = "surface pressure" ;
		ps:missing_value = 1.e+20 ;
		ps:units = "Pa" ;

Was this the only field that had the attributes incorrect? It appears it was fixed at some point? Can we close this issue?

@uturuncoglu
Copy link
Collaborator

@DeniseWorthen Yes. As a part of restructuring I/O layer (FMS -> ESMF Multi-tile I/O), we fixed this issue. So we could close this.

As I know we have another issue in the land output like type mismatch for integer variables and their missing_values. I think that the issue is in the ESMF I/O layer and the way of defining attributes but I could not go further to find the source. For example, the following variable is defined as int but when you add missing_value it adds as short.

	int soiltyp(time, grid_yt, grid_xt) ;
		soiltyp:long_name = "soil type" ;
		soiltyp:missing_value = -999s ;
		soiltyp:units = "1" ;

This is just a very minor issue that will appear when you try to read those integer variables through the NCL and it complains (just warning) about type mismatch between variable and missing value and can be suppressed with following additional code,

  ;--- turn off missing value check ---
  setfileoption("nc", "MissingToFillValue", False)

@DeniseWorthen
Copy link
Collaborator

@uturuncoglu Thanks. I'll go ahead and close this. I thoughtI remembered Dusan finding a similar issue about attribute type mis-match and I thought it was in ESMF. I'll see if I can track that down.

@DeniseWorthen
Copy link
Collaborator

This is the issue I remember....not sure it is related though. NOAA-EMC/fv3atm#618

@uturuncoglu
Copy link
Collaborator

@DeniseWorthen Thanks for the pointer. Let me check. Maybe same also applies to my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants