G’day
Make the FillValue 0 and it should fix it
I’ll steo through what’s happening, sorry for explaining stuff you may already know
Solution: If you don’t want to add nutrient out in a zero, that way no added nutrient and you pass the “values must be >= 0 and <= 2.7 mg m-3” check 😊
Beth
--
You received this message because you are subscribed to the Google Groups "Atlantis ecosystem model" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
atlantis-ecosystem...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/atlantis-ecosystem-model/bd13016e-7547-429f-af2d-a32870cbf99an%40googlegroups.com.
G’day
Sorry that should say “put in a zero”
Sigh. One day I will learn to type
Beth
To view this discussion on the web, visit
https://groups.google.com/d/msgid/atlantis-ecosystem-model/D3A4451E-4775-418B-B337-7028E0E4FA7D%40csiro.au.
G’day
The netcdf protocol means that when you pack the human readable form into the machine readable nc form it translates every _ for that variable to the FillValue given for that variable. If you need some boxes to have specific values you will need to explicitly set values for the layers of those boxes.
So I’d likely use the values from the initial conditions file as the basis of a new file where you change the values only in the specific boxes you’re forcing.
Does that answer the question? (I think it should but not 100% sure I correctly interpreted your question)
Beth
From:
<atlantis-eco...@googlegroups.com> on behalf of "ilaria.s...@utas.edu.au" <ilaria.s...@utas.edu.au>
Date: Saturday 20 July 2024 at 7:33 AM
To: Atlantis ecosystem model <atlantis-eco...@googlegroups.com>
Subject: Re: forcing file issue
Hello,
For some reason my reply appears to have been deleted!
Just a follow up question: my model is now running (thank you so much Beth!); of course, all values that aren't specified are now 0. From the Atlassian page, it looks like I could replace values in some boxes, and leave the others as they'd be from the initial conditions file. Is that correct? Apologies if this is an obvious question!
Thank you,
Ilaria
On Friday 19 July 2024 at 15:13:31 UTC+10 beth.fulton wrote:
G’day
Sorry that should say “put in a zero”
Sigh. One day I will learn to type
Beth
From: "'Fulton, Beth (Environment, Hobart)' via Atlantis ecosystem model" <atlantis-eco...@googlegroups.com>
Reply to: Beth Fulton <Beth....@csiro.au>
Date: Friday 19 July 2024 at 3:12 PM
To: "ilaria.s...@utas.edu.au" <ilaria.s...@utas.edu.au>, Atlantis ecosystem model <atlantis-eco...@googlegroups.com>
Subject: Re: forcing file issue
G’day
Make the FillValue 0 and it should fix it
I’ll steo through what’s happening, sorry for explaining stuff you may already know
1. netcdf allows you to use a FillValue to cove any slot you are not entering data for (so everywhere you put a _
2. netcdf allows for missing value – also set to -999 here
3. Atlantis reads in the entire netcdf file and applies the values as read
4. Because people had used nonsensical values in the past (due to assuming Atlantis deals with missing values when it doesn’t or because of errors in original calculations) we put a check in the code to block values outside realistic ranges. You can’t have a negative micronutrient so it just chucks an error message when it reads in the -999
To view this discussion on the web, visit
https://groups.google.com/d/msgid/atlantis-ecosystem-model/ab6a0cdb-112e-4ddf-a5ed-23f0f76a174dn%40googlegroups.com.
fillValue and
missing_value properties in NetCDF files can be confusing. These properties serve different purposes, so it's best to avoid assigning them the same value. For cells or layers that should have a value but don't, I suggest using the mean as the
_FillValue. --
Javier Porobic PhD
(he/him)
Research Scientist
Oceans & Atmosphere | CSIRO
javier.por...@csiro.au | +61 362 325 037
| +61 424 441 004
Hobart Battery Point Tasmania 7004
Office hours: Tuesdays, Wednesdays, and Thursdays in the office; Fridays working remotely from home.
CSIRO acknowledges the Traditional Owners of the land, sea and waters, of the area that we live and work on across Australia. We acknowledge their continuing connection to their culture and we pay our respects to their Elders past and present.
CSIRO Australia’s National Science Agency | csiro.au