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

Country level scale factor #273

Open
3 tasks
Meongdo-Jang opened this issue Apr 19, 2024 · 5 comments
Open
3 tasks

Country level scale factor #273

Meongdo-Jang opened this issue Apr 19, 2024 · 5 comments
Assignees
Labels
category: Debug Help Request for assistance debugging an issue in GCPy topic: Configuration Files Related to HEMCO configuration files

Comments

@Meongdo-Jang
Copy link

Name and Institution (Required)

Name: Meongdo Jang
Institution: Konkuk Univ.

Confirm you have reviewed the following documentation

Description of your issue or question

I'm trying to set up a run in GEOS-Chem Classic ver. 14.1.1 with country level scale factors.
Now, I have an error in HEMCO as like attached files. How can I solve it?
HEMCO_Config.rc.txt
GC.log

@lizziel
Copy link
Contributor

lizziel commented Apr 19, 2024

Hi @Meongdo-Jang, thanks for reaching out. The error is because HEMCO expects a different set of columns than the ones you programmed. I believe you need to put the country level scale factors entry in the scale factors section of HEMCO_Config.rc later in the file. Find this section of HEMCO_Config.rc and try moving your scale factors file entry there.

### END SECTION BASE EMISSIONS ###

###############################################################################
### BEGIN SECTION SCALE FACTORS
###############################################################################

@lizziel lizziel added the category: Debug Help Request for assistance debugging an issue in GCPy label Apr 19, 2024
@lizziel lizziel self-assigned this Apr 19, 2024
@lizziel lizziel added the topic: Configuration Files Related to HEMCO configuration files label Apr 19, 2024
@Meongdo-Jang
Copy link
Author

Meongdo-Jang commented Apr 21, 2024

Thanks!
As like you mentioned, I got the following error.

----------------------------------------------------------
HEMCO ERROR: Cannot properly read mask coverage: COUNTRY_MASK
 --> LOCATION:
 -> at UpdateDtaProperties (in module HEMCO/src/Core/hco_config_mod.F90)

HEMCO ERROR: Error encountered in routine "UpdateDtaProperties"
 --> LOCATION:
  Config_ReadCont (hco_config_mod.F90)

HEMCO ERROR: Error in HEMCO_Config.rc @ line: ### BEGIN SECTION MASKS
 --> LOC
 ATION: Config_ReadFile (hco_config_mod.F90)
[GC.log](https://github.com/geoschem/HEMCO/files/15050314/GC.log)
[GC.log](https://github.com/geoschem/HEMCO/files/15050315/GC.log)
[scalefactor.txt](https://github.com/geoschem/HEMCO/files/15050317/scalefactor.txt)
[countrymask_0.1x0.1.nc.txt](https://github.com/geoschem/HEMCO/files/15050318/countrymask_0.1x0.1.nc.txt)

@lizziel
Copy link
Contributor

lizziel commented Apr 22, 2024

This is an error when reading the configuration file. I searched the HEMCO code for string 'Cannot properly read mask cover' and found that the error is being tripped in here with this check:

     IF ( nEdges /= 4 ) THEN
         errMsg = 'Cannot properly read mask coverage: '                 // &
                  TRIM( Lct%Dct%cName )
         CALL HCO_Error( errMsg, RC, thisLoc )
         RETURN
      ENDIF

It looks like your country mask is not being parsed correctly because it is not in the correct location in HEMCO_Config.rc. It needs to be in the non-emissions data section. Look for this string in HEMCO_Config.rc:

###############################################################################
### NON-EMISSIONS DATA (subsection of BASE EMISSIONS SECTION)
###
### Non-emissions data. The following fields are read through HEMCO but do
### not contain emissions data. The extension number is set to wildcard
### character denoting that these fields will not be considered for emission
### calculation. A given entry is only read if the assigned species name is
### an HEMCO species.
###############################################################################

See also the HEMCO ReadTheDocs section on country scale factors.

@lizziel
Copy link
Contributor

lizziel commented Jul 26, 2024

Hi @Meongdo-Jang, were you able to get this to work?

@Meongdo-Jang
Copy link
Author

Meongdo-Jang commented Jul 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Debug Help Request for assistance debugging an issue in GCPy topic: Configuration Files Related to HEMCO configuration files
Projects
None yet
Development

No branches or pull requests

2 participants