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

Ag InputCosts query return empty table #81

Open
rubcalvo opened this issue Apr 25, 2022 · 0 comments
Open

Ag InputCosts query return empty table #81

rubcalvo opened this issue Apr 25, 2022 · 0 comments

Comments

@rubcalvo
Copy link

Dear all, I'm trying to use a new query to extract Input Costs from the Ag Production module, but it results in an empty table.

  <aQuery>
  <all-regions/>
  <query title="ag tech input cost">
         <axis1 name="technology">technology</axis1>
         <axis2 name="Year">technology</axis2>
         <xPath buildList="true" dataName="inputCosts" group="false" sumAll="false">*[@type='sector' and (local-name()='AgSupplySector')]/*[@type='subsector']/*[@type='technology']/inputCosts/text()</xPath>
         <comments/>
  </query>
  </aQuery>

This query is based on one included in Main_queries.xml from GCAM Core that works fine.

  <aQuery>
  <all-regions/>
  <query title="ag tech variable cost">
         <axis1 name="technology">technology</axis1>
         <axis2 name="Year">technology</axis2>
         <xPath buildList="true" dataName="nonLandVariableCost" group="false" sumAll="false">*[@type='sector' and (local-name()='AgSupplySector')]/*[@type='subsector']/*[@type='technology']/nonLandVariableCost/text()</xPath>
         <comments/>
  </query>
  </aQuery>

Thanks in advance!

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

No branches or pull requests

1 participant