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

[BUG/ISSUE] Possible incorrect units of mixing ratio in ObsPack output #333

Closed
chfite opened this issue May 28, 2020 · 2 comments
Closed
Assignees
Labels
category: Bug Something isn't working
Milestone

Comments

@chfite
Copy link
Contributor

chfite commented May 28, 2020

I have noticed in my ObsPack output that the mixing ratio variable "q" appears to be in units of g/kg based on the magnitudes I am seeing (values ranging 5-17). The ObsPack output gave this a unit label of kg/kg. So, either the data needs to be converted to kg/kg, or the netCDF unit label for q in ObsPack should list g/kg instead. I am not sure if this is only an issue depending on the meteorology one is using, but I am using GEOSFP and GC 12.6.0.

@chfite chfite added the category: Bug Something isn't working label May 28, 2020
@yantosca yantosca self-assigned this May 28, 2020
@yantosca yantosca added this to the 12.9.0 milestone May 29, 2020
@yantosca
Copy link
Contributor

yantosca commented Jun 2, 2020

I took a look at this. You are right, the obspack_q variable (specific humidity) should be g/kg, because the SPHU field in GEOS-Chem is g/kg, not kg/kg. We will fix this for 12.9.0.

In the code below, we need to change:

    ! Specific humidity
    CALL NcDef_Variable( fId, 'q', NF_FLOAT, 1, dims_1d, vId                )
    attVal = 'mass_fraction_of_water_inair'
    CALL NcDef_Var_Attributes( fId, vId, 'long_name', TRIM(attVal)          )
    attVal = 'kg water (kg air)^-1'
    CALL NcDef_Var_Attributes( fId, vId, 'units',     TRIM(attVal)          )

to

    ! Specific humidity
    CALL NcDef_Variable( fId, 'q', NF_FLOAT, 1, dims_1d, vId                )
    attVal = 'mass_fraction_of_water_inair'
    CALL NcDef_Var_Attributes( fId, vId, 'long_name', TRIM(attVal)          )
    attVal = 'g water (kg air)^-1'
    CALL NcDef_Var_Attributes( fId, vId, 'units',     TRIM(attVal)          )

msulprizio added a commit that referenced this issue Jun 4, 2020
Charlie Fite wrote:

   I have noticed in my ObsPack output that the mixing ratio variable "q"
   appears to be in units of g/kg based on the magnitudes I am seeing
   (values ranging 5-17). The ObsPack output gave this a unit label of
   kg/kg. So, either the data needs to be converted to kg/kg, or the
   netCDF unit label for q in ObsPack should list g/kg instead.

For more details, see #333.

Signed-off-by: Melissa Sulprizio <mpayer@seas.harvard.edu>
@msulprizio
Copy link
Contributor

This is now fixed in ed226e9 and will be included in 12.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants