Add Safeguard Mechanism facilities to oil & gas sector #170
Conversation
7ed8f2c to
418dc07
Compare
418dc07 to
d788bba
Compare
d788bba to
3237731
Compare
3237731 to
94200cc
Compare
b901420 to
5581b7a
Compare
|
This implementation exhibits a numerical issue that we're investigating. The sector implementation spatialises the emissions from UNFCCC category Safeguard facilities within these ANZSIC sectors only account for 45.5% of the Below are some contributing factors and possible mitigations for this discrepancy. Inability to spatialise ANZSIC 27 Gas Supply facilitiesAs noted in #165, we currently have no strategy for locating Safeguard facilities in the ANZSIC 27 Gas supply sector, representing 28.81 kt of CH4 emissions (12.4% of the sector total). These emissions end up being counted as "unallocated" and distributed amongst the remaining sources, exacerbating the issue. Inclusion of capped and suspended wellsOur approach to identifying emission sources from wellheads suffers from its inability to distinguish between wells that are producing, suspended or capped. In theory producing wells are more likely to produce fugitive emissions, but borehole datasets only reflect the current status of each bore at the time of the most recent update. A bore listed as capped in 2026 may have been producing in 2023, but the data lacks this information. This leads to our 11,124 potential emission sources being dominated by suspended or capped wells in active leases. As an example, these are the "status" values for the boreholes in QLD which we consider potential emission sources in FY 2023/24: It's worth considering the NGER legislation which provides the measurement framework behind both the national inventory and Safeguard figures we're attempting to spatialise. NGER only contains methods for estimating emissions from producing wellheads (see Part 3.3—Oil and natural gas—fugitive emissions). Our approach then is distributing reported emissions from a small number of producing wells to a large number of producing/suspended/capped wells, leading to much smaller per-well emissions. In fact if capped wells were still emitting methane this would be on top of the methane reported under NGER. Lack of accurate well statuses was a known issue, with the rationale that wells in a field are close enough that most are likely to fall in similar/adjacent grid cells where the emissions will just be aggregated back together again. What we didn't anticipate was the over-representation of non-producing wells in Queensland, which end up absorbing much of the national emission due to sheer number of points. Simply filtering After allocating SGM emissions to SGM locations, we still have 70.7% of emission sources left to distribute the remaining 54.5% of emissions, leading to smaller emissions for locations outside the SGM. Although this looks like a good solution (and it could be a short term fix), this approach would not work well for historic periods. The further back in time you run the prior, the more inaccurate the current well statuses would be. Queensland over-representationIn the current implementation 8,732 of the 11,124 emission sources identified in the FY 2023-24 period are in Queensland. This over-representation is probably due to inclusion of suspended wells in a state where oil and gas have been developed for decades. This is especially problematic when we apply our simplistic method of distributing the total emissions evenly across all potential emission sources, effectively distributing 75% of all emissions to QLD. Although ANGA withholds state-based inventories for the oil and gas sector based on "confidentiality", QLD is the one state where a sector inventory is actually available; according to ANGA QLD accounts for 85.99 kt or 37.0% of the national total of oil and gas emissions. We could treat QLD as a special case and apply our existing methodology to sources in the state, subtracting QLD-based Safeguard emissions from state inventory total and distributing the rest to remaining emission sources in QLD. Then you continue the existing approach taking all emissions that haven't been allocated to SGM or QLD sources, and distributing to all remaining emission sources. Applying this approach gives us: You can see that the proportions in QLD are still pretty bad (72% of emissions going to 14% of the locations), but the remaining national distribution looks more sane (64% of emissions going to 90% of the locations). Naive distributionThe last clear issue which exacerbates this problem is our naive approach to distributing a single emission number among a large number of emission sources. Common sense suggests that if a central processing facility gathers oil or gas from 10s or 100s of wells, that emissions are likely to be much higher at the facility than at each individual wellhead. The NGER measurement framework bases most Method 1 approaches on volume passing through equipment, which would be higher at a facility which aggregates resources from multiple wells. Like the well status issue, it was assumed that most processing facilities and compression stations would be co-located in fields where incorrectly attributed emissions would simply be re-aggregated again into a small number of adjacent grid cells. However, in practice we find that some fields have a much smaller number of wells than others, even when they produce similar volumes. Without using field production figures, we lose this information and distribute the highest emissions to the fields with the most wells. If we allocated a smaller proportion of emissions to wells and a larger proportion to facilities, this would reduce the severity of the problem. Potentially we could review the NGER Method 1 calculations to try and extract emission factors for different types of infrastructure (oil vs gas, wells vs processing, etc), then apply these as weights by aligning the emission source ConclusionI'll talk to the team about these findings and then make a plan to move forward. Watch this space. |
|
Had a good conversation with @prayner today, out of which have come some decisions:
All of this is currently blocking re-starting production daily runs, so getting these pieces resolved is high priority. |
|
Today's update: Inclusion of capped and suspended wellsContrary to the decision yesterday, removing To get our active wells closer to matching the production dataset, we end up needing to include: This puts us back to our original statistical issue: in QLD, 66.43 kt out of the state total 85.99 kt is not coming from Safeguard facilities, but 85% of the wells in the boreholes dataset are on leases that are associated with Safeguard facilities. We don't understand the industry well enough to understand what types of facilities / activities are responsible for the remaining 66.43 kt of methane. Some possible explanations:
Perhaps we've misunderstood or misinterpreted NGER facility definitions, and the listed facilities only refer to gas plants, processing facilities and refineries. This would move all 11,000 wellheads out of the SGM and we could spatialise the 66.43kt of methane across all of them equally.
Another explanation is that methane is emitted by downstream pipeline and facility operations, and that these facilities are both:
Additionally, it's worth noting that there are no Safeguard facilities in QLD in the "27 Gas supply" or "502 Pipelines and other transport" ANZSIC categories (ignoring the QLD->SA pipeline which is mostly in SA). However, we can see from the NSW and VIC counterparts that emissions from these sub-sectors can be substantial. Unfortunately, there is currently no easy way for us to distribute emissions to pipelines / supply networks. Tackling this in #165 may partially address this problem. |
27a5274 to
c14f6fc
Compare
Improving on our naive distributionAs above, our implementation breaks oil and gas production down into a list of "emission sources", which includes everything from wellheads to gas plants and oil refineries. The simplest approach to spatialising a single emission number is to divide it equally between all sources. However, conventional practice tells us that emissions from a single wellhead will be much smaller than emissions from a gas plant or oil refinery which processes output gathered from 10s or 100s of wellheads. Unfortunately, improving on this naive approach is difficult without more data about activities and production variables at each location. Distribute using wellheads vs facilitiesOne clear distinction in our emission sources dataset is between wellheads and "everything else". Every eligible point in the bore/drillhole/well datasets can be considered a wellhead. Our other datasets (oil and gas sites and NPI facilities) don't include any wellheads, giving us a single clear delineation between extraction and processing locations. Unfortunately there's not much data to classify/delineate between different types of facilities; some are small (compressors, etc) while some are large (refineries). However, even if we can only distinguish between wellheads and "facilities", we may be able to adopt a simple change to our distribution approach that yields a large improvement on distributing emissions. Assumption 1: Emissions happen at the point of extraction and at the point of processing If we consider that all unprocessed material extracted at a wellhead must be processed at at least one facility, we can surmise that for each unit of "saleable" resource, emissions can occur at a minimum of two locations: the wellhead where extraction occurs, and at least one facility where it is processed. Because we don't have detailed information about the exact web of resource flow from wellheads through facilities to their eventual downstream destination, we might take the naive assumption that each unit of resource emits at one extraction point and one processing point. Assumption 2: Emissions scale with quantity of resource flowing through equipment Most Method 1 calculations in the NGER Measurement Determination are based on the "quantity of fuel type" or "quantity of natural gas" which "flows through" the equipment/tank/facility. For this reason, if one facility processes oil or gas from 10 wells, its emissions would be calculated from the total output of all 10 wells. Calculation: Divide emissions into extraction and processing Effectively, the approach would look like:
For example, with our current data, QLD and national splits are: The same approach could be applied both within individual Safeguard facilities which include wells and facilities, and to the remaining unallocated sources and emissions. While this approach is hard to verify, its simplicity makes it easy to adopt and explain. It can certainly be improved, but at face value it seems to be an improvement over our naive approach. Distribute using NGERS emission factorsThe NGERS Measurement Determinations provide the calculations which companies must use to estimate their own emissions. Most Method 1 calculations scale a production amount against an emission factor to yield an emission amount. While we don't have access to the production volumes at each facility/piece of equipment, another approach might be to use the legislated emission factors to develop an approximation that would allow us to scale or weight certain types of facility or infrastructure to take a relative proportion of emissions. This approach probably isn't feasible for a number of reasons:
ProposalI propose we implement the wellhead vs facility allocation strategy with the idea that this could be improved at a later date. It should yield a substantial short-term improvement to how unallocated QLD emissions are distributed (which is currently a serious issue), and it's simple enough to explain that we can justify its adoption. |
5581b7a to
45ec679
Compare
This column will allow us to record notes or references on how the location was related to the SGM facility.
This works by correlating SGM facilities with existing emission sources such as wells and sites, using the facility locations pivot dataset. Once emission sources for a SGM facility are found, the reported CH4 in the SGM are allocated to all the associated sources. Any remaining emissions in the national inventory are then allocated to any remaining emission sources which were not correlated with an SGM facility. At the moment, SGM emissions only represent 30-40% of the sector, but are associated with 70% of the emission sources, indicating we may be too aggressive assigning petroleum leases to SGM facilities.
By analysing the QLD petroleum production dataset, we can see how many "producing" wells are reported in each lease during production periods. If our filtering is correct, we should see roughly the same number of wells in our QLD emission sources in each lease. The combination of filters in this change yields well counts that are very similar to the production dataset.
Not all states publish an inventory for this sector due to confidentiality. However, since there is a figure for QLD, and QLD has a huge proportion of the emission sources (mostly wells), we can get better results by allocating QLD inventory emissions to QLD sources first, and then allocate the remaining inventory to any remaining sources.
This duplicates the work and results in test_om_prior, but allows us to run a test with dates within the Safeguard period so we can test SGM allocation.
cb569cf to
693446c
Compare
Although we can't currently spatialise any of the facilities in this sector or "27 Gas supply", both sectors are conceptually part of UNFCCC 1.B.2 and so should be considered here. The lack of implementation is a detail that we should plan to resolve to get an accurate spatial allocation of this sector. This change also plumbs the sector ANZSIC codes down through to site_sources.py where it can be used to filter NPI facilities, because there are actually a number of "27 Gas supply" facilities in the NPI like compression stations, and these are valid emission sources for spatial allocation.
The emission_sources folder has become a home for integration methods which extract emission sources from various regional datasets. This file contains the general template and helper methods, so makes sense be closer to the module root.
This centralises the allocation strategy so we can test it, and make adjustments to it later.
This dataset is maintained and kept up to date in Google Sheets. Previously, after each update or revision the sheet would be manually exported to CSV, saved, and uploaded to the Open Methane Public Data Store. This obviates that workflow by fetching data directly from a publicly viewable Google Sheet which fetches data from the original via Google Sheets' IMPORTRANGE() function.
The DataSource fetch method now fetches the data directly from the original source, and combines the three types of external reference into a single dataset, which was previously a manual process done each time the dataset received an update.
|
General comment: You've used nan often to mean "undefined". It at emission_source.py:83: why are those types quoted? oil_gas/sector.py: |
Pandas recommends using these placeholder values to represent "missing data". There are special placeholders for missing dates/times ( We then explicitly use
Good question, although Python's type system recognises There's a package called "pandas-stubs" which I've installed in another branch which gives better types for Pandas classes which I'll probably start using soon.
I assume you're referring to the "iterate through a list of sources and allocate them to the grid" pattern? Interestingly, I replaced this exact loop in the new livestock layer (#183) with a single call to However, in this particular case, I anticipated the need for a separate allocation strategy based on the geometry type, so we could support allocating to LineString or Polygon geometries. Although this hasn't been used yet, I might try to use it for the pipelines implementation. If it's not needed I'll try to condense this down to the |
Description
Supersedes #152.
Allocate methane emissions reported under the Safeguard Mechanism to facilities in the oil and gas sector (UNFCCC sector 1.B.2, ANZSIC sectors 07, 17 & 27).
This PR builds on #161 and #167, where we have built an entire database of possible emission sources in the oil and gas sector from petroleum wells, infrastructure and processing sites. Using the
safeguard-locationsdata source, we've related each SGM facility with:Methane emission reported for each facility is then distributed evenly amongst all the wells and sites associated with that facility. This approach is incredibly naive, but will have to suffice until we can implement a better strategy.
Finally, the methane allocated to SGM facilities is removed from the ANGA sector total giving us a remainder of unallocated methane, which is spread evenly across all the remaining emission sources that were not associated with an SGM facility.
Checklist
Please confirm that this pull request has done the following:
changelog/Notes