• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ouranosinc / xscen / 13638365136
90%

Build:
DEFAULT BRANCH: main
Ran 03 Mar 2025 07:05PM UTC
Jobs 6
Files 18
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Mar 2025 07:01PM UTC coverage: 88.03%. Remained the same
13638365136

push

github

web-flow
add more tas (#544)

<!-- Please ensure the PR fulfills the following requirements! -->
<!-- If this is your first PR, make sure to add your details to the
AUTHORS.rst! -->
### Pull Request Checklist:
- [ ] This PR addresses an already opened issue (for bug fixes /
features)
    - This PR fixes #xyz
- [ ] (If applicable) Documentation has been added / updated (for bug
fixes / features).
- [ ] (If applicable) Tests have been added.
- [x] This PR does not seem to break the templates.
- [x] CHANGELOG.rst has been updated (with summary of main changes).
- [x] Link to issue (:issue:`number`) and pull request (:pull:`number`)
has been added.

### What kind of change does this PR introduce?

* Add annual global tas timeseries for CMIP6's models CanESM5 r1i1p2f1
(ssp126, ssp245, ssp370, ssp585), MPI-ESM1-2-LR ssp370 (r2i1p1f1,
r3i1p1f1, r4i1p1f1, r5i1p1f1) (driving models of CRCM5)

### Does this PR introduce a breaking change?
no

### Other information:
for @mccrayc 

Done with this code:
```
import xscen as xs
import xclim as xc
import xarray as xr

ds_tas=xr.open_dataset('../../src/xscen/data/IPCC_annual_global_tas_old.nc')


#from PR270 de Pascal
def get_global_tas(source, exp, member):
    scats = xs.search_data_catalogs(
        '/catalogues/simulation.json',
        {'tas': 'MS'},
        other_search_criteria={'source': source, 'experiment': exp, 'member': member, 'processing_level': 'raw'},
        match_hist_and_fut=True
    )
    ds = xs.extract_dataset(scats.popitem()[1])['MS']
    day = ds.resample(time='YS').mean()
    dam = xs.spatial_mean(
        day,
        region='global',
        method='cos-lat',
        spatial_subset=False
    )
    dam['tas']= xc.units.convert_units_to(dam.tas, '°C')
    dam=dam.expand_dims('simulation').drop_vars('height').assign_coords(
        source=(("simulation",), [source]),
        data_source=(("simulation",),['From Amon with xscen'],),
        mip_era=(("simulation",), ['CMIP6']),
        experiment=(("simul... (continued)

3942 of 4478 relevant lines covered (88.03%)

5.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-Python3.11-conda - 13638365136.1 03 Mar 2025 07:05PM UTC 17
87.92
GitHub Action Run
2 run-Python3.10-conda - 13638365136.2 03 Mar 2025 07:06PM UTC 17
87.92
GitHub Action Run
3 run-Python3.11 - 13638365136.3 03 Mar 2025 07:06PM UTC 18
85.22
GitHub Action Run
4 run-Python3.12-conda - 13638365136.4 03 Mar 2025 07:06PM UTC 17
87.92
GitHub Action Run
5 run-Python3.10 - 13638365136.5 03 Mar 2025 07:06PM UTC 18
85.22
GitHub Action Run
6 run-Python3.12 - 13638365136.6 03 Mar 2025 07:06PM UTC 18
85.22
GitHub Action Run
Source Files on build 13638365136
  • Tree
  • List 18
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b8266c3d on github
  • Prev Build on main (#13635886099)
  • Next Build on main (#13686259101)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc