# Error when calling experiments that are stored at cj50

**URL:** <https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334>\
**Category:** Ocean\
**Created:** [7 September 2023 05:08 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334 "2023-09-07T05:08:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ribeirosantosn](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@ribeirosantosn](https://forum.access-hive.org.au/u/ribeirosantosn)\
**Post date:** [7 September 2023 05:08 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/1 "2023-09-07T05:08:22Z")

</div>

Hi all,

I am trying to reproduce my old code [https://github.com/ribeiron/ScriptsChapter3/blob/main/Fig9\_b-g.ipynb](https://github.com/ribeiron/ScriptsChapter3/blob/main/Fig9_b-g.ipynb) and keep getting this error:

FileNotFoundError: [Errno 2] No such file or directory: b’/g/data/ik11/outputs/access-om2-01/01deg\_jra55v13\_ryf9091\_easterlies\_up10/output1022/ocean/ocean.nc’

I noticed that the “easterlies down/up” experiments have changed location to cj50 since the last time I used them, but I was told that it should still be accessible through the cosima database (as per my code), as long as I have the gdata/cj50 location in my storage line when you open ARE/gadi\_jupyter. It was already there though, so I must need to update something else.

Any leads?

Thank you!

---

<div class="post-metadata">

**Author:** ![navidcy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/navidcy/32/101_2.png) [@navidcy](https://forum.access-hive.org.au/u/navidcy)\
**Post date:** [7 September 2023 11:56 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/2 "2023-09-07T11:56:40Z")

</div>

Just making sure: Are you a member of cj50 project on NCI?

---

<div class="post-metadata">

**Author:** ![ribeirosantosn](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@ribeirosantosn](https://forum.access-hive.org.au/u/ribeirosantosn)\
**Post date:** [7 September 2023 23:20 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/3 "2023-09-07T23:20:02Z")

</div>

Yes, it looks like there is nothing wrong with my membership. Still current.

---

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [7 September 2023 23:37 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/4 "2023-09-07T23:37:42Z")

</div>

> [@ribeirosantosn](#):
>
> I noticed that the “easterlies down/up” experiments have changed location to cj50 since the last time I used them, but I was told that it should still be accessible through the cosima database (as per my code), as long as I have the gdata/cj50 location in my storage line when you open ARE/gadi\_jupyter. It was already there though, so I must need to update something else.

I’d guess that the COSIMA Cookbook database hasn’t been updated for the new location.

@micael might be able to assist.

---

<div class="post-metadata">

**Author:** ![adele-morrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/adele-morrison/32/90_2.png) [@adele-morrison](https://forum.access-hive.org.au/u/adele-morrison)\
**Post date:** [8 September 2023 07:45 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/5 "2023-09-08T07:45:51Z")

</div>

As a work around until the COSIMA database is updated (if that’s the problem), you could make your own database for these simulations by following [this tutorial](https://github.com/COSIMA/cosima-recipes/blob/main/Tutorials/Make_Your_Own_Database.ipynb).

---

<div class="post-metadata">

**Author:** ![adele-morrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/adele-morrison/32/90_2.png) [@adele-morrison](https://forum.access-hive.org.au/u/adele-morrison)\
**Post date:** [23 November 2023 05:48 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/6 "2023-11-23T05:48:15Z")

</div>

I just tested accessing this data (which is here `/g/data/cj50/access-om2/raw-output/access-om2-01`) and the experiments with `easterlies` in the names still aren’t accessible from the main COSIMA database. Do we need to manually add them to the COSIMA database? @micael @aekiss

---

<div class="post-metadata">

**Author:** ![micael](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/micael/32/93_2.png) [@micael](https://forum.access-hive.org.au/u/micael)\
**Post date:** [27 November 2023 03:40 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/7 "2023-11-27T03:40:16Z")

</div>

The indexing log seems to indicate that there are several experiments in that location with `easterlies` in the names that are in the database:

```auto
Indexing: /g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v13_ryf9091_easterlies_down10
Indexing experiment: 01deg_jra55v13_ryf9091_easterlies_down10
Indexing: /g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v13_ryf9091_easterlies_up10_zonal
Indexing experiment: 01deg_jra55v13_ryf9091_easterlies_up10_zonal
Indexing: /g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v13_ryf9091_easterlies_up10
Indexing experiment: 01deg_jra55v13_ryf9091_easterlies_up10
Indexing: /g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v13_ryf9091_easterlies_up10_meridional
Indexing experiment: 01deg_jra55v13_ryf9091_easterlies_up10_meridional

```

@adele-morrison Can you tell me if there are any experiments missing from this list? And are you able to access the experiments from the above list?

---

<div class="post-metadata">

**Author:** ![ribeirosantosn](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@ribeirosantosn](https://forum.access-hive.org.au/u/ribeirosantosn)\
**Post date:** [28 August 2024 00:10 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/8 "2024-08-28T00:10:52Z")

</div>

Hi Micael. Sorry I am back pestering you about this but I could use a closer look at the wind field of this experiment before I submit my work.  
I am trying to access experiment\_eup = ‘01deg\_jra55v13\_ryf9091\_easterlies\_up10’ and’01deg\_jra55v13\_ryf9091\_easterlies\_up10\_zonal’. They are both in your list, so that is odd.

I still get this error when trying to access them:  
FileNotFoundError: [Errno 2] No such file or directory: b’/g/data/ik11/outputs/access-om2-01/01deg\_jra55v13\_ryf9091\_easterlies\_up10/output1032/ocean/ocean.nc’

These are the paths I have written down:

master\_session = cc.database.create\_session(‘/g/data/ik11/databases/cosima\_master.db’)

control = ‘01deg\_jra55v13\_ryf9091’  
experiment\_eup = ‘01deg\_jra55v13\_ryf9091\_easterlies\_up10’  
easterlies\_up\_zonal = ‘01deg\_jra55v13\_ryf9091\_easterlies\_up10\_zonal’

$plot anomalies for last 5 years of simulation:  
start\_time=‘2150-01-01’  
end\_time=‘2159-12-31’

temp\_con = cc.querying.getvar(control,‘temp’, master\_session,frequency=‘1 monthly’,start\_time=start\_time, end\_time=end\_time) - 273.15  
temp\_con = temp\_con.sel(yt\_ocean=lat\_slice).sel(xt\_ocean=lon\_slice).sel(st\_ocean=depth\_slice)  
temp\_con = temp\_con.load()

temp\_up = cc.querying.getvar(experiment\_eup,‘temp’,master\_session,frequency=‘1 monthly’,start\_time=start\_time, end\_time=end\_time) - 273.15  
temp\_upY = temp\_up.sel(yt\_ocean=lat\_slice).sel(xt\_ocean=lon\_slice).sel(st\_ocean=depth\_slice)  
temp\_upY = temp\_upY.load()

temp\_up = cc.querying.getvar(easterlies\_up\_zonal,‘temp’, master\_session,frequency=‘1 monthly’,start\_time=start\_time, end\_time=end\_time) - 273.15  
temp\_upX = temp\_up.sel(yt\_ocean=lat\_slice).sel(xt\_ocean=lon\_slice).sel(st\_ocean=depth\_slice)  
temp\_upX = temp\_upX.load()

PS: I can try to build my own database as suggested by Adele, but because I just want to do a quick look that won’t even end up on the paper I was hoping I could just do it through the database.

---

<div class="post-metadata">

**Author:** ![micael](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/micael/32/93_2.png) [@micael](https://forum.access-hive.org.au/u/micael)\
**Post date:** [29 August 2024 00:00 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/9 "2024-08-29T00:00:21Z")

</div>

Hi Natalia,

The error message you are getting says it’s trying to open the files in `/g/data/ik11/outputs/access-om2-01/01deg_jra55v13_ryf9091_easterlies_up10`, but the files are actually in `/g/data/cj50/access-om2/raw-output/access-om2-01/01deg_jra55v13_ryf9091_easterlies_up10/`.

Not sure why it’s trying to open the files in the wrong location, though.

---

<div class="post-metadata">

**Author:** ![ribeirosantosn](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@ribeirosantosn](https://forum.access-hive.org.au/u/ribeirosantosn)\
**Post date:** [29 August 2024 05:31 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/10 "2024-08-29T05:31:04Z")

</div>

To be honest, I am not even sure anymore why I was using that path. I suspect I tried to find the experiments at the time and must have seen them there. Also, when I use the cj50 path I get an operational error:

OperationalError: (sqlite3.OperationalError) unable to open database file  
(Background on this error at: [Error Messages — SQLAlchemy 1.4 Documentation](https://sqlalche.me/e/14/e3q8))

---

<div class="post-metadata">

**Author:** ![navidcy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/navidcy/32/101_2.png) [@navidcy](https://forum.access-hive.org.au/u/navidcy)\
**Post date:** [15 September 2024 20:50 UTC](https://forum.access-hive.org.au/t/error-when-calling-experiments-that-are-stored-at-cj50/1334/11 "2024-09-15T20:50:52Z")

</div>

is the default database at `g/data/ik11/databases/cosima_master.db`? I always start a session without any path, e.g.,

```auto
master_session = cosima_cookbook.database.create_session()

```

and let the cookbook pick the default.

(Btw, @ribeirosantosn if you enclose code in triple backticks, e.g.,

`````  
`code`  
`````  
it comes out formatted much better.)
