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

Reading emissions file with HEMCO #2552

Open
ktravis213 opened this issue Nov 4, 2024 · 3 comments
Open

Reading emissions file with HEMCO #2552

ktravis213 opened this issue Nov 4, 2024 · 3 comments
Labels
category: Bug Something isn't working topic: Configuration Files Related to GEOS-Chem configuration files topic: HEMCO Submodule Related to HEMCO

Comments

@ktravis213
Copy link

ktravis213 commented Nov 4, 2024

Your name

Katie Travis

Your affiliation

NASA LaRC

What happened? What did you expect to happen?

I was given files for FINN fire emissions for Jan-Jun 2024 for modeling ASIA-AQ. I processed them to be compliant for GEOS-Chem. See the ncdump here:

 ncdump -h emissions-finnv2.5.1nrt_modvrs_BC_bb_surface_daily_20240101-20240630_0.1x0.1_CF.nc 
netcdf emissions-finnv2.5.1nrt_modvrs_BC_bb_surface_daily_20240101-20240630_0.1x0.1_CF {
dimensions:
        time = UNLIMITED ; // (182 currently)
        lat = 1799 ;
        lon = 3600 ;
variables:
        int date(time) ;
                date:units = "YYYYMMDD" ;
                date:long_name = "Date" ;
        float fire(time, lat, lon) ;
                fire:_FillValue = NaNf ;
                fire:units = "molecules/cm^2/s" ;
                fire:map = "BC->BC;aerosol" ;
                fire:long_name = "BC fire emissions" ;
        float lat(lat) ;
                lat:_FillValue = NaNf ;
                lat:units = "degrees_north" ;
                lat:long_name = "latitude" ;
                lat:axis = "Y" ;
        float lon(lon) ;
                lon:_FillValue = NaNf ;
                lon:long_name = "longitude" ;
                lon:axis = "X" ;
                lon:units = "degrees_east" ;
        float time(time) ;
                time:_FillValue = NaNf ;
                time:long_name = "Time" ;
                time:axis = "T" ;
                time:units = "days since 1990-01-01" ;
                time:calendar = "Gregorian" ;
        float fire_kg_m2_s(time, lat, lon) ;
                fire_kg_m2_s:_FillValue = NaNf ;
                fire_kg_m2_s:units = "kg/m^2/s" ;
                fire_kg_m2_s:long_name = "fire" ;

// global attributes:
                :title = "FINNv2.5.1nrt_modvrs daily fire emissions" ;
                :TargetModel = "CAMFV" ;
                :TargetGrid = "0.1x0.1" ;
                :Frequency = "daily" ;

This is the verbose error output from HEMCO. There is no information about what 'not enough entires found' means. I set it to only have 6 months, hoping this would work but no luck.

Opened shortcut bracket: FINN_ASIAAQ
  - Skip content of this bracket:  F
 Not enough elements in: 0 FINN_BCPI_ASIA_AQ$ROOT/FINN/ASIA-AQ/emissions-finnv2.
 5.1nrt_modvrs_BC_bb_surface_daily_20240101-20240630_0.1x0.1_CF.nc    fire_kg_m2
 _s 2024/1-6/1-31/0 C xy kg/m2/s BCPI 70/75 5 1
 
HEMCO ERROR: STAT == 100; not enough entries found!
 --> LOCATION: Config_Read
 Cont (hco_config_mod.F90)

What are the steps to reproduce the bug?

Here is my implementation with HEMCO_Config.rc

0 FINN_BCPI_ASIA_AQ     $ROOT/FINN/ASIA-AQ/emissions-finnv2.5.1nrt_modvrs_BC_bb_surface_daily_20240101-20240630_0.1x0.1_CF.nc       fire_kg_m2_s 2024/1-6/1-31/0 C xy kg/m2/s BCPI 70/75 5 1

Please attach any relevant configuration and log files.

No response

What GEOS-Chem version were you using?

14.5.0_rc0

What environment were you running GEOS-Chem on?

Other (please explain below)

What compiler and version were you using?

ifort

Will you be addressing this bug yourself?

Yes

In what configuration were you running GEOS-Chem?

GCClassic

What simulation were you running?

Full chemistry

As what resolution were you running GEOS-Chem?

2x25

What meterology fields did you use?

MERRA-2

Additional information

Running on Discover

@ktravis213 ktravis213 added the category: Bug Something isn't working label Nov 4, 2024
@lizziel
Copy link
Contributor

lizziel commented Nov 4, 2024

Hi @ktravis213, the error message means the line in HEMCO_Config.rc has fewer than expected elements after splitting up the string. The error message contains no space between the HEMCO variable name and the filename:

 Not enough elements in: 0 FINN_BCPI_ASIA_AQ$ROOT/FINN/ASIA-AQ/emissions-finnv2.
 5.1nrt_modvrs_BC_bb_surface_daily_20240101-20240630_0.1x0.1_CF.nc    fire_kg_m2
 _s 2024/1-6/1-31/0 C xy kg/m2/s BCPI 70/75 5 1

Are you sure there is at least one space there in the file? Did you use a tab? I am not aware of a tab not being allowed but maybe this is true.

@yantosca yantosca added topic: HEMCO Submodule Related to HEMCO topic: Configuration Files Related to GEOS-Chem configuration files labels Nov 4, 2024
@ktravis213
Copy link
Author

@lizziel Yes it was because I used tabs! Thank you I would never have figured this out.

@yantosca
Copy link
Contributor

yantosca commented Nov 4, 2024

Thanks @ktravis213 and @lizziel. Maybe in future we could add some logic to strip out the tabs and replace with spaces. I can add that as a feature request on the HEMCO repo.

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 topic: Configuration Files Related to GEOS-Chem configuration files topic: HEMCO Submodule Related to HEMCO
Projects
None yet
Development

No branches or pull requests

3 participants