# Error to use latlon code

**URL:** <https://forum.cmascenter.org/t/error-to-use-latlon-code/3840>\
**Category:** m3tools\
**Created:** [January 15, 2023, 7:29pm UTC](https://forum.cmascenter.org/t/error-to-use-latlon-code/3840 "2023-01-15T19:29:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [January 15, 2023, 7:29pm UTC](https://forum.cmascenter.org/t/error-to-use-latlon-code/3840/1 "2023-01-15T19:29:40Z")

</div>

Hi all,

I tried to run ioapi command latlon to create one file with lat and long.  
My GRIDDESC includes below information  
’ ’  
‘LAM\_40N\_97W’  
2 33.000 45.000 -97.000 -97.000 40.000  
’ ’  
‘12US1’  
‘LAM\_40N\_97W’ -2556000.000 -1728000.000 12000.000 12000.000 459 299 1  
’ ’  
There is an error:

```
 "BDYFILE" opened as UNKNOWN(R-W)
 File name "BDYFILE"
 File type BNDARY3
 Execution ID "????????????????"
 Grid name "12US1"
 Dimensions: 299 rows, 459 cols, 1 lays, 4 vbles, 1 cells thick
 NetCDF ID: 131072 opened as READWRITE
 Time-independent data.

```

0ERROR PJ04Z0  
POINT CANNOT BE PROJECTED  
Failure: status 9 in GTPZ0 at K= 765

```
 *** ERROR ABORT in subroutine MODGCTP/XY2XY1D2
 LATLON::GRID1 coord-transform error(s)

```

When I reduced the grid numbers, no error, so it may be due to too large domain?  
Could anyone help me about this error?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [January 15, 2023, 9:00pm UTC](https://forum.cmascenter.org/t/error-to-use-latlon-code/3840/2 "2023-01-15T21:00:13Z")

</div>

299x459 is not that big a grid – I’ve worked with grids of about 2500x3500 with no trouble.

Which version of “latlon” ? (See the program’s splash-screen). The current version is

> `$Id: latlon.f90 199 2021-05-07 17:20:03Z coats $`

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [January 15, 2023, 9:41pm UTC](https://forum.cmascenter.org/t/error-to-use-latlon-code/3840/3 "2023-01-15T21:41:22Z")

</div>

sorry, I don’t know how to check the version, I just got it from NEI2017 folder.

---

<div class="post-metadata">

**Author:** ![Rypo](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rypo](https://forum.cmascenter.org/u/Rypo)\
**Post date:** [January 15, 2023, 11:47pm UTC](https://forum.cmascenter.org/t/error-to-use-latlon-code/3840/4 "2023-01-15T23:47:26Z")

</div>

I tried a new one from my group member, it works now. thank you.
